diff --git a/sort/insertion-sort.mjs b/sort/insertion-sort.mjs index ab9f233..1885a02 100644 --- a/sort/insertion-sort.mjs +++ b/sort/insertion-sort.mjs @@ -1,5 +1,9 @@ import { generateRandomArray, isSort } from "../util/index.mjs"; +/** + * 插ε…₯ζŽ’εΊ + * @param {number[]} arr + */ export function insertionSort(arr){ let n = arr.length; for (let i = 1; i