Glossary: Coding Interviews in Rust
Stack
A last-in, first-out list, here a plain `Vec` using `push`, `pop` and `last`. It fits "most recent", "undo" and "matching" problems like Alex's cancelling scans.
Glossary: Coding Interviews in Rust
A last-in, first-out list, here a plain `Vec` using `push`, `pop` and `last`. It fits "most recent", "undo" and "matching" problems like Alex's cancelling scans.