Two balanced binary trees are given with m and n elements respectively. They can be merged into a balanced binary search tree in ____ time.
Q & A › Category: Data Structure › Two balanced binary trees are given with m and n elements respectively. They can be merged into a balanced binary search tree in ____ time.
Two balanced binary trees are given with m and n elements respectively. They can be merged into a balanced binary search tree in ____ time.
a) O(m+n)
b) O(mn)
c) O(m)
d) O(mlog n)