gcd(0,n) is not clearly defined. it should be noted that gcd(0,n) = n.

# Gcd(0,n) is not clearly defined. it should be noted that gcd(0,n) = n

I was stuck in same problem got it right after 3 to 4 submissions. I think they don’t want to make it easy… Better write the condition and prededuct the score… because we know everyone needs at least 2 error trials to get it.

**us.4196**#3

No offence but I did it in first attempt so it won’t be appropriate to pre-deduct scores. They can provide hints at the cost of scores though. It’s a common fact that GCD(0,n) is n since every number (except 0) divides 0. 0/0 is not defined.

You can always see the expected output from the expected output option. In an interview you could have asked it from the interviewer