Problem 2022. Find a Pythagorean triple

Created by Tanya Morton in CUP Challenge

Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them comprise sides of a right-angled triangle. Return true if they do, otherwise return false .

Solution Stats

48.38% Correct | 51.62% Incorrect
Last solution submitted on Jul 16, 2019

Problem Comments

Solution Comments

Recent Solvers1105

Suggested Problems

More from this Author10