idomatic structure rust code, no include macro (#1528)

This commit is contained in:
rongyi
2024-10-23 18:49:47 +08:00
committed by GitHub
parent 0c60037e56
commit ef3010bd77
47 changed files with 57 additions and 80 deletions
+2 -2
View File
@@ -4,11 +4,11 @@
* Author: xBLACKICEx (xBLACKICE@outlook.com)
*/
include!("../include/include.rs");
use hello_algo_rust::include::{print_util, vec_to_tree, TreeNode};
use hello_algo_rust::op_vec;
use std::collections::VecDeque;
use std::{cell::RefCell, rc::Rc};
use tree_node::{vec_to_tree, TreeNode};
/* 层序遍历 */
fn level_order(root: &Rc<RefCell<TreeNode>>) -> Vec<i32> {