// 计算3个A,2个B可以组成多少排列?
public static void main(String args []){
int s=f(3,2);
System.out.println(s);
}
public static int f(int m,int n){
if(m==0||n==0) return 1;
return f(m-1,n)+f(m,n-1);
}
标签:return,day8,递归,int,args,System,---,static,public
来源: https://www.cnblogs.com/2246781190zyc/p/16369376.html