Hi in this task I am getting wrong answer and in the hint it is saying to look out for negative numbers but i dont think pythagorean triplets are meant for -ve numbers and even if one is to be made the other two sides of triangle will be the same.So can you help me with this?
Pythagorean Triplet Problem
Yes. Note that in the question it is mentioned that when output does not exist…you have to print -1.