Cody

# Problem 517. Wind outward from the center ...

Solution 824706

Submitted on 11 Feb 2016 by William
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 = 1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct)) x = 5; y_correct = [21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13]; assert(isequal(your_fcn_name(x),y_correct)) x = 9; y_correct = [ 73 74 75 76 77 78 79 80 81 72 43 44 45 46 47 48 49 50 71 42 21 22 23 24 25 26 51 70 41 20 7 8 9 10 27 52 69 40 19 6 1 2 11 28 53 68 39 18 5 4 3 12 29 54 67 38 17 16 15 14 13 30 55 66 37 36 35 34 33 32 31 56 65 64 63 62 61 60 59 58 57] assert(isequal(your_fcn_name(x),y_correct))

pth = 1 1 pth = 1 5 pth = 1 4 pth = 1 3 pth = 1 2 pth = 1 1 pth = 2 1 pth = 3 1 pth = 4 1 pth = 5 1 pth = 5 2 pth = 5 3 pth = 5 4 pth = 5 5 pth = 4 5 pth = 3 5 pth = 2 5 pth = 2 4 pth = 2 3 pth = 2 2 pth = 3 2 pth = 4 2 pth = 4 3 pth = 4 4 pth = 3 4 pth = 3 3 y_correct = 73 74 75 76 77 78 79 80 81 72 43 44 45 46 47 48 49 50 71 42 21 22 23 24 25 26 51 70 41 20 7 8 9 10 27 52 69 40 19 6 1 2 11 28 53 68 39 18 5 4 3 12 29 54 67 38 17 16 15 14 13 30 55 66 37 36 35 34 33 32 31 56 65 64 63 62 61 60 59 58 57 pth = 1 9 pth = 1 8 pth = 1 7 pth = 1 6 pth = 1 5 pth = 1 4 pth = 1 3 pth = 1 2 pth = 1 1 pth = 2 1 pth = 3 1 pth = 4 1 pth = 5 1 pth = 6 1 pth = 7 1 pth = 8 1 pth = 9 1 pth = 9 2 pth = 9 3 pth = 9 4 pth = 9 5 pth = 9 6 pth = 9 7 pth = 9 8 pth = 9 9 pth = 8 9 pth = 7 9 pth = 6 9 pth = 5 9 pth = 4 9 pth = 3 9 pth = 2 9 pth = 2 8 pth = 2 7 pth = 2 6 pth = 2 5 pth = 2 4 pth = 2 3 pth = 2 2 pth = 3 2 pth = 4 2 pth = 5 2 pth = 6 2 pth = 7 2 pth = 8 2 pth = 8 3 pth = 8 4 pth = 8 5 pth = 8 6 pth = 8 7 pth = 8 8 pth = 7 8 pth = 6 8 pth = 5 8 pth = 4 8 pth = 3 8 pth = 3 7 pth = 3 6 pth = 3 5 pth = 3 4 pth = 3 3 pth = 4 3 pth = 5 3 pth = 6 3 pth = 7 3 pth = 7 4 pth = 7 5 pth = 7 6 pth = 7 7 pth = 6 7 pth = 5 7 pth = 4 7 pth = 4 6 pth = 4 5 pth = 4 4 pth = 5 4 pth = 6 4 pth = 6 5 pth = 6 6 pth = 5 6 pth = 5 5