In this code, the recursion call is made after one character is added to the answer or after all the characters of code is added to the answer ?
Keypad Codes Recursion
@abhishekjohri98,
the recursion call is made after one character is added to the answer. In the following code snippet recursion call is taking place:
for (int i = 0; i < code.length(); i++) {
keypadCodes(ros, ans + code.charAt(i));
}