
interview
iteye_1609
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JAVA 排序O(n2)
// 从小到大 public static Integer[] bubbleSort(Integer[] array) { for (int i = 0; i < array.length; i++) { for (int j = i + 1; j < array.length; j++) { if (array[i] > array[j]) {...原创 2012-03-19 13:49:36 · 157 阅读 · 0 评论 -
fibonacci数列递归和非递归实现
public static Integer recursiveBinarySearch(Integer[] array, int startIndex, int endIndex, int number) { if (startIndex > endIndex) { return null; } int midIndex = (startIndex + end...原创 2012-03-19 13:55:03 · 255 阅读 · 0 评论