about | help | code help+videos | done | prefs |
Write a RECURSIVE method that returns the number of times the character 'target' appears in the string 'str'. Your solution must be recursive! Pay close attention to the test data. vpeepsCountLtr("wxyz", "a") → 0 vpeepsCountLtr("abcabcabcabaabaababbaaa", "a") → 12 vpeepsCountLtr("CaSe Sensitive", "s") → 1 ...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: 330
Copyright Nick Parlante 2017 - privacy