Practice problems for Rust closures, iterators, and iterator chains. Each problem should be solved using as few chained iterator statements as possible.
Open src/main.rs and find the functions with todo!(). Replace todo!() with your solution — you don't need to touch anything else.
To check your work, run:
cargo run
Implemented problems will show their input, output, and whether the answer is correct. Unimplemented problems are skipped silently.
- Problems are grouped by difficulty: Easy, Medium, Hard. Start at the top.
- Odd-numbered problems (1, 3, 5, 7, 9) include method hints in their doc comments. If you're stuck, try one of those first.
- You don't have to complete all 10 — pick the ones that interest you.