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.

  1. Sum without overflowing
  2. Unique, ascending
  3. Chunk into groups
  4. Count words with the entry API
  5. Top N by score
  6. Zip two slices
  7. Flatten a recursive enum
  8. Rotate right by k, in place
  9. Merge overlapping intervals
  10. 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.

More Rust topics

All Rust exercises ยท Other languages and frameworks