Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.06 KB

errata.markdown

File metadata and controls

58 lines (34 loc) · 1.06 KB

Page 41 [Image]: if i <= 1 WE ARE DONE Code sample is i <= 0. Should match?

Page 43 [Snippet 2]: def greet2(name): ... def bye(): print "ok bye!" def bye() should be aligned with def greet2(name) not nested?

Chapter 8 (Code):

best_station = None states_covered = set() for station, states_for_station in stations.items():

final loop has:

best_station = None states_covered = set()

for station, states in stations.items():

should be states for both?

~

Chapter 8 (final algorithm):

Can't seem to get Jupyter Notebook, Kernel: Python 2.7 to run the while loop? Times out?

Might just be me? Or one of my typos?

~

Chapter 9 (Image/Example):

Knapsack items are 4lbs, 3lbs, 1lbs. Chapter 8 items are 30lbs, 20lbs, 15lbs.

Values should be the same?

~

Suggestion:

Make the difference between pseudo-code, intermediate code, and executable code more explicit?

~

Suggestion:

Full executable python algorithms for Chapter 9 and 10? Given the awesome pace of the early chapters I was disappointed that there wasn't any executable code in 9 and 10 :(