can you please check my code .
I am gettig segmentation fault , can you please check my code
@aditya12679 you are getting TLE not segmentation fault,because you have used very eneffcient method for calculating combinations.
should i use big integer for this ?
No, you need to implement an effcient method so that you won’t need to calculate factorials repetitively
is there any other method than n*fac(n-1) ?