We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Allocation practice problems in Rust
Difficulty:
Category:
Tag:
Showing 15 of 15
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Capacity and pre-sizing, graded | Easy | Primitives |
|
|
| Case-insensitive search without allocating | Easy | Primitives |
|
|
| Chains versus loops: top-k, and a function that must not allocate | Medium | End-to-End |
|
|
| Cow: borrow until you have to own | Medium | Primitives |
|
|
| Enum dispatch: the third option | Medium | End-to-End |
|
|
| In-place mutation vs rebuild, measured | Easy | Primitives |
|
|
| Iterator performance: where the abstraction leaks | Medium | End-to-End |
|
|
| Memory layout and cache behaviour: flat arrays, AoS vs SoA | Medium | End-to-End |
|
|
| Needless clone: the most common review comment in Rust | Medium | End-to-End |
|
|
| Reusing buffers instead of allocating per iteration | Medium | Primitives |
|
|
| Sorting: sort vs sort_unstable vs sort_by_cached_key | Medium | End-to-End |
|
|
| String and text performance, graded | Medium | End-to-End |
|
|
| String building: push_str, write!, and the 590x cliff | Easy | Primitives |
|
|
| Where the allocations are: the counting allocator | Easy | Primitives |
|
|
| Zero-copy parsing: borrow, don't allocate | Medium | Primitives |
|