Cody

# Problem 43060. time difference

Solution 2064507

Submitted on 19 Dec 2019 by Asif Newaz
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))

x = 0 0 0 10 5 31 y = 0 0 0 10 4 31 z = 60

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

x = 0 0 0 10 15 31 y = 0 0 0 10 4 31 z = 660

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

x = 0 0 0 11 5 31 y = 0 0 0 10 4 31 z = 3660

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

x = 0 0 0 21 11 31 y = 0 0 0 10 4 10 z = 40041

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

x = 0 0 0 10 0 0 y = 0 0 0 9 49 37 z = 623

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

x = 0 0 0 101 5 42 y = 0 0 0 7 14 17 z = 337885