|
|
BinaryHeap is a max-heap, and Reverse is the fix
|
Medium
|
Primitives
|
|
|
|
BTreeMap range queries
|
Medium
|
Primitives
|
|
|
|
Building std's macros: vec!, matches!, a HashMap literal
|
Medium
|
Primitives
|
|
|
|
E0502: cannot borrow as mutable because also borrowed as immutable
|
Easy
|
Primitives
|
|
|
|
Grouping without itertools: anagram buckets
|
Medium
|
Primitives
|
|
|
|
HashMap fundamentals: get, get_mut and the Hash/Eq contract
|
Easy
|
Primitives
|
|
|
|
HashMap iteration order is random
|
Medium
|
Primitives
|
|
|
|
How to read a borrow-check diagnostic
|
Easy
|
Primitives
|
|
|
|
In-place mutation vs rebuild, measured
|
Easy
|
Primitives
|
|
|
|
IntoIterator: one bound that accepts five containers
|
Medium
|
Primitives
|
|
|
|
Iterator invalidation, and the bug class that stopped existing
|
Medium
|
Primitives
|
|
|
|
iter, iter_mut, into_iter: all three, one Vec
|
Easy
|
Primitives
|
|
|
|
Joining owned strings
|
Easy
|
Primitives
|
|
|
|
Make your own collection iterable, all three ways
|
Hard
|
Framework
|
|
|
|
&mut: exclusive access, and why `mut` appears twice
|
Easy
|
Primitives
|
|
|
|
Set algebra with BTreeSet
|
Easy
|
Primitives
|
|
|
|
The Entry API: one lookup, not two
|
Medium
|
Primitives
|
|
|
|
VecDeque and breadth-first search
|
Easy
|
Primitives
|
|
|
|
Vec surgery: retain, dedup and extract_if
|
Medium
|
Primitives
|
|
|
|
What a &mut parameter actually promises
|
Medium
|
Primitives
|
|