Cody

Solution 1907670

Submitted on 21 Aug 2019 at 13:21 by Marco Tullio
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
xyz = [3,4,2; 0,0,2; 0,1,2; 1,1,2; 1,1,20]; w_correct = 25; assert(isequal(walked(xyz),w_correct))

w = 9 16 0 0 1 0 1 0 0 0 0 324 w = 25 1 1 324 w = 5 1 1 18 w = 25

2   Pass
xyz = [3,4,2; 0,0,2; 0,1,2; 1,1,2; 1,5,5]; w_correct = 12; assert(isequal(walked(xyz),w_correct))

w = 9 16 0 0 1 0 1 0 0 0 16 9 w = 25 1 1 25 w = 5 1 1 5 w = 12