Make erratum easier to find

#1

First thanks for the book, it is great to prepare for coding interviews !

However I have found 2 bugs in my version already (EPI C++, 2018), and it would help to be able to consult a list of errata for a given version of the book (this is a rather common practice).

For instance on this version the 15.1 Hanoi code that is provided has a bug (

  if (num_rings_to_move > 0) {
ComputeTowerHanoiSteps(num_rings_to_move - 1, pegs, from_peg, to_peg,
                       use_peg, result_ptr);

should read (see the order of pegs arguments)

  if (num_rings_to_move > 0) {
ComputeTowerHanoiSteps(num_rings_to_move - 1, pegs, from_peg, use_peg,
                       to_peg, result_ptr);

I was fortunate that because it is an official question in the book (15.1) I could check the EPI judge to see the correct implementation. But for my previous bug it is just one of those code listings that you give in the intro part of each chapter, and it is not in the EPI judge code.

Thanks !
Julien

0 Likes