mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 19:44:45 +08:00
二叉树的所有路径
This commit is contained in:
@ -352,7 +352,7 @@ class Solution:
|
|||||||
Go:
|
Go:
|
||||||
|
|
||||||
JavaScript:
|
JavaScript:
|
||||||
递归版本
|
1.递归版本
|
||||||
```javascript
|
```javascript
|
||||||
var binaryTreePaths = function(root) {
|
var binaryTreePaths = function(root) {
|
||||||
//递归遍历+递归三部曲
|
//递归遍历+递归三部曲
|
||||||
|
Reference in New Issue
Block a user