I have an assignment to create two recursive methods (in Java) which calculate nCr. The first method I wrote was one using Pascal's triangle. It works, Pascal triangle's is fabulous.
But now I'm in a problem as I can't think/find any other recursive solutions two write my second method which calculates nCr. I have tried using/writing a method based on finding out the factorial but that one cracks when I use big numbers.
Can someone, please, give me some tips, suggestions, advises regarding other recursive ways of calculating nCr?
Many thanks!
I can offer the solution of your problem, created in C++.