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
Explain a solution out loud while you write it: restate the problem, name the slow answer and the faster one, and say what you know and what you are trying when you are stuck.
Not yet
2
Say the time cost and the extra memory of a solution in plain words, from the same work for any size up to every pair, with the step counts for a thousand and a million items.
Not yet
3
Try the edge cases every time (empty, one item, duplicates, negative numbers, very large) and find the bug each one exposes.
Not yet
4
Dry-run your code with a small table, one row per pass of the loop, and check it with small tests of your own before you say it works.
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.
Say the five costs in plain words: the same work for any size, one more step each time n doubles, grows with the size, the usual cost of sorting, every pair.
Give the step counts for a thousand and a million items: about 10 and 20 for O(log n), a million and a million million for O(n²).
Count the steps on ten sorted cells: 10 comparisons to scan for 91, 4 probes for binary search.
State the extra memory as well as the time, and name the trade when an answer spends memory to save time.
Try five kinds of edge case every time: empty, one item, duplicates, negative numbers and zero, very large.
Find the bug in a largest function that starts from 0: it returns 0 for [-3, -1, -2], and the fix starts from the first item and handles the empty list.
Say why Java's int overflows (2,000,000,000 + 2,000,000,000 is -294,967,296) while Python whole numbers do not, and why binary search writes lo + (hi - lo) / 2 in Java.
Run the stock problem on its edges: empty, one day, equal prices and falling prices all give 0, and [1, 2] gives 1.
Run a short practice interview on valid anagram: restate and ask, compare sorting (O(n log n)) with counting (O(n)), complete the count check, test three edge cases, and say the cost in one sentence.