Please have a look at code and tell whats wrong due to which test cases are failing
@anuranjan8319918906 hey ,your variables in the gcd function need to be long long . Please make the required change so that integer dont overflow and change to long long int in place of int
ll cx, cy;
cx = y;
cy = (x - ((a / b) * y));
x = cx;
y = cy;
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.