Cody

Problem 2433. Consecutive Equation Times (of the day)

Solution 2755282

Submitted on 29 Jul 2020
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   Fail
times = {'1:00' '1:59'}; y_correct = ['1:00' 24]; [t_s,num] = equation_times_run(times); assert(isequal([t_s,num],y_correct))

ans = '1:23' num = 23

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test1 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '2:13' num = 3

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test2 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '3:14' ans = '3:31' num = 4

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test3 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '6:17' num = 3

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test4 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '8:19' num = 3

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test5 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '6:17' ans = '7:18' ans = '8:19' num = 3

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test6 (line 3) [t_s,num] = equation_times_run(times);

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

ans = '1:23' num = 23

Output argument "t_s" (and maybe others) not assigned during call to "equation_times_run". Error in Test7 (line 3) [t_s,num] = equation_times_run(times);