Back to course home
0% completed
Vote For New Content
what about fooobar?
Meghana
Apr 14, 2024
since all of o's are duplicates, shouldnt the answer be fbar? why is it fobar?
0
0
Comments
Comments
Shubham Voraa year ago
We remove o from the 1 and 2 index. After that, we will have a string fobar, which doesn't have any two adjacent duplicates.
On this page
Problem Statement
Solution
Code
Time and Space Complexity