-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Description
In the making comparisons chapter you define a number list:
let numberList : Array<Int> = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
This works fine for the Linear Time solution, however since the binarySearch function is flagged as a mutating function, the compiler will complain that you cannot use a mutating member on an immutable value.
Either numberList can be made a var, or since the binarySearch function never mutates its contents, could be updated appropriately.
At the end of the chapters in the Further Reading section, 3 of the 4 links are bad or point to the incorrect site.
Metadata
Metadata
Assignees
Labels
No labels