[GeeksforGeeks]Remove all adjacent duplicates
Given a string, recursively remove adjacent duplicate characters from string. The output string should not have any adjacent duplicates.
Input: azxxzy
Output: ay
First "azxxzy" is reduced to "az
原创
2013-10-17 13:20:41 ·
2898 阅读 ·
0 评论