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
- Strings
- Super Reduced String
- Discussions
Super Reduced String
Super Reduced String
Sort by
recency
|
1729 Discussions
|
Please Login in order to post a comment
My Java 8 Solution
here is a python solution with O(n) time and O(n) space in worse case; however, if the stack ends up being empty the space will be O(1)
Here is problem solution in Python, Java, C++, C and javascript - https://programmingoneonone.com/hackerrank-super-reduced-string-problem-solution.html
Here is my c++ solution, you can watch the explanation here : https://youtu.be/XgJKCkb1EjQ