Y Hacker News Books
Buy on Amazon4.4 out of 5, 402 ratings on Amazon

#145 of 2,654 all-time

Programming Pearls

Jon Bentley

35 people recommended it in 22 threads, 2008–2025.

What people on Hacker News said

swah
This book presents programming problems and solutions that enhance problem-solving skills and algorithmic thinking.

on HN, 2025

js2
A humbling book. I read it and think "that's really clever, I would not have thought of that."

on HN, 2022

rb2k_
It hasn't a lot of algorithms per se, but it has a lot of examples of how a different view on a problem can lead to an easier/more performant solution.

on HN, 2015

spaghetti
Programming Pearls is awesome too... there are solutions to many of the problems (but not all).

on HN, 2011

pkrumins
Or, books that are written in problem-hint-solution style, such as The Little Book of Semaphores and To Mock a Mockingbird. These are so fun and easy to read.

on HN, 2021

vram22
Among many other things, some clever / advanced uses of awk.

on HN, 2023

elipsey
--Coding excercises, advice, and annecdotes about problem solving. Get up on grandpa's knee and listen to a bunch of stories about UNIX.

on HN, 2020

Where it comes up