ArrayList>res=newArrayList<>();//存储最终结果publicvoidpermutation(int[]array){permutation(array,0,array.length-1);}publicvoidpermutation(int[]array,intstart,intend){ArrayListtempRes=newArrayList<>();//存储单个序列if(start==end){//终止条件for(inti=0;i
算法复习4——求一组数的全排列相关文章