Code not passing Test Case 1

Hey @amoghjalan2005, can you please share the link of online IDE ? I would like to run your code there itself and find the error in the code :+1:

Thanks :slight_smile:

How do i share it, I have started the collaboration mode

Hey @amoghjalan2005, have a look at the link I am attaching below :

I want you to give this IDE link of your code. Just copy the link and paste it here in the post !

Thanks :slight_smile:

Hey @amoghjalan2005, I checked your code. You have just made a small mistake. The constraints of the question are :

a<=b and
a^2 + b^2 = A

So just replace i<j in your code with :

i<=j

and your problem will be solved.

I hope this resolves your doubt :slight_smile:
Please mark the doubt as resolved in your doubts section :+1:
Happy Coding :slight_smile:

Thanks for your help

1 Like