thanks for the reply. I'm just starting out with recursion and was wondering if you could give me a bit more info on this part of the code:
return 1 + freq(s.substring(1, s.length()), c);
I get...
Type: Posts; User: sean1604
thanks for the reply. I'm just starting out with recursion and was wondering if you could give me a bit more info on this part of the code:
return 1 + freq(s.substring(1, s.length()), c);
I get...
Having a bit of a problem with the recursive part of this case.
here's what I have so far :
public int freq (String S, Char C) {
if (S.length () == 0) return (0); // base case
else return //...