hello-algo/docs
GN-Yu 4ca09c1015
Update merge_sort.md
修改了代码注释使其表述更严谨,如C++中:

for (int k = left; k <= right; k++) {
            // 若“左子数组已全部合并完”,则选取右子数组元素,并且 j++
            if (i > leftEnd)
                nums[k] = tmp[j++];
            // 否则,若“右子数组已全部合并完”或“左子数组元素 <ins> <= </ins> 右子数组元素”,则选取左子数组元素,并且 i++
            else if (j > rightEnd || tmp[i] <= tmp[j])
                nums[k] = tmp[i++];
            // 否则,若<ins>“左右子数组都未全部合并完”且“左子数组元素 > 右子数组元素”</ins>,则选取右子数组元素,并且 j++
            else
                nums[k] = tmp[j++];
        }
2022-12-29 17:50:02 -05:00
..
assets/images Add about me. Update contribution, suggestions, 2022-11-24 19:32:32 +08:00
chapter_array_and_linkedlist Update C# code. 2022-12-24 17:05:58 +08:00
chapter_computational_complexity Merge pull request #175 from nuomi1/feature/time_complexity-Swift 2022-12-27 20:00:17 +08:00
chapter_data_structure Update data_and_memory.md 2022-12-29 00:49:50 +08:00
chapter_hashing Fixed wrong parameter of Hash Map Set 2022-12-27 16:52:19 +11:00
chapter_introduction 1. Add array representation of binary tree. 2022-12-23 00:44:40 +08:00
chapter_preface feat: add Swift installation 2022-12-26 23:28:45 +08:00
chapter_reference Update docs for deployment on Vercel. 2022-11-22 17:47:26 +08:00
chapter_searching Fixed inconsistent brackets 2022-12-27 17:06:39 +11:00
chapter_sorting Update merge_sort.md 2022-12-29 17:50:02 -05:00
chapter_stack_and_queue Update C# code. 2022-12-24 17:05:58 +08:00
chapter_tree Merge pull request #183 from guowei-gong/binary_tree 2022-12-29 00:50:53 +08:00
index.assets Add quick sort. 2022-11-23 03:56:25 +08:00
stylesheets Update font-family. 2022-12-15 02:55:52 +08:00
index.md Update README 2022-12-23 01:43:39 +08:00