jeffgerickson / algorithms

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

[Oops.] Missing right-square-bracket in LISBigger pseudocode #173

Open jjolly opened 5 years ago

jjolly commented 5 years ago

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

Chapter number or note title: Error in Chapter 2, Section 2.6

Page number: Error at the top of page 88

Error description: Line 4 of the pseudocode for the LISBigger algorithm appears like so:

    return LISbigger(prev,A[2..n)

Suggested fix (if any): The line should appear:

    return LISbigger(prev,A[2..n])

Note the addition of the right-square-brace at the penultimate character.