摘要: JavaScript 1. splice let arr = [1, 2, 3, 5, 6, 4, 3, 2, 1, 1, 2, 3, 4, 5] for(let i = 0; i < arr.length - 1; ++i) { for(let j = i + 1; j < arr.length; 阅读全文
posted @ 2023-06-04 11:39 ascertain 阅读(3) 评论(0) 推荐(0) 编辑
摘要: JavaScript let arr = [8, 4, 3, 2, 6, 7, 1, 5, 9] function quickSort(arr) { console.log(arr) if(arr.length <= 1) return arr let midIndex = parseInt(arr 阅读全文
posted @ 2023-06-04 00:52 ascertain 阅读(1) 评论(0) 推荐(0) 编辑