cargo fmt rust code (#1131)

* cargo fmt code

* Add empty line to seperate unrelated comments

* Fix review

* Update bubble_sort.rs

* Update merge_sort.rs

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
rongyi
2024-03-16 02:13:41 +08:00
committed by GitHub
parent 54ceef3443
commit 7b1094318b
70 changed files with 1021 additions and 836 deletions
+1 -1
View File
@@ -162,4 +162,4 @@ fn main() {
/* 判断堆是否为空 */
let is_empty = max_heap.is_empty();
println!("\n堆是否为空 {}", is_empty);
}
}
+1 -1
View File
@@ -36,4 +36,4 @@ fn main() {
let res = top_k_heap(nums, k);
println!("最大的 {} 个元素为", k);
print_util::print_heap(res.into_iter().map(|item| item.0).collect());
}
}