← Stack Discipline

Micro-Drill #34 — Push and pop

Stack Discipline Target: 5s

Stack push/pop is the foundation for all LIFO operations: DFS, undo, and expression parsing.

stack = []
stack.append(x)
stack.pop()

Type it from memory. Go.

Practice Problems

Related Coding Drills

← Micro #33 Micro #35 →