Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This checks that there is no permutation of the input such that when you add each element to each corresponding element of the input, no element of that resulting sum is in the input.