Cody

Solution 2658389

Submitted on 6 Jul 2020 at 12:45 by Ramesh Kumar V
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
x = [10 5 31]; y = [10 4 31]; z_correct = 60; assert(isequal(timeDiff(x,y),z_correct))

2   Pass
x = [10 15 31]; y = [10 4 31]; z_correct = 660; assert(isequal(timeDiff(x,y),z_correct))

3   Pass
x = [11 5 31]; y = [10 4 31]; z_correct = 3660; assert(isequal(timeDiff(x,y),z_correct))

4   Pass
x = [21 11 31]; y = [10 4 10]; z_correct = 40041; assert(isequal(timeDiff(x,y),z_correct))

5   Pass
x = [10 0 0]; y = [ 9 49 37]; z_correct = 623; assert(isequal(timeDiff(x,y),z_correct))

6   Pass
x = [101 5 42]; y = [ 7 14 17]; z_correct = 337885; assert(isequal(timeDiff(x,y),z_correct))