We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
for solving this problem you have 2 approaches
1 create an array with all the factorials and then just get the value from the array instead of re calculate it over and over again
2 use pascal triangle....
best of luck
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #53: Combinatoric selections
You are viewing a single comment's thread. Return to all comments →
for solving this problem you have 2 approaches 1 create an array with all the factorials and then just get the value from the array instead of re calculate it over and over again 2 use pascal triangle....
best of luck