jeffgerickson / algorithms

Bug-tracking for Jeff's algorithms book, notes, etc.
7.92k stars 1.02k forks source link

[Oops. Peasant multiplication] #219

Open odevil opened 4 years ago

odevil commented 4 years ago

Please verify that the error is present in the most recent revision before reporting.

Chapter number or note title: chapter 1

Page number: [page 23]

Error description: [error]

pseudo-code always return 0

Suggested fix (if any): [fix]

add a case: if x=1 return y