摘要:
let arr=[5,7,5,8,1,2,9,10,51,12,18,9,10,2,5]; let len=arr.length; function a(arr){ if(arr==null||arr.length<2) {return null;} let i,j; for(i=0;i<len;i 阅读全文
posted @ 2020-05-25 11:10
apple78
阅读(100)
评论(0)
推荐(0)
摘要:
let arr=[5,7,5,8,1,2,9,10,51,12,18,9,10,2,5]; let len=arr.length-1; function a(arr){ if(arr==null||arr.length<2) {return null;} let i; for(let end=len 阅读全文
posted @ 2020-05-25 11:02
apple78
阅读(93)
评论(0)
推荐(0)
摘要:
let arr=[5,7,5,8,1,2,9,10,51,12,18,9,10,2,5]; function a(arr){ if(arr==null||arr.length<2) {return null;} let i,j; for(i=1;i<arr.length;i++){ for(j=i- 阅读全文
posted @ 2020-05-25 10:55
apple78
阅读(93)
评论(0)
推荐(0)
摘要:
let arr1=[5,7,5,8,1,2,9,10,51,12,18,9,10,2,5]; function sor1(arr,l,r){ if(l==r){ return; } let mid= Math.floor((l+r)/2); sor1(arr,l,mid); sor1(arr,mid 阅读全文
posted @ 2020-05-25 10:22
apple78
阅读(100)
评论(0)
推荐(0)
浙公网安备 33010602011771号