pllk / cphb

Competitive Programmer's Handbook
2.94k stars 354 forks source link

Typo on chapter06 #59

Closed alessandro-bugatti closed 6 years ago

alessandro-bugatti commented 6 years ago

At row 28 in chapter six, the coins sum is called n, where in the following rows is always called x, would it be better to change n into x?

pllk commented 6 years ago

Good point! I think it's actually better to change the next x into n, because n is used in Chapter 7 and elsewhere. The variable x in the section "Greedy algorithm" has a bit different meaning: it is a value of a single coin.