Pythagorean triplet in an array - Interview Question
In the problem of Pythagorean triplet we are given an array of numbers.
array = [1, 2, 3, 4, 5]
We have to return true if there exists a triplet of (a, b, c) such that a^2^ + b^2^ = c^2^.
For example, in the above array the triplet (3, 4, 5) satisfi...
il3ven.hashnode.dev6 min read