only testcase no 2 and 3 are passed
Getting wrong answer
I am unable to see your code in the link you provided. can you please post your code here only.
thanks
as mentioned in the question, a is one of the legs, a can not be hypotenuse. so you must not consider the condition when a is hypotenuse. a^2 + b^2 condition is sufficient. Moreover you can refer https://www.hackerrank.com/challenges/pythagorean-triple/editorial for many better different approaches.
thanks
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.