- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 升序降序数组查找最大值
折半查找变种算法实现public class Main { public static void main(String[] args) { int[] attr = { 1, 2, 3, 5, 9, 6, 4 }; System.out.println(find(attr)); } public static int find(int[] attr) { int s = 0
2017-11-29 11:08:55 2650 1
原创 快速排序
快速排序算法实现import java.util.Arrays;public class Main { public static void main(String[] args) { int[] attr = { 8, 5, 4, 2, 3, 9 }; sort(attr, 0, attr.length - 1); System.out.println(Arrays.toSt
2017-11-28 17:43:22 206
原创 折半查找
折半查找算法实现public class Main { public static void main(String[] args) { int[] attr = { 1, 3, 4, 6, 7, 9 }; System.out.println(find(attr, 9)); System.out.println(find(attr, 0, attr.length, 9)); }
2017-11-28 17:22:19 163
原创 hello world
public class Main {public static void main(String[] args) {System.out.println("hello world!!");}}
2017-11-28 15:06:37 334
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人