Hey, is there a way to replace a single characters by 2 characters in a string ????
This was asked to me at 1 of the interviews.
I answered linked list, I mean, take each node as a character, so u can easily insert 2 nodes, if u want to replace 2 characters.
Is there a better algo ???