Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kilotaras
· 7y ago · 0 comments
The common solution is to hold size of subtree in the nodes in addition to the value a.k.a treap with implicit keys.
Comments
[–]
pornel
7y ago
But at this point you're adding even more bookkeeping and implementation complexity just to use a data structure that's not ideal in the first place (for performance, sequential memory layout is better than chasing pointers).
[–]
foobarqwertz
7y ago
I propose a challenge: Provide the interface for the datastructure and the test tool.