Bug fixes and improvements (#1205)

* Add Ruby code blocks to documents

* Remove Ruby code from en/docs

* Remove "center-table" class in index.md

* Add "data-toc-label" to handle the latex heading during the build process

* Use normal JD link instead.

* Bug fixes
This commit is contained in:
Yudong Jin
2024-04-01 19:37:00 +08:00
committed by GitHub
parent 5ce088de52
commit b3f100aff1
30 changed files with 27 additions and 115 deletions

View File

@ -15,7 +15,7 @@ fn merge(nums: &mut [i32], left: usize, mid: usize, right: usize) {
// 当左右子数组都还有元素时,进行比较并将较小的元素复制到临时数组中
while i <= mid && j <= right {
if nums[i] <= nums[j] {
tmp[k] = nums[j];
tmp[k] = nums[i];
i += 1;
} else {
tmp[k] = nums[j];