2017年10月8日

ubuntu解决ipv6 hosts的问题

摘要: 刚从windows转到linux ,第一步当然是修改hosts。然后把windows上的ipv6 hosts复制过来却发现不好使,后来又换回普通的hosts发现好使,但是速度太慢了。 问题分析: ~$ ifconfig ppp0 Link encap:Point-to-Point Protocol 阅读全文

posted @ 2017-10-08 14:33 Camork 阅读(1627) 评论(0) 推荐(0)

2017年9月8日

快速排序-java

摘要: static int[] quickSort(int[] array, int L, int R) { int i = L; int j = R; int pivot = array[(L + R) / 2]; while (i pivot) { j--; } ... 阅读全文

posted @ 2017-09-08 15:41 Camork 阅读(135) 评论(0) 推荐(0)

2017年3月17日

算法学习之希尔排序的简洁实现

摘要: Java 代码实现: 1 @Test 2 public void ShellSort(){ 3 4 int[] array={9,8,7,6,5,4,3,2,1}; 5 int j,temp; 6 7 System.err.println(Arrays.toString(array)); 8 //g 阅读全文

posted @ 2017-03-17 22:45 Camork 阅读(217) 评论(0) 推荐(0)

导航