Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
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.
1
7
Comments (7)
Sort by:
Best
Comment
1
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States