摘要: function CArray(numElements) { this.dataStore = []; this.numElements = numElements; this.prints = prints; this.setData = setData; this.bubbleSort = bubbleS... 阅读全文
posted @ 2016-04-15 21:42 绯乐 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 插入排序过程数据演示: 阅读全文
posted @ 2016-04-15 21:29 绯乐 阅读(198) 评论(0) 推荐(0) 编辑
摘要: function HashTable() { this.table = new Array(137);//137——官方比较好的设置数组大小的值 this.betterHash = betterHash; this.showDistro = showDistro; this.put = put; //this... 阅读全文
posted @ 2016-04-15 20:54 绯乐 阅读(1831) 评论(0) 推荐(0) 编辑
摘要: function HashTable() { this.table = new Array(137);//137——官方比较好的设置数组大小的值 this.buildChains = buildChains; this.simpleHash = simpleHash; this.showDistro = showDistro... 阅读全文
posted @ 2016-04-15 20:13 绯乐 阅读(830) 评论(0) 推荐(0) 编辑
摘要: var str = "0123456789"; document.write(str.substring(0) + ""); document.write(str.substring(5) + ""); document.write(str.substring(12) + ""); document.write(str.substring(-5) + ""... 阅读全文
posted @ 2016-04-15 19:01 绯乐 阅读(222) 评论(0) 推荐(0) 编辑
摘要: function HashTable() { this.table = new Array(137); this.betterHash = betterHash; this.showDistro = showDistro; this.put = put; //this.get = get; } ... 阅读全文
posted @ 2016-04-15 18:56 绯乐 阅读(145) 评论(0) 推荐(0) 编辑
摘要: function HashTable() { this.table = new Array(137);//137——官方比较好的设置数组大小的值 //this.simpleHash = simpleHash; this.betterHash = betterHash; this.showDistro = showDistro... 阅读全文
posted @ 2016-04-15 18:55 绯乐 阅读(426) 评论(0) 推荐(0) 编辑