Cody

Solution 1156801

Submitted on 8 Apr 2017
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   Fail
nums = [0,1,10,25,26,52,100,260]; words = {'a','b','k','z','ba','ca','dw','ka'}; for n=1:length(nums) assert(strcmpi(words{n},dec2alpha(nums(n)))); end

s = cell 'a' s = cell 'a' s = cell 'b' s = cell 'b' s = cell 'k' s = cell 'k' s = cell 'z' s = cell 'z' s = cell 'a' s = cell 'a'

Assertion failed.

2   Fail
nums = [35664,62366]; words = {'cats','dogs'}; for n=1:length(nums) assert(strcmpi(words{n},dec2alpha(nums(n)))); end

s = cell 'wps' s = cell 'wps'

Assertion failed.

3   Fail
assert(strcmpi('matlab', dec2alpha(142917893)));

s = cell 'hwpgwb' s = cell 'hwpgwb'

Assertion failed.

Suggested Problems

More from this Author2