Skip to content

Latest commit

 

History

History

02-min-stack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Min Stack

Complexity Analysis

  • push: O(1)
  • pop: O(1)
  • top: O(1)
  • getMin: O(1)

Dual-Stack Insight

Maintain an auxiliary stack for prefix minimums.