1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-07-07 07:36:13 +08:00

feat: 更新文档

This commit is contained in:
最近在学桌球
2023-08-30 17:04:20 +08:00
parent 952946ad38
commit 6a1567cd2e
34 changed files with 64 additions and 431 deletions

View File

@@ -1,21 +1,11 @@
/*
* @Description: 折半插入排序【JavaScript版本】
* @Version: Beta1.0
* @Author: 【B站&公众号】Rong姐姐好可爱
* @Date: 2021-03-27 12:35:17
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
* @LastEditTime: 2021-03-27 12:50:00
*/
/**
* 折半插入排序
* @param arr
* @param len
* 折半插入排序【JavaScript版本】
*/
function binaryInsertSort(arr, len) {
// 数组长度校验【非必须】
len = arr.length === len ? len : arr.length
len = arr.length === len
? len
: arr.length
for (let i = 1; i < len; i++) {
const temp = arr[i]