题目描述 输入一个字符串,按字典序打印出该字符串中字符的所有排列。例如输入字符串abc,则打印出由字符a,b,c所能排列出来的所有字符串abc,acb,bac,bca,cab和cba。 解决方法 回溯法图解: java-full-permutation.png public class Solution { public static ArrayList<String> Permutation(String str) { List<String> resultList = new ArrayList<>(); if (str.length...