Skip to content

Counting sort doesn't have linear complexity #17

Description

@MegaRedHand

The put_elem function copies the whole tuple, making the algorithm have a total complexity of $O(n * k)$

put_elem(acc, index, elem(acc, index) + 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions