Cody

Solution 1211773

Submitted on 13 Jun 2017 by Said BOUREZG
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
tt=18; rate1=3; rate2=2; y_correct =[12,4,2]; assert(isequal(rocketburntime(tt,rate1,rate2),y_correct))

s3 = 2 s2 = 4 s1 = 12

2   Pass
tt=32; rate1=4; rate2=3; y_correct =[24,6,2]; assert(isequal(rocketburntime(tt,rate1,rate2),y_correct))

s3 = 2 s2 = 6 s1 = 24

3   Pass
tt=58; rate1=6; rate2=4; y_correct =[48,8,2]; assert(isequal(rocketburntime(tt,rate1,rate2),y_correct))

s3 = 2 s2 = 8 s1 = 48

Suggested Problems

More from this Author16