Results and the cheat sheet fill in as you go. Nothing here is locked; come back whenever you like.
Next in this path: Hash sets · 6 lessons · 1 h 01 min
Mastery by outcome
Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Say what a key and a value are, and explain in your own words why a hash map finds a value fast.
Not yet
2
Follow what happens when you insert, look up, update and delete a key, including when two keys share a slot.
Not yet
3
Explain what a collision is, why it cannot be avoided, and how chaining handles it.
Not yet
4
Explain the load factor, why the table grows, and why growing keeps lookups fast.
Not yet
5
Say how fast a hash map really is, on average and in the worst case, what can slow it down, and what amortized means for inserts.
Not yet
6
Say why a key must not change after it is stored, and what goes wrong if it does.
Not yet
7
Recognise the four everyday patterns (counting, grouping, finding repeats and caching) and write them.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.