← Stack Discipline
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.