GCD Exploration

  • + 1 comment

    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.