Update 0257.二叉树的所有路径.md

This commit is contained in:
fw_qaq 2022-11-15 22:46:07 +08:00 committed by GitHub
parent 9b2f1700ca
commit 6e01224ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -798,8 +798,7 @@ object Solution {
rust:
```rust
use std::cell::RefCell;
use std::rc::Rc;
// 遍历
impl Solution {
pub fn binary_tree_paths(root: Option<Rc<RefCell<TreeNode>>>) -> Vec<String> {
let mut res = vec![];