Pythagorean Triplet
CodeChefOpen on judge ↗
Problem description. It was a winter morning. Andrie, a brilliant coder, was sitting beside a window thinking about the great scientist Pythagoras and his experiments. Suddenly, a problem stroke his mind. Suppose there is a 1-D array of integers.He wanted to find whether the array contains any pythagorean triplet i.e. a2 + b2 = c2 . Input First line should be an integer denoting the size of arr
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start