~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Concurrency
Pools & pipelines
Thread pools, crawlers, producer/consumer buffers.
10 problems
Concurrency
Pools & pipelines Thread pools, crawlers, producer/consumer buffers.
Thread pool / concurrent crawler
- Basics: parallel map with a pool basics easy
- Fastest weather station wins easy
- Image transformation pipeline with processes 3 levels Anthropic medium
- Concurrent web crawler 3 levels Anthropic medium
- Multithreaded array sort 2 levels medium
Ring buffers and producer/consumer pipelines
- Basics: blocking ring buffer basics easy
- Greenhouse thermometer log easy
- Single-producer, multi-consumer ring buffer 3 levels Citadel medium
- Queue three ways: ring buffer, growable array, linked list 3 levels Optiver medium
- Overwriting byte ring buffer with UTF-8 text 2 levels medium