MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply TodayGiven a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: http://en.wikipedia.org/wiki/Right_triangle.

Examples:

[3 4 5] ---> true

[5 12 13] ---> true

[5 5 5] ---> false

560 correct solutions
613 incorrect solutions

Last solution submitted on Jan 30, 2016

4 players like this problem

1 player likes this solution

2 Comments

Ram-Li-Czech
on 24 May 2013

not a solution to the problem. solution to the testcases.

the cyclist
on 25 May 2013

I added a test case to nullify this "solution".

1 Comment

sea knowledge
on 17 Dec 2012

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

1 Comment

Franck Dernoncourt
on 29 Jan 2012

This presupposes issorted([a b c]).

1 Comment