04 2022 档案
摘要:class Node{ constructor(){ this.value=null; this.left=null; this.right=null; } make(Node){ this.value=Node.value; this.left=Node.left; this.right=Node
阅读全文
摘要:1 class NodeMake{ 2 constructor(){ 3 this.value=null; 4 this.next=null; 5 } 6 } 7 //随机指针节点 8 class NodeMakeRandom{ 9 constructor(){ 10 this.value=null
阅读全文
摘要:选择排序 function SelectSort(arr){ let i,j; let min; for(j=0;j<=arr.length-2;j++){ min=j; for(i=j;i<=arr.length-1;i++){ if(arr[i]<arr[min]){ min=i; } } sw
阅读全文
浙公网安备 33010602011771号