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.
I am using java to solve this problem. First test case ran successfully. However, I get 'Terminated due to timeout' error for all other test cases. If anyone has solved this using Java, then please suggest the solution that run faster.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
GCD Exploration
You are viewing a single comment's thread. Return to all comments →
I am using java to solve this problem. First test case ran successfully. However, I get 'Terminated due to timeout' error for all other test cases. If anyone has solved this using Java, then please suggest the solution that run faster.