Problem 43294. Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle sum of two sides should be greater than the third one. So with the lengths of 2,3 and 6 we can not make a triangle
Solution Stats
Problem Comments
-
2 Comments
Arpad Barsi
on 19 Dec 2020
A test case with a zero length should also be included as false case.
An May Di Vang ver 2
on 12 Aug 2021
normal
Solution Comments
Show commentsProblem Recent Solvers1769
Suggested Problems
-
Select every other element of a vector
31162 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15274 Solvers
-
Find relatively common elements in matrix rows
1923 Solvers
-
Find the largest value in the 3D matrix
1467 Solvers
-
Simple equation: Annual salary
4146 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!