merge two binary search tree# JobHunting - 待字闺中
l*y
1 楼
given two binary search trees, merge them in O(n) time with O(1) space.
(Converting them to link lists does not work since it require O(n) extra
pointer space)
谁能给讲一讲。
谢谢!
(Converting them to link lists does not work since it require O(n) extra
pointer space)
谁能给讲一讲。
谢谢!