Vectors & Slices in Rust: interview exercises
Vectors & Slices in Rust: 10 test-checked interview exercises (Sum without overflowing, Unique, ascending), each beside a worked example, with tests as you go. Free.
- Sum without overflowing
- Unique, ascending
- Chunk into groups
- Count words with the entry API
- Top N by score
- Zip two slices
- Flatten a recursive enum
- Rotate right by k, in place
- Merge overlapping intervals
- Max sum of k consecutive
Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.