Cody

# Problem 1550. Can I make a right triangle ?

Solution 2018376

Submitted on 13 Nov 2019 by Asif Newaz
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(right_triangle(x),y_correct))

c = 3 4 5

2   Pass
x = [1 2 3 4 5 6 7]; y_correct = true; assert(isequal(right_triangle(x),y_correct))

c = 1 2 3 4 5 6 7

3   Pass
x = [3 2 9 129 7 8 13]; y_correct = false; assert(isequal(right_triangle(x),y_correct))

c = 2 3 7 8 9 13 129

4   Pass
x = [1:3:300]; y_correct = false; assert(isequal(right_triangle(x),y_correct))

c = Columns 1 through 29 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82 85 Columns 30 through 58 88 91 94 97 100 103 106 109 112 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169 172 Columns 59 through 87 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226 229 232 235 238 241 244 247 250 253 256 259 Columns 88 through 100 262 265 268 271 274 277 280 283 286 289 292 295 298

5   Pass
x = 1; y_correct = false; assert(isequal(right_triangle(x),y_correct))

c = 1

6   Pass
x = [200 5 28 4 9 1 1 1 3]; y_correct = true; assert(isequal(right_triangle(x),y_correct))

c = 1 1 1 3 4 5 9 28 200