0

Who can help me? Recursive function kotlin

Online -> o*n*l*i*n*e How can I get this one by recursive function?

29th Aug 2020, 6:25 PM
THAT CHANNEL
THAT CHANNEL - avatar
2 Réponses
+ 4
Your function should take a string. When the string has one character left, display it and return. Otherwise, display the first character and an asterisk, plus recurse with a string of the second through the last characters. The main function calls with the full string.
31st Aug 2020, 1:04 AM
John Wells
John Wells - avatar
+ 3
Show your attempt!
29th Aug 2020, 7:13 PM
Namit Jain
Namit Jain - avatar