mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Complement to Rust code in the Chapter array and linked list / Time Complexity. (#657)
* Complement to Rust code in the Chapter array and linked list * Complement to Rust code in the Time Complexity * Remove this Rust struct from 380 to 383. * Address the comments from @night-cruise * Add more comments in list and time complexity * Add more comments in linked list
This commit is contained in:
@@ -103,7 +103,9 @@
|
||||
=== "Rust"
|
||||
|
||||
```rust title="array.rs"
|
||||
|
||||
/* 初始化数组 */
|
||||
let arr: Vec<i32> = vec![0; 5]; // [0, 0, 0, 0, 0]
|
||||
let nums: Vec<i32> = vec![1, 3, 2, 5, 4];
|
||||
```
|
||||
|
||||
## 数组优点
|
||||
|
||||
Reference in New Issue
Block a user