| about | help | code help+videos | done | prefs |
Given a string and character, return an integer based on the position of the second instance of that character. ("Hello","l") -> 3. If the character is not in the string, then return 0 instead; secondInstance("moodle", "o") → 2 secondInstance("hello", "l") → 3 secondInstance("Kevin", "i") → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 120
Copyright Nick Parlante 2017 - privacy