请教个面试题# JobHunting - 待字闺中
c*p
1 楼
given a binary tree, output it max sum of nodes. But the nodes should be
not adjacent to each other. In other word, if you use the root, you cannot
use its children because children and root are adjacent.
哪位大侠上段代码?
not adjacent to each other. In other word, if you use the root, you cannot
use its children because children and root are adjacent.
哪位大侠上段代码?