Hacker News new | past | comments | ask | show | jobs | submit login

No, it doesn’t assume an array at all. It’s a data structure that maintains a totally ordered set with 3 operations:

insert(X), delete(X), label(X)

Where label extracts the label of element X (which had previously been inserted but not deleted). The label is a number from 0 to n-1, where n is the number of elements currently stored.






Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: