Remove All Adjacent Duplicates In String
viaLeetCode
Given a string, repeatedly remove two adjacent and equal characters until no such pair remains, and return the final string. Solve in one pass using a stack.
asked …
Given a string, repeatedly remove two adjacent and equal characters until no such pair remains, and return the final string. Solve in one pass using a stack.