Thanks..but i found out my error...it was a division by zero error. If the first 2 numbers of given array was same, gcd function returns 0 and hence when dividing it gives the RE..Thanks for your suggestion i will try to find the time complexitiy of this approach.
-- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/8b7e8c32-a3de-46aa-b8db-4b12db07ed33%40googlegroups.com.
