Grokking the Coding Interview: Patterns for Coding Questions
0% completed
Remove All Adjacent Duplicates In String (easy)
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 2 years ago
I mean at the end we use "reverse". Shouldn't we create other solution without that?
A
Anonymous
· 3 years ago
since all of o's are duplicates, shouldnt the answer be fbar? why is it fobar?
Show 1 reply
A
Anonymous
· 3 years ago
The question is deceiving a bit - asking for a recursive solution, while the sample answer is not a recursive answer.
Also, what about more than 2 adjacent characters? 'abcccba'?
Show 3 replies
Reading Progress
0%