例如输入字符串abc,则打印出由字符a,b,c所能排列出来的所有字符串abc,acb,bac,bca,cab和cba。...
packagemyprac.LeetCode;importjava.util.ArrayList;importjava.util.List;publicclassStringPermutation{/*publicstaticArrayListPermutation(Stringstr){ArrayListlist=newArrayListlist,inti,char[]chars){if(i==