摘要: 例如123455567123,变成123467123555。View Code static int[] MoveFirstDupNumToEnd(int[] intArr) { int[] result = new int[intArr.Length]; int dup = 0; int dupCount = 0; int x = 0; Hashtable ht = new Hashtable(intArr.Length); for... 阅读全文
posted @ 2012-11-09 16:14 Ligeance 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 例如:123456转换成 1 -> 2 -> 3-> 4-> 5-> 6View Code static LinkedList<int> CovertIntToLinkedList(int num) { Stack<int> stack = new Stack<int>(); LinkedList<int> result = new LinkedList<int>(); while (num!=0) { stack.Push(num % 10); ... 阅读全文
posted @ 2012-11-09 15:45 Ligeance 阅读(373) 评论(0) 推荐(0) 编辑