Cody

Solution 99335

Submitted on 16 Jun 2012 by Binbin Qi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

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: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.} {> In hankel at 27 In shifted at 2 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} y = 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