Pythagorean Triples

Given an integer array, find all Pythagorean triples.

Statement

Given an integer array, find all Pythagorean triples (a2a^2 + b2b^2 = c2c^2), where aa, bb and cc are the array elements.

Access this course and 1400+ top-rated courses and projects.