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
Feb 19, 2024
Feb 19, 2024
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 11 hours ago
1391 Questions
·
142 new
·
7.3k
·
16.8k
1
7
Comments (7)
Sort by:
Best
Comment
1
Trending
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States