解题方法 把问题抽象成树问题 找出所有问题的解 我们用dfs找出所有问题的解 public static List<String> Ge(int n){ List<String> res = new ArrayList<>(); if(n <= 0) return res; dfs(n