Remove alternate duplicate characters in a sentence in-place.
Given a string of characters, we aim to remove all its alternate duplicate characters in that string in-place. Let us see this with an example. We can solve this using an additional integer array of constant size of 127. Algorithm steps are as follows. For every character in the string, we insert ‘1’ in itsRead More »