摘要: 1 package test; 2 import java.util.LinkedList; 3 4 public class TestCombination { 5 public static void combination(char[] arr) { 6 int len = arr.length; 7 int[] used = new int[len]; 8 LinkedList<Character> linkedlist = new LinkedList<Character>(); 9 combination(... 阅读全文
posted @ 2012-08-08 17:30 苦逼程序猴 阅读(208) 评论(0) 推荐(0)
摘要: 1 package test; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 import java.util.LinkedList; 6 import java.util.List; 7 import java.util.Stack; 8 import java.util.Vector; 9 10 public class TreeOperator { 11 public static void preOrder(TreeNode node) { 12 if (no... 阅读全文
posted @ 2012-08-08 17:29 苦逼程序猴 阅读(152) 评论(0) 推荐(0)