Cody

Solution 1948920

Submitted on 25 Sep 2019 by Eugene Kronberg
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
s='ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY dOg'; se = 'YjR wIoVl NtPeM gPc Ki<[Rf PbRt YjR ;SxU fPh'; assert(isequal(Qwerty_encode(s),se))

ind = 16 ind = 28 ind = 14 ind = 1×0 empty double row vector ind = 1 ind = 18 ind = 8 ind = 53 ind = 30 ind = 1×0 empty double row vector ind = 55 ind = 4 ind = 20 ind = 2 ind = 56 ind = 1×0 empty double row vector ind = 26 ind = 20 ind = 44 ind = 1×0 empty double row vector ind = 39 ind = 7 ind = 57 ind = 10 ind = 14 ind = 25 ind = 1×0 empty double row vector ind = 20 ind = 46 ind = 14 ind = 4 ind = 1×0 empty double row vector ind = 16 ind = 28 ind = 14 ind = 1×0 empty double row vector ind = 31 ind = 33 ind = 43 ind = 17 ind = 1×0 empty double row vector ind = 25 ind = 20 ind = 27

2   Pass
s='abcdefghijklmnopqrstuvwxyz'; se='snvfrghjokl;,mp[wtdyibecux'; % a-z assert(isequal(Qwerty_encode(s),se))

ind = 23 ind = 47 ind = 45 ind = 25 ind = 3 ind = 26 ind = 27 ind = 28 ind = 8 ind = 29 ind = 30 ind = 31 ind = 49 ind = 48 ind = 9 ind = 10 ind = 1 ind = 4 ind = 24 ind = 5 ind = 7 ind = 46 ind = 2 ind = 44 ind = 6 ind = 43

3   Pass
s='ABCDEFGHIJKLMNOPQRSTUVWXYZ'; se='SNVFRGHJOKL:<MP{WTDYIBECUX'; % A-Z assert(isequal(Qwerty_encode(s),se))

ind = 33 ind = 55 ind = 53 ind = 35 ind = 14 ind = 36 ind = 37 ind = 38 ind = 19 ind = 39 ind = 40 ind = 41 ind = 57 ind = 56 ind = 20 ind = 21 ind = 12 ind = 15 ind = 34 ind = 16 ind = 18 ind = 54 ind = 13 ind = 52 ind = 17 ind = 51

4   Pass
s='You miss 100 percent of the shots you never take. Gretzky'; se='Upi ,odd 100 [rtvrmy pg yjr djpyd upi mrbrt yslr. Htryxlu'; assert(isequal(Qwerty_encode(s),se))

ind = 17 ind = 9 ind = 7 ind = 1×0 empty double row vector ind = 49 ind = 8 ind = 24 ind = 24 ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 10 ind = 3 ind = 4 ind = 45 ind = 3 ind = 48 ind = 5 ind = 1×0 empty double row vector ind = 9 ind = 26 ind = 1×0 empty double row vector ind = 5 ind = 28 ind = 3 ind = 1×0 empty double row vector ind = 24 ind = 28 ind = 9 ind = 5 ind = 24 ind = 1×0 empty double row vector ind = 6 ind = 9 ind = 7 ind = 1×0 empty double row vector ind = 48 ind = 3 ind = 46 ind = 3 ind = 4 ind = 1×0 empty double row vector ind = 5 ind = 23 ind = 30 ind = 3 ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 37 ind = 4 ind = 3 ind = 5 ind = 43 ind = 30 ind = 6

5   Pass
s='Those who believe in telekinetics raise my hand. Vonnegut'; se='Yjpdr ejp nr;orbr om yr;rlomryovd tsodr ,u jsmf. Bpmmrhiy'; assert(isequal(Qwerty_encode(s),se))

ind = 16 ind = 28 ind = 9 ind = 24 ind = 3 ind = 1×0 empty double row vector ind = 2 ind = 28 ind = 9 ind = 1×0 empty double row vector ind = 47 ind = 3 ind = 31 ind = 8 ind = 3 ind = 46 ind = 3 ind = 1×0 empty double row vector ind = 8 ind = 48 ind = 1×0 empty double row vector ind = 5 ind = 3 ind = 31 ind = 3 ind = 30 ind = 8 ind = 48 ind = 3 ind = 5 ind = 8 ind = 45 ind = 24 ind = 1×0 empty double row vector ind = 4 ind = 23 ind = 8 ind = 24 ind = 3 ind = 1×0 empty double row vector ind = 49 ind = 6 ind = 1×0 empty double row vector ind = 28 ind = 23 ind = 48 ind = 25 ind = 1×0 empty double row vector ind = 1×0 empty double row vector ind = 54 ind = 9 ind = 48 ind = 48 ind = 3 ind = 27 ind = 7 ind = 5