Design a stack that supports getmin() in O(1) time and O(1) extra space

1 min read

https://practice.geeksforgeeks.org/problems/special-stack/1

Reverse a string using stack
Find the next greater element