We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Greedy
- Reverse Shuffle Merge
- Discussions
Reverse Shuffle Merge
Reverse Shuffle Merge
Sort by
recency
|
214 Discussions
|
Please Login in order to post a comment
O(n) time complexity because even with nested while loop an element of s is only pushed and popped a maximum of 1 times
I hate problems that require you to reread 50 times to just understand what they are asking you to do.
Worst problem statement ever. Unclear
Rather simplistic greedy approach (Python3) in 30 lines total: