关于WS和搜狐张的事情, 想听听各位的意见# PhotoGear - 摄影器材
l*7
1 楼
Given a complete binary search tree in form of array. Write a sort function
to sort the given array in O(n)time complexity and constant memory.
say the tree is
________100
_____50_______150
___25___75__125___200
then array is {100 50 150 25 75 125 200}
you need to sort the array.
to sort the given array in O(n)time complexity and constant memory.
say the tree is
________100
_____50_______150
___25___75__125___200
then array is {100 50 150 25 75 125 200}
you need to sort the array.