Please help me out here

For this problem, we’ve to find out the nCr factor and for that, we have preprocess the factorial and the inverses?
Or is there some other way of finding nCr

Yes the method mentioned by you is correct.
There are other ways as well but they are not efficient

1 Like