Candy Crush String: Remove Entire Repeated Runs

This is the follow-up described as removing all consecutive duplicate letters. Unlike LeetCode 1209, it removes entire repeated runs rather than groups of a fixed size k.

The post does not specify ...

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: