2dbi

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.

Add a follow-up question they asked
No follow-ups yet. Be the first to add one.
asked …
LeaderboardSalary
Language
Account