You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 withif 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
.The text was updated successfully, but these errors were encountered: