mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-08 21:46:06 +00:00
Finetune Rust code.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
include!("../include/include.rs");
|
||||
|
||||
#[allow(dead_code)]
|
||||
/* 列表类简易实现 */
|
||||
struct MyList {
|
||||
nums: Vec<i32>, // 数组(存储列表元素)
|
||||
capacity: usize, // 列表容量
|
||||
|
||||
Reference in New Issue
Block a user