Cody

Solution 183446

Submitted on 30 Dec 2012 by Khaled Hamed
  • Size: 13
  • 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 = 'cody'; y_correct = [13 33 14 51]; assert(isequal(polybius(x),y_correct))
2   Pass
%% x = 'polybius'; y_correct = [34 33 26 51 12 23 43 41]; assert(isequal(polybius(x),y_correct))
3   Pass
%% x = 'i love matlab'; y_correct = [23 0 26 33 44 15 0 31 11 42 26 11 12]; assert(isequal(polybius(x),y_correct))