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

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

400 correct solutions
436 incorrect solutions

Last solution submitted on Apr 18, 2014

3 players like this problem

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]).

2 Comments