Re: 为什么总有WSN看不起巴西?真是可笑的很 (转载)# Economics - 经济
j*k
1 楼
Eg: BST1 B1, BST2 B2.
Choose the root which has bigger value to be the new BST's root,
then insert each node of the other BST into the new BST. If B1
has m nodes, B2 has n modes, it takes O(mn). That's not good. Is
there other more efficient way?
Choose the root which has bigger value to be the new BST's root,
then insert each node of the other BST into the new BST. If B1
has m nodes, B2 has n modes, it takes O(mn). That's not good. Is
there other more efficient way?