Problem Description
Given an integer array of length n, return a result array of length n-2, where result[i] = 1 if:
array[i]^2 + array[i+1]^2 = array[i+2]^2,
array[i+1]^2 + array[i+2]^2 = array[i]^2, and
array[i]^2 + array[i+2]^2 = array[i+1]^2.
Otherwise, result[i] = 0.
Hints
No hints available for this question.