Cody

Solution 1945138

Submitted on 21 Sep 2019 at 17:10 by Augusto Mazzei
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
times = {'1:00' '1:59'}; y_correct = ['1:00' 24]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 1 num = 24

2   Pass
times = {'2:07' '2:29'}; y_correct = ['2:11' 3]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 2 num = 3

3   Pass
times = {'3:03' '4:04'}; y_correct = ['3:11' 4]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 3 num = 4

4   Pass
times = {'5:55' '7:11'}; y_correct = ['6:15' 3]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 4 num = 3

5   Pass
times = {'7:17' '9:00'}; y_correct = ['8:17' 3]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 5 num = 3

6   Pass
times = {'5:55' '9:00'}; y_correct = ['6:15' 3]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 6 num = 3

7   Pass
times = {'1:00' '9:59'}; y_correct = ['1:00' 24]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

s = 7 num = 24