Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
umanwizard
on July 22, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: What are some cool but obscure data struct...
Yes, if the data is not already sorted. Thus it's O(n) for already sorted data and O(n log(n) + n) -- which simplifies to O(n log(n)) -- for arbitrary data.
mountainreason
on July 22, 2022
[–]
Yeah. I know. Why would the data already be sorted?
umanwizard
on July 22, 2022
|
parent
[–]
In a database you might have already built an index on that data.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: