Remove All Adjacent Duplicates - Remove Entire Repeated Runs (Follow-up)
Given a string s of lowercase letters, an operation picks a maximal-looking run of adjacent equal characters of length at least 2 and deletes the entire run (not just two characters). Repeat...
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:
