Cody

Problem 44472. A kind of decryption

Solution 2097233

Submitted on 18 Jan 2020 by Asif Newaz
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 = [19 17 18 25]; y_correct = '2018'; assert(isequal(decryp(x),y_correct))

y = 50 48 49 56 s = '2018'

2   Pass
x = [46 34 53 45 34 35]; y_correct = 'MATLAB'; assert(isequal(decryp(x),y_correct))

y = 77 65 84 76 65 66 s = 'MATLAB'

3   Pass
x = [34 1 41 66 81 81 90 1 47 70 88 1 58 70 66 83 1 2 2]; y_correct = 'A Happy New Year !!'; assert(isequal(decryp(x),y_correct))

y = 65 32 72 97 112 112 121 32 78 101 119 32 89 101 97 114 32 33 33 s = 'A Happy New Year !!'