What is the other approach to this question

https://ide.geeksforgeeks.org/zCEp5zfRkU

link to the code

@arjun_121
m^2-n^2 , 2mn , m^2+n^2 these will be the 3 sides where third one is hypotenuse and m>n
now try solving it using this

I have used this approach but it failed at certain test cases

The code that I have shared above is based on this approach only

@arjun_121
https://ide.geeksforgeeks.org/wPUTn0gf59

Thanks Sir I solved it

@arjun_121 you are welcome