You are viewing a single comment's thread. Return to all comments →
Hi, can anyone please give more testcases with max valus of N and K? I am failing test-cases from #5 to #9.
This should work:
1000000 49 ==> 101740954697838253
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Project Euler #62: Cubic permutations
You are viewing a single comment's thread. Return to all comments →
Hi, can anyone please give more testcases with max valus of N and K? I am failing test-cases from #5 to #9.
This should work: