how is [5 5 5] false?
@Nikolaos
[5 5 5] can make a triangle, but not a *right* triangle (with one 90-degree angle). See the Wikipedia page definition.
This problem, and more similar but difficult ones, are covered in depth in the CUP challenge
good !!!!!
not a solution to the problem. solution to the testcases.
I added a test case to nullify this "solution".
right triangle>a triangle with one 90 degree_angle?from this point,we can see the expression power of English sucks when compared to that of chinese
FYI, "right triangle" is American English, "right-angled triangle" (or "right-angle triangle") is British English. Neither expression reflects the 'power' of the language.
This presupposes issorted([a b c]).
Find common elements in matrix rows
1272 Solvers
Read a column of numbers and interpolate missing data
1252 Solvers
Replace NaNs with the number that appears to its left in the row.
2033 Solvers
672 Solvers
Create matrix of replicated elements
324 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!