jeffgerickson / algorithms

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

[Oops.] Typo in Chapter 3 Exercise 7(d) #220

Open stslxg opened 3 years ago

stslxg commented 3 years ago

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

Chapter number or note title: Chapter 3

Page number: 127

Error description: In Exercise 7(d) the total cost is stated as $\sum_{j=1}^k C[j]$.

Suggested fix (if any): It should be $\sum_{j=1}^k C[I[j]]$.