java从M个元素中选出N个元素的所有情况
static int M = 4; static int[] a= new int[]{1,2,3,4,5,6}; static int[] b = new int[M]; static int N = a.length; static List<String> list=new ArrayList<>(); static void C(int m,int n){ int i,j; for(i=n;i<=.
原创
2020-07-29 12:42:41 ·
690 阅读 ·
0 评论