-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels