Leetcode -
Solution: Leetcode 155 Designing a MinStack with Constant Time Complexity in python
Design and implementation of a special kind of stack called a MinStack. The MinStack supports the usual stack operations such as push, pop, and top, but it also provides a method to retrieve the minimum element in constant time, O(1).