.Write a program to count the occurance of a digit using recursion?
e.g (12312,2) output:2 because 2 occur two times
e.g (12312,4) output: -1 because of no occurrence
anybody help me ?
how can create in core java
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Elavarasan RPosted Aug 1, 2019, 12:57 AM
https://www.geeksforgeeks.org/count-occurrences-of-a-substring-recursively/