Challenges - Number Theory : Question - Virat and nCr

Solution link : https://ide.codingblocks.com/s/433402

I am doing what has been mentioned in the video still getting wrong answer.

Hey @deep4013 can you mention the name of the video which you have taken for reference.

Virat and nCr hint video

Logic is not right, you first have to calculate factorial of n and store it in array
Now you have factorial of n & r both now you can calculate formula
Take this code for reference and apply it in your code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.