Y
Hacker News
new
|
ask
|
show
|
jobs
by
akira2501
761 days ago
O(n) iteration but pretty much guaranteed O(1) for every other operation. If that's the semantic you need, then linked lists are your friend.