摘要: 2012/3/7 百田:1. 求100~99999的水仙花数2. 将一个排序好的数组乱序 http://www.cnblogs.com/wouldguan/archive/2013/03/07/2947780.html3. 计算最少能剩多少个单牌, 可以出两张、三张、四张,五张顺子。2012/3/6 溢信1. 最长对称字串, 如“google”是“goog” http://www.cnblogs.com/wouldguan/archive/2013/03/06/2946066.html2. 求二叉树的任意2个节点的公共根节点3. 求给定数组的最长等差数列4. 3个盆(4, 4, 1.5)把8k 阅读全文
posted @ 2013-03-07 12:11 wouldguan 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 引用: http://blog.csdn.net/zzqkillyou/article/details/7388690//Javaimport java.util.*;public class Main{ public static int[] shuffle(int[] arr) { int count = arr.length; int[] arr2 = new int[count]; int randCount = 0; //统计已抽取的个数 int position = 0; //随机到的索引 int k = 0; //目标... 阅读全文
posted @ 2013-03-07 12:02 wouldguan 阅读(1298) 评论(0) 推荐(0) 编辑