jeffgerickson / algorithms

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

[Oops.] Typo on page 88 . #234

Open ungatz opened 3 years ago

ungatz commented 3 years ago

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

Chapter number or note title: [2. Backtracking]

Page number: [88]

Error description: [ Unmatched Parenthesis in LISbigger(prev,A[1 .. n]): if n = 0 return 0 else if A[1]  prev return LISbigger(prev,A[2 .. n) <------ ]

Suggested fix (if any): [ Should be , LISbigger(prev,A[1 .. n]): if n = 0 return 0 else if A[1]  prev return LISbigger(prev,A[2 .. n]) ]