LC 71
Simplify Path
Medium · LC 1–100
Candidate solution routes
Primary
FreeStack-Based State Simulation
Invariant: After each input prefix, frames from bottom to top are exactly the unfinished contexts in opening order, and the top is the only context directly affected next.
candidate confidence: 0.598 · metadata_only
How to use this page
Read the statement and constraints first, then validate recognition signals, invariant, and complexity. Candidate score is not correctness evidence.