News
Write a recursive function which returns a new string in which all duplicate consecutive characters are separated by a ‘ * ’. E.g. for “hello” return “hel*lo”.
📌 In order to find duplicate words, we first need to split the sentence into words. For that use split() method from String Class, this will return array of strings. 📌 After getting the list of ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results