Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Min Stack

https://oj.leetcode.com/problems/min-stack/

O(n) time complexity, O(n) space complexity.

min_stack.v1.MinStack(464 ms time cost): Use double Integer-class stack with space optimization.

min_stack.v2.MinStack2(464 ms time cost): Use single Long-class stack.