Convert the given string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Convert the given string

Remove the repeated neighbouring alphabets into single alphabet example input=aaaaabbbbhhhhddddidhjjjj output=abhdidhj

8th Oct 2017, 4:10 AM
Kapileshwar
Kapileshwar - avatar
2 Answers
8th Oct 2017, 4:48 AM
Christian Barraza
Christian Barraza - avatar
+ 1
https://code.sololearn.com/cXwsrJPAyEeq/?ref=app
8th Oct 2017, 6:10 AM
Kapileshwar
Kapileshwar - avatar