Recursion (Basics) Questions
Recursion (Basics) Questions
[email protected]
Question 1 : For a given integer array of size N. You have to find all the occurrences
(indices) of a given element (Key) and print them. Use a recursive function to solve this
problem.
Question 2 :
You are given a number (eg - 2019), convert it into a String of english like
“two zero one nine”. Use a recursive function to solve this problem.
NOTE - The digits of the number will only be in the range 0-9 and the last digit of a number
can’t be 0.
Question 4 : We are given a string S, we need to find the count of all contiguous substrings
starting and ending with the same character.
[email protected]
You have the following constraints: