杨辉三角 递归思想

function fn(x,y){     if(x===1 || (x==y)){         return 1     } else { return fn(x-1,y-1) + fn(x,y-1);     } } fn(3,6) 10  
相关文章
相关标签/搜索