10 2016 档案

摘要:http://blog.csdn.net/jiuqiyuliang/article/details/45132493 写的不错很好! 阅读全文
posted @ 2016-10-13 21:09 邻家小书童 阅读(1174) 评论(0) 推荐(0)
摘要:http://www.aboutyun.com/thread-6179-1-1.html 阅读全文
posted @ 2016-10-13 14:58 邻家小书童 阅读(141) 评论(0) 推荐(0)
摘要:结构之美:单链表的头结点与头指针 阅读全文
posted @ 2016-10-09 08:44 邻家小书童 阅读(153) 评论(0) 推荐(0)
摘要:1 /** 2 * 插入排序 3 * @param a 4 * @date 2016-10-8 5 * @author shaobn 6 */ 7 public static void insertSort(int[] a){ 8 for(int i ... 阅读全文
posted @ 2016-10-08 10:21 邻家小书童 阅读(255) 评论(0) 推荐(0)
摘要:1 /** 2 * 选择排序 3 * @param a 4 * @date 2016-10-8 5 * @author shaobn 6 */ 7 public static void selectSort(int[] a){ 8 for(int i ... 阅读全文
posted @ 2016-10-08 09:30 邻家小书童 阅读(203) 评论(0) 推荐(0)
摘要:1 /** 2 * 冒泡排序 3 * @param a 4 * @date 2016-10-8 5 * @author shaobn 6 */ 7 public static void bubbleSort(int[] a){ 8 int temp =... 阅读全文
posted @ 2016-10-08 09:20 邻家小书童 阅读(185) 评论(0) 推荐(0)
摘要:1 /** 2 * 二分查找 3 * @param a 4 * @param n 5 * @param value 6 * @return 7 * @date 2016-10-8 8 * @author shaobn 9 */ 10 public static int binaryF... 阅读全文
posted @ 2016-10-08 08:59 邻家小书童 阅读(287) 评论(0) 推荐(0)
摘要:1 /** 2 * 找出B出现在A中的起始位置 3 * @param A 4 * @param lenA 5 * @param B 6 * @param lenB 7 * @date 2016-10-7 8 * @author shaobn 9 */ 10 public static int... 阅读全文
posted @ 2016-10-07 19:18 邻家小书童 阅读(1363) 评论(0) 推荐(0)
摘要:1 /** 2 * 找出未出现的最小正整数 3 * @param A 4 * @param n 5 * @date 2016-10-7 6 * @author shaobn 7 */ 8 public static int findArrayMex(int[] a,int n){ 9 int c... 阅读全文
posted @ 2016-10-07 19:08 邻家小书童 阅读(2260) 评论(0) 推荐(0)
摘要:1 /** 2 * 找出相邻元素的最大差值 3 * @param a 4 * @param n 5 * @date 2016-10-7 6 * @author shaobn 7 */ 8 public static void findMaxDivision(int[] a,int n){ 9 i... 阅读全文
posted @ 2016-10-07 17:27 邻家小书童 阅读(437) 评论(0) 推荐(0)
摘要:请把纸条竖着放在桌⼦上,然后从纸条的下边向上⽅对折,压出折痕后再展 开。此时有1条折痕,突起的⽅向指向纸条的背⾯,这条折痕叫做“下”折痕 ;突起的⽅向指向纸条正⾯的折痕叫做“上”折痕。如果每次都从下边向上⽅ 对折,对折N次。请从上到下计算出所有折痕的⽅向。 阅读全文
posted @ 2016-10-07 16:51 邻家小书童 阅读(899) 评论(0) 推荐(0)
摘要:/** * 顺时针打印矩阵并返回数组 * @param mat * @param n * @param m * @date 2016-10-7 * @author shaobn */ public static int[] printMatrix(int[][] mat,int n,int m){ Ar... 阅读全文
posted @ 2016-10-07 14:35 邻家小书童 阅读(181) 评论(0) 推荐(0)
摘要:1 /** 2 * 将n*n矩阵顺时针旋转90度 3 * @param mat 4 * @param n 矩阵的阶数 5 * @date 2016-10-7 6 * @author shaobn 7 */ 8 public static void rotateMatrix(int[][] mat,int n){ ... 阅读全文
posted @ 2016-10-07 14:12 邻家小书童 阅读(2621) 评论(0) 推荐(0)
摘要:1 /** 2 * 求数组的最大差值 3 * @param a 4 * @param n 5 * @return 6 * @date 2016-10-7 7 * @author shaobn 8 */ 9 public static int getDirs(int[] a,int n){ 10 ... 阅读全文
posted @ 2016-10-07 13:16 邻家小书童 阅读(185) 评论(0) 推荐(0)