古力特长出一口气# Stock
S*5
1 楼
面经上看到的,没什么思路,谁给说说思路和最优能写成什么样?谢谢
Given a binary tree and a leaf node, holding that leaf node and whole tree
falls down such that it is the new root of the tree. Return the modified
tree.
Given a binary tree and a leaf node, holding that leaf node and whole tree
falls down such that it is the new root of the tree. Return the modified
tree.