Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
sqd
· 7y ago · 0 comments
I can surely do a pre-order DFS and record the order of the nodes I visited, and then another DFS to modify the pointers? That would still be O(n).
Comments
No comments yet.
Better HN