Free Programming Books (and Places to Practice)

Hacker News recently rediscovered the Competitive Programmer's Handbook by Antti Laaksonen. It's a free PDF covering the algorithms and data structures that show up in programming contests: sorting, dynamic programming, graphs, trees, and more. A more polished edition is published by Springer.

Much of the HN discussion asked whether this kind of skill still matters now that AI can write code. I think it does. Working through hard problems is good exercise for your brain, even when your day job looks nothing like a contest.

Read, then practice

Reading a programming book is only half the work. The ideas don't really stick until you type the code yourself, get it wrong, and fix it. Here are some places to practice:

Online judges

An online judge takes the code you submit, runs it against hidden test cases, and tells you whether it's right and fast enough. You get "Accepted," "Wrong Answer," or "Time Limit Exceeded." That instant feedback is what makes them so good for practice. An older HN thread about the handbook, from 2017, pointed to several:

Google Code Jam came up in that thread too, but Google ended it in 2023.

More free books

See also my older list of Books about Computer Programming.



Tags: programming, books, free

← Back home