Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SortedList type #1794

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

SortedList type #1794

wants to merge 2 commits into from

Commits on Oct 9, 2020

  1. Configuration menu
    Copy the full SHA
    c1668a3 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2020

  1. Initial implementation of SortedList.

    Supports:
    Constructor with custom key and less-than functions
    add(), shift() and pop() between O(log16 N) and O(log32 N)
    ES6 iteration at O(N)
    first() and last() at O(1)
    
    Many other functions are either absent or will crash when run. See my pull request for more information.
    mcclure committed Oct 17, 2020
    Configuration menu
    Copy the full SHA
    d52703e View commit details
    Browse the repository at this point in the history