Skip to content

Big O Notation Chapter Issues - 3rd Edition EPUB #111

@Causaelity

Description

@Causaelity

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions