摘要: 1 package com.shb.java; 2 3 import java.util.ArrayList; 4 import java.util.Arrays; 5 import java.util.List; 6 7 /** 8 * 实现将字符串中重复次数打印出来(就是这个意思,原话描述不清了) 9 * @author shaobn 10 * @date 201... 阅读全文
posted @ 2016-09-28 21:40 邻家小书童 阅读(1524) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jiuqiyuliang/article/details/45132493 写的不错很好! 阅读全文
posted @ 2016-10-13 21:09 邻家小书童 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: http://www.aboutyun.com/thread-6179-1-1.html 阅读全文
posted @ 2016-10-13 14:58 邻家小书童 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 结构之美:单链表的头结点与头指针 阅读全文
posted @ 2016-10-09 08:44 邻家小书童 阅读(141) 评论(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 邻家小书童 阅读(247) 评论(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 邻家小书童 阅读(194) 评论(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 邻家小书童 阅读(178) 评论(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 邻家小书童 阅读(274) 评论(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 邻家小书童 阅读(1336) 评论(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 邻家小书童 阅读(2209) 评论(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 邻家小书童 阅读(422) 评论(0) 推荐(0) 编辑