Problems
Contest
Discuss
Interview
Store
Register
or
Log in
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Trending
Meta | Phonescreen
Anonymous User
526
String
Interview
Remove consecutive characters similar to 1D candy crush.
abbba --> empty
abb ---> [a]
b ---> [b ]
aabbba -->empty. I wrote stack solution but getting result "a" for 4th input.
Meta
Updated a day ago
1401 Questions
·
170 new
·
7.5k
·
16.7k
1
7
Comments (7)
Sort by:
Best
Comment
1
Trending
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States