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))
|
3115 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
All your base are belong to us
463 Solvers
Back to basics 12 - Input Arguments
525 Solvers
346 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!