Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
MergeSort comes to mind, in which two ordered "semi-arrays" are merged into one in linear time. You can try the same trick by traversing an ordered tree, then the insertion will still be one element at a time, but not from the root, but from the leaf nodes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question