Question: MIPS: recursive functions if you put n= 5 and k = 2 the output of the function should be 10. int choose(int n, int k)
MIPS: recursive functions

if you put n= 5 and k = 2 the output of the function should be 10.
int choose(int n, int k) if(k=0) { return 1; } else if (n == k){ return 1; }else if (nk){ return 0; J else f return C(n-1, k-1) + C(n-1, k)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
