Bug fixes and improvements (#1380)

* preorder, inorder, postorder -> pre-order, in-order, post-order

* Bug fixes

* Bug fixes

* Update what_is_dsa.md

* Sync zh and zh-hant versions

* Sync zh and zh-hant versions.

* Update performance_evaluation.md and time_complexity.md

* Add @khoaxuantu to the landing page.

* Sync zh and zh-hant versions

* Add @ khoaxuantu to the landing page of zh-hant and en versions.
This commit is contained in:
Yudong Jin
2024-05-31 16:39:06 +08:00
committed by GitHub
parent 39a6890b7e
commit 3f4220de81
91 changed files with 1709 additions and 181 deletions
@@ -74,12 +74,11 @@ fn find(nums: &[i32], target: i32) -> Option<usize> {
fn main() {
/* 初始化陣列 */
let arr: [i32; 5] = [0; 5];
let slice: &[i32] = &[0; 5];
print!("陣列 arr = ");
print_util::print_array(&arr);
// 在 Rust 中,指定長度[i32; 5]陣列,不指定長度時(&[i32])切片
// 在 Rust 中,指定長度[i32; 5]陣列,不指定長度時(&[i32])切片
// 由於 Rust 的陣列被設計為在編譯期確定長度,因此只能使用常數來指定長度
// Vector 是 Rust 一般情況下用作動態陣列的
// Vector 是 Rust 一般情況下用作動態陣列的型
// 為了方便實現擴容 extend() 方法,以下將 vector 看作陣列(array
let nums: Vec<i32> = vec![1, 3, 2, 5, 4];
print!("\n陣列 nums = ");