Problem 2022. Find a Pythagorean triple

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

35.64% Correct | 64.36% Incorrect
Last Solution submitted on Mar 18, 2024

Problem Comments

Solution Comments

Show comments


Problem Recent Solvers4302

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!