Update problems/0257.二叉树的所有路径.md
This commit is contained in:
parent
6e01224ee3
commit
299fab5766
|
|
@ -798,7 +798,7 @@ object Solution {
|
||||||
rust:
|
rust:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
// 遍历
|
// 递归
|
||||||
impl Solution {
|
impl Solution {
|
||||||
pub fn binary_tree_paths(root: Option<Rc<RefCell<TreeNode>>>) -> Vec<String> {
|
pub fn binary_tree_paths(root: Option<Rc<RefCell<TreeNode>>>) -> Vec<String> {
|
||||||
let mut res = vec![];
|
let mut res = vec![];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue