Skip to content

Better example for O(1) #11

Open
Open
@dfyx

Description

The current example (a function that always returns true) might lead an inexperienced reader to think O(1) only happens when the input isn't used at all. It would probably be better to use something like getFirstElement oder getLength

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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