摘要: UI组件库 element https://element.eleme.cn/#/zh-CN vant https://youzan.github.io/vant/#/zh-CN/ View UI www.iviewui.com/ ant design ant.design/index-cn 没用过 阅读全文
posted @ 2022-06-13 15:55 zhang305 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 这是一个排序数组: [15, 24, 30, 48, 49, 64, 86, 90, 100, 121, 130] function binarySearch(arr, x) { // left index of the current interval let l = 0; // right in 阅读全文
posted @ 2022-06-13 14:56 zhang305 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 我们有一个需要排序的数组: let arr = [86, 24, 64, 48, 15, 30, 90, 49] 首先,定义一个参数为数组的快速排序函数。 var quickSort = function(arr) {}; 然后,检查数组中的元素个数,如果小于等于 1,则返回。 var quickS 阅读全文
posted @ 2022-06-13 14:52 zhang305 阅读(473) 评论(0) 推荐(0) 编辑