← 返回 meta 的题目列表Remove All Adjacent Duplicates in String Repeatedly
类型:online_judge
meta
Given a string S, repeatedly remove all adjacent duplicates in the string until no adjacent duplicates are left. Return the final string. The length of the string is at most 200000.
Example
Input
abbaca