.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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Elavarasan RRank #296 · 8.5K reputationPosted Jul 31, 2019, 8:57 PM EDT
https://www.geeksforgeeks.org/count-occurrences-of-a-substring-recursively/