Skip to content
New issue

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

Corrections #1

Open
jarvis-wu opened this issue Oct 8, 2020 · 0 comments
Open

Corrections #1

jarvis-wu opened this issue Oct 8, 2020 · 0 comments

Comments

@jarvis-wu
Copy link

jarvis-wu commented Oct 8, 2020

Hi there, found a couple of errata while going through the gitbook:

In line 5 of the Binary Tree > Mergesort code snippet, the condition if nums.isEmpty causes infinite loops and should be replaced with if nums.count <= 1.

In line 13 of the Binary Tree > Quicksort code snippet, the parameters of quickSort() should be &nums, start, pivot - 1 instead of &nums, 0, pivot - 1.

@jarvis-wu jarvis-wu changed the title Correction Corrections Oct 8, 2020
Repository owner deleted a comment Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant