ExSystem
@PHP
博客园
首页
博问
闪存
新随笔
联系
订阅
管理
随笔- 7 文章- 0 评论- 15
『算法導論』筆記
第二章練習
摘要: 2.1-2View Code 1 publicstaticvoid insertionSort(int[] A) { 2 int j; 3 int key; 4 int i; 5 for (j =1; j < A.length; ++j) { 6 key = A[j]; 7 i = j -1; 8 while (i >=0&& A[i] < key) { 9 A[i +1] = A[i];10 i = i -1;11 }12 A[i ...
阅读全文
posted @
2011-11-25 18:23
ExSystem 阅读(51) |
评论 (0)
编辑
公告