This appears to be duplicating an error in the original Problem: according to the problem specification, having an input of [1] should yield a result of "false", as there is no OTHER element to compare the 1 to! You can easily fix this inconsistency by either --- changing your problem specification (mention that you can compare to all vector elements, not just the 'other' elements) or --- by changing the correct result to "false" in your Test Suite.
Please check comments made about the original Problem to avoid duplicating errors or inconsistencies.
What is the distance from point P(x,y) to the line Ax + By + C = 0?
279 Solvers
710 Solvers
Given a window, how many subsets of a vector sum positive
753 Solvers
284 Solvers
558 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!