HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
d0mine
57 days ago
|
parent
|
context
|
favorite
| on:
Python sets and dictionaries can have quadratic-ti...
It is not “worst-case” (as the post demonstrates, you can get worse results by using specifically crafted data that exploits hash collisions). There are algorithms that can get you O(logN) instead of O(N) even on such data.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: