Coding tools
Learn & compete
Community
Practice
LIFO with exception on underflow.
Constraints
Example
s = Stack() s.push(1); s.push(2) s.pop() # 2 s.peek() # 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints