
Sum Root to Leaf Numbers
https://leetcode.com/problems/sum-root-to-leaf-numbers/
用private function 做, 这样子sum就在function里了。 leetcode OJ 不能全局变量。
1 |
|

https://leetcode.com/problems/sum-root-to-leaf-numbers/
用private function 做, 这样子sum就在function里了。 leetcode OJ 不能全局变量。
1 |
|
近期评论