Found in 18 comments on Hacker News
pbyte13 · 2023-08-24 · Original thread
OP might also be interested in Bentley's book, Programming Pearls:

https://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp...

tjr · 2022-02-26 · Original thread
It might be a bit too archaic now, as a lot of the terms and technologies discussed were on the way out even when the last printed version was published, but I did find The New Hacker's Dictionary very enjoyable in this sense.

Programming Pearls might be another good book that promotes enjoyment of computing; certainly a bit more technical, but I think plenty readable for someone interested.

https://www.amazon.com/New-Hackers-Dictionary-3rd/dp/0262680...

https://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp...

pixelmonkey · 2020-03-29 · Original thread
This question is not the same as -- but has a similar feel to -- the first programming problem in the classic book "Programming Pearls"[1]. You can read it on O'Reilly Safari these days[2].

Even if you don't read the book, that first chapter, "Cracking the Oyster", is worth a read. It's a fun problem.

[1]: https://amzn.to/2vWkZ0D

[2]: https://learning.oreilly.com/library/view/programming-pearls...

johan_larson · 2016-07-11 · Original thread
Take heart. The interview process is designed to say no. A common anecdote at Google goes like this: "I persuaded the best programmer I know to apply at Google. And we rejected him." These companies say no to all kinds of talented people every day.

Apply again next time you are looking for a job, if Amazon and Google really are the sort of companies you want to work for.

Think back on your interviews and figure out what you did wrong, then study up on that.

And next time, prepare very carefully, with a focus on algorithms and data structures. I would use this book, although it's a bit dated now: https://www.amazon.com/Data-Structures-Algorithms-Alfred-Aho...

This one may also be useful: https://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp...

a3n · 2015-04-27 · Original thread
http://www.amazon.com/Programming-Pearls-2nd-Edition-Bentley...

The classic Programming Pearls is not exactly a book of problems, but a book of ideas.

You can probably examine a few of the ideas and play with them like toys. Toys are more fun than problems.

rb2k_ · 2015-02-13 · Original thread
I can recommend "Programming Pearls":

http://www.amazon.com/Programming-Pearls-2nd-Edition-Bentley...

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. It also does a good job at explaining tradeoffs. I think it's great for people that have had some basic introduction already.

[Ref link if anyone feels like it: http://amzn.to/1CnQUQ7]

chollida1 · 2014-10-19 · Original thread
For those of you who aren't familiar with the author's other works, it's worth taking a peek at his other books.

I can whole heatedly recommend Pearls of Functional Algorithm Design http://www.amazon.com/Pearls-Functional-Algorithm-Design-Ric...

It's a good cross between two other excellent books:

- Jon Bentley's Programming Pearls http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...

and

- Chris Okasaki's Purely Function Data Structures http://www.amazon.com/Purely-Functional-Structures-Chris-Oka....

If you haven't read all three, its well worth your while to do so!

And of course if you are going down the rabbit hole of reading Perls of Functional Algorithm Design then you need to read the "how to read Pearls of Functional Algorithm design" as well.

http://www.atamo.com/blog/how-to-read-pearls-by-richard-bird...

m_ke · 2013-09-01 · Original thread
Try Skiena's "Algorithm Design Manual" [0]. Another nice book would be "Programming Pearls" [1].

[0] http://www.amazon.com/Algorithm-Design-Manual-Steven-Skiena/... [1] http://www.amazon.com/Programming-Pearls-2nd-Edition-Bentley...

brg · 2012-11-26 · Original thread
There are a number of programming books that I use to prepare for technical interviews. These are

1. Programming pearls, http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...

2. Effective C++, http://www.amazon.com/Effective-Specific-Improve-Programs-De...

3. Programming Problems, http://www.amazon.com/Programming-Problems-Primer-Technical-...

The reason for these texts is not because they are overtly insightful or well written, it is because they have a large number of problems with completely coded solutions. After working through these basics, programming interviews are much more enjoyable.

mmetzger · 2012-02-20 · Original thread
In fairness, Programming Pearls is a fairly well known, well regarded book-

http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...

Nertim · 2011-09-19 · Original thread
If you have time, get Programming Pearls by Jon Bentley (http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...)
adestefan · 2011-08-07 · Original thread
Programming Pearls is another excellent book in this realm.

http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...

Revisor · 2011-06-08 · Original thread
Thank you for your answers. To add something myself, the book Programming Pearls contains exactly this - short, elegant solutions, plus some extra food for thought and exercises.

http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/...

vivekamn · 2009-05-23 · Original thread
Solutions in Programming Pearls. Each solution is iteratively improved with the proper reasoning.

http://www.amazon.com/Programming-Pearls-2nd-ACM-Press/dp/02...

kqr2 · 2008-09-16 · Original thread
The bibliography link in the original article was unfortunately broken.

Bentley is also well known for his book "Programming Pearls." The 2nd edition is still in print.

http://www.amazon.com/Programming-Pearls-2nd-ACM-press/dp/02...

Fresh book recommendations delivered straight to your inbox every Thursday.