int func1 (int m, int n) { if (m==n || n==1) return 1; else return func1(m-1,n-1) +
Fantastic news! We've Found the answer you've been seeking!
Question:
if (m==n || n==1)
return 1;
else
return func1(m-1,n-1) + n*func1(m-1,n);
}
Based on the function above;
a) what is the value of func1(4,2)?
b) what is the value of func1(5,3)?
c) how many bases cases are there?
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date: