mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 11:34:46 +08:00
Update 0257.二叉树的所有路径.md
This commit is contained in:
@ -798,8 +798,7 @@ object Solution {
|
|||||||
rust:
|
rust:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use std::cell::RefCell;
|
// 遍历
|
||||||
use std::rc::Rc;
|
|
||||||
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![];
|
||||||
|
Reference in New Issue
Block a user