摘要:
/* context 上下文 color 颜色 width 线条宽度 interval 间隔 type 竖线还是横线 number 条数 length 长度 */ function lattice(context,color,width,interval,type,number,length){ var index = 0; var lst = window.setInterval(function(){ var x = 0; var y = 0; if(type) x=inte... 阅读全文
摘要:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title> Unicode转码 </title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><BASE onmouseover="window.status='IE->工具->Intern 阅读全文
摘要:
public static void shellSort() { int h = 1; while (randomNumbers.length > 3 * h + 1) { h = 3 * h + 1; } while (h >= 1) { for (int i = 0; i < h; i++) { // 内部就使用插入排序 for (int j = i, k = j + h; k < randomNumbers.length; j += h, k = j + h) { if (randomNumbers[j] > randomNumbers[j + h]) { 阅读全文