Cody

Solution 1028235

Submitted on 23 Oct 2016 by Olha Remesh
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))

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

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