Rik Kisnah - Blog

Teach / Coding

Coding

Data structures and algorithms, one problem per page, explained like you are ten.

The coding round is not a test of how many problems you have memorised. It is a test of whether you can take a problem you have seen before, in a shape you have not, and talk your way to the answer without panicking. These are the shapes. Learn them until you can draw them from memory.

Most lessons now end with a template: the generic code with the three parts that change written in capitals. The algorithms are not yours to invent at the whiteboard, someone did that years ago. Your job is to know the shape, understand why each line is there, and see which shape the new problem is wearing.

If your Python is rusty, read the Python cheat sheet first. It is the syntax and the gotchas, nothing else.