Cody

Solution 1980606

Submitted on 17 Oct 2019 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [3 4 5]; y_correct = true; assert(isequal(isTriangle(x),y_correct))

sides = 3 4 5 y = logical 1

2   Pass
x = [1 3 5]; y_correct = false; assert(isequal(isTriangle(x),y_correct))

sides = 1 3 5 y = logical 0

3   Pass
x = [6 5 3]; y_correct = true; assert(isequal(isTriangle(x),y_correct))

sides = 3 5 6 y = logical 1

4   Pass
x = [3 3 3]; y_correct = true; assert(isequal(isTriangle(x),y_correct))

sides = 3 3 3 y = logical 1

5   Pass
x = [4 7 5]; y_correct = true; assert(isequal(isTriangle(x),y_correct))

sides = 4 5 7 y = logical 1

6   Pass
x = [5 8 3]; y_correct = false; assert(isequal(isTriangle(x),y_correct))

sides = 3 5 8 y = logical 0