Errata

Think Like a Programmer

Errata for Think Like a Programmer

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF, Mobi Page 13
Bottom half

The problem "Opening the Alien Lock" is insufficiently constrained. It is never stated that you can only slide one Kratzz at a time. Therefore, my initial solution was to hold down the Alarm suppressor and then slide all the Kratzz over to the left side (holding the suppressor down when sliding the Kratzz in).

Also, zero is an even number too, so the next rule has to be: "...sensors that light up if the number of Quinicrys in the column above is positive and even." or better "is 2." (since numbers > 2 are impossible anyway). Otherwise the problem is unsolvable.

Tim Pietzcker  Aug 24, 2012 
PDF Page 34
doubleDigitValue function

The line "if (doubledDigit > 10) sum = 1 + doubledDigit % 10" should be "if (doubledDigit >= 10) sum = 1 + doubledDigit % 10" to return the sum of the two digits in a number.

Joe Helfrich  Aug 23, 2012 
Other Digital Version 1122
Code snippet at the top of the page

if (doubledDigit > 10) ...

should be

if (doubleDigit >= 10) ...

AJ Speller  Aug 23, 2012