what is the similar characters present in all inserts
Answers
Answered by
1
Recursive program to insert a star between pair of identical characters
Given a string with repeated characters, we have to insert a star i.e.” * “ between pair of adjacent identical characters using recursion.
Examples:
Input : aabb
Output : a*ab*b
Input : xxxy
Output : x*x*xyno
Similar questions