Skip to content

Avoid n^2 algorithm #2

@fulldecent

Description

@fulldecent

I know this is a stupid request.

Currently insert/remove is testing using an O(n^2) algorithm. O(n log n) is possible. Yes, I'm working on large stuff where that matters.

And this is a great example so I'm sure people are going to copy from this!

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