Cody

Solution 100653

Submitted on 20 Jun 2012 by Grzegorz Knor
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:5)'; y_correct = [1 5 4 3 2;2 1 5 4 3;3 2 1 5 4;4 3 2 1 5;5 4 3 2 1]; assert(isequal(shifted(x),y_correct))
{Warning: First element of input column does not match first element of input row. Column wins diagonal conflict.} {> In toeplitz at 25 In shifted at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}