Learn by poking · 8 interactive labs
Labs: play with the idea before you build it
Each lab is a small working model of one concept from the plan. Move a slider, break something, then answer the interview question it prepares you for. Two minutes each, phone-friendly, no setup.
0 of 8 explored
Big-O, felt not memorised
See why a set beats a list, and what doubling the input really costs.
Steps needed (bar length is logarithmic)
Doubling n adds one step to O(log n), doubles O(n) and quadruples O(n²). That is why interviewers ask for the Big-O of every solution – write it in dsa/progress.csv after each problem.
Race: list scan vs set lookup
List: checks so far
–
looks at every item in turn
Set: checks
–
hashes straight to the slot
This is problem #1, Contains Duplicate: swap the list for a set and an O(n²) answer becomes O(n). The price is extra memory for the set.