Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
throwaway307349
· 6y ago · 0 comments
It’s an easy question if you just do an inorder traversal and stop at the kth element, but of course that’s not optimal. To get log(n) efficiency you need to augment the tree with subtree counts.
Comments
No comments yet.
Better HN