Problem 163. Love triangles
Solution Stats
Problem Comments
-
1 Comment
Tests with sides that are not sorted should be added.
Solution Comments
-
1 Comment
no range??
-
1 Comment
I wanted to try out the Hankel here. This is more than necessary. It checks to see that the sum of all pairs of sides are greater than the remaining side. You really only need to do this to compare against the maximum length side.
-
3 Comments
This is just bad, only gaming the test suit. There is nothing to be learned from this.
worst solution ,i have ever seen
Added to test suite to eliminate this "solution".
Problem Recent Solvers554
Suggested Problems
-
1217 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
1665 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
339 Solvers
-
Return elements unique to either input
725 Solvers
-
330 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!