Cody

# Problem 43060. time difference

Solution 1150353

Submitted on 30 Mar 2017 by H M Dipu Kabir
• Size: 10
• This is the leading solution.
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))

ans = []

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

ans = []

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

ans = []

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

ans = []

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

ans = []

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

ans = []

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!