Is there any inbuilt code for nCr (combination ) that can be used for the function f(n-1)+nCr*f(n-1)?
Is there any inbuilt code for nCr (combination ) that can be used for the function f(n-1)+nCr*f(n-1)
NO,
there is no inbuilt function for ncr
but you can make your own
for nc2 you can directly use n*(n-1)/2;