Cody

Solution 2566176

Submitted on 16 Jun 2020 by Rafael S.T. Vieira
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
aStr = 'dan'; bStr = 'nan'; cStr = 'nora'; out = [921 121 1042]; assert(isequal(cryptoAdd(aStr,bStr,cStr),out))

0 9 2 1 0 1 2 1 1 0 4 2 1 0 4 2

2   Pass
aStr = 'wait'; bStr = 'all'; cStr = 'gifts'; out = [9608 677 10285]; assert(isequal(cryptoAdd(aStr,bStr,cStr),out))

0 9 6 0 8 0 0 6 7 7 1 0 2 8 5 1 0 2 8 5

3   Pass
aStr = 'memo'; bStr = 'from'; cStr = 'homer'; out = [8485 7358 15843]; assert(isequal(cryptoAdd(aStr,bStr,cStr),out))

0 8 4 8 5 0 7 3 5 8 1 5 8 4 3 1 5 8 4 3

4   Pass
%aStr = 'coca'; %bStr = 'cola'; %cStr = 'oasis'; %out = [8186 8106 16292]; %assert(isequal(cryptoAdd(aStr,bStr,cStr),out))