Remove All Adjacent Duplicates in a String
Given a string s consisting of lowercase English letters, repeatedly remove any pair of equal adjacent characters until no such pair remains. Return the resulting string.
The final result is gu...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
