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.
What does this part mean But instead of printing complete answer you have to print answer modulo 109+7.
Also the explaination of test case 2 is not related to how actually the method should be solved, there would be no way of discovering such pattern of 2^a and 3^a
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Huge GCD
You are viewing a single comment's thread. Return to all comments →
What does this part mean
But instead of printing complete answer you have to print answer modulo 109+7.
Also the explaination of test case 2 is not related to how actually the method should be solved, there would be no way of discovering such pattern of 2^a and 3^a