MARBLES QNS code

i not able to code it perfectly can u suggest me with code

Okay, here’s the code.
Actually you just need to solve C(n-1,k-1)
Also, the answer overflows ll int as well. So you may not get complete rewards for this question.

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.