We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a errata in the code in page 255, Listing 14.4 (In-place quicksort with a mutable array):
val pi = partition(n, r, n + (n - r) / 2)
should be:
val pi = partition(n, r, n + (r - n) / 2)
as (n - r) is negative if (n < r).
(n - r)
(n < r)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a errata in the code in page 255, Listing 14.4 (In-place quicksort with a mutable array):
should be:
as
(n - r)
is negative if(n < r)
.The text was updated successfully, but these errors were encountered: