Cody

Solution 1029496

Submitted on 24 Oct 2016 by SirSteve26
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
S = 12; h=4; y_correct = [5 5 6]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

y = 0 0 0 y = 0 0 6 y = 5 0 6 y = 5 5 6

2   Pass
S = 60; h=5; y_correct = [ 13 13 24]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

y = 0 0 0 y = 0 0 24 y = 13 0 24 y = 13 13 24

3   Pass
S = 120; h=8; y_correct = [ 17 17 30]; assert(isequal(sidesOfTheTriangle(S ,h),y_correct))

y = 0 0 0 y = 0 0 30 y = 17 0 30 y = 17 17 30