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:
埃拉
2023-08-07 18:22:04 +08:00
committed by GitHub
parent 4bc6b8af7b
commit 9ed16db68e
4 changed files with 131 additions and 8 deletions

View File

@@ -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];
```
## 数组优点