Cody

Solution 1902321

Submitted on 16 Aug 2019 by Nikolaos Nikolaou
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_decode(se),s))

prv = 'T' prv = 'Th' prv = 'ThE' prv = 'ThE ' prv = 'ThE q' prv = 'ThE qU' prv = 'ThE qUi' prv = 'ThE qUiC' prv = 'ThE qUiCk' prv = 'ThE qUiCk ' prv = 'ThE qUiCk B' prv = 'ThE qUiCk Br' prv = 'ThE qUiCk BrO' prv = 'ThE qUiCk BrOw' prv = 'ThE qUiCk BrOwN' prv = 'ThE qUiCk BrOwN ' prv = 'ThE qUiCk BrOwN f' prv = 'ThE qUiCk BrOwN fO' prv = 'ThE qUiCk BrOwN fOx' prv = 'ThE qUiCk BrOwN fOx ' prv = 'ThE qUiCk BrOwN fOx J' prv = 'ThE qUiCk BrOwN fOx Ju' prv = 'ThE qUiCk BrOwN fOx JuM' prv = 'ThE qUiCk BrOwN fOx JuMp' prv = 'ThE qUiCk BrOwN fOx JuMpE' prv = 'ThE qUiCk BrOwN fOx JuMpEd' prv = 'ThE qUiCk BrOwN fOx JuMpEd ' prv = 'ThE qUiCk BrOwN fOx JuMpEd O' prv = 'ThE qUiCk BrOwN fOx JuMpEd Ov' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvE' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr T' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr Th' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE ' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE l' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lA' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAz' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY ' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY d' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY dO' prv = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY dOg' decoded_str = 'ThE qUiCk BrOwN fOx JuMpEd OvEr ThE lAzY dOg'

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

prv = 'a' prv = 'ab' prv = 'abc' prv = 'abcd' prv = 'abcde' prv = 'abcdef' prv = 'abcdefg' prv = 'abcdefgh' prv = 'abcdefghi' prv = 'abcdefghij' prv = 'abcdefghijk' prv = 'abcdefghijkl' prv = 'abcdefghijklm' prv = 'abcdefghijklmn' prv = 'abcdefghijklmno' prv = 'abcdefghijklmnop' prv = 'abcdefghijklmnopq' prv = 'abcdefghijklmnopqr' prv = 'abcdefghijklmnopqrs' prv = 'abcdefghijklmnopqrst' prv = 'abcdefghijklmnopqrstu' prv = 'abcdefghijklmnopqrstuv' prv = 'abcdefghijklmnopqrstuvw' prv = 'abcdefghijklmnopqrstuvwx' prv = 'abcdefghijklmnopqrstuvwxy' prv = 'abcdefghijklmnopqrstuvwxyz' decoded_str = 'abcdefghijklmnopqrstuvwxyz'

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

prv = 'A' prv = 'AB' prv = 'ABC' prv = 'ABCD' prv = 'ABCDE' prv = 'ABCDEF' prv = 'ABCDEFG' prv = 'ABCDEFGH' prv = 'ABCDEFGHI' prv = 'ABCDEFGHIJ' prv = 'ABCDEFGHIJK' prv = 'ABCDEFGHIJKL' prv = 'ABCDEFGHIJKLM' prv = 'ABCDEFGHIJKLMN' prv = 'ABCDEFGHIJKLMNO' prv = 'ABCDEFGHIJKLMNOP' prv = 'ABCDEFGHIJKLMNOPQ' prv = 'ABCDEFGHIJKLMNOPQR' prv = 'ABCDEFGHIJKLMNOPQRS' prv = 'ABCDEFGHIJKLMNOPQRST' prv = 'ABCDEFGHIJKLMNOPQRSTU' prv = 'ABCDEFGHIJKLMNOPQRSTUV' prv = 'ABCDEFGHIJKLMNOPQRSTUVW' prv = 'ABCDEFGHIJKLMNOPQRSTUVWX' prv = 'ABCDEFGHIJKLMNOPQRSTUVWXY' prv = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' decoded_str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

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_decode(se),s))

prv = 'Y' prv = 'Yo' prv = 'You' prv = 'You ' prv = 'You m' prv = 'You mi' prv = 'You mis' prv = 'You miss' prv = 'You miss ' prv = 'You miss 1' prv = 'You miss 10' prv = 'You miss 100' prv = 'You miss 100 ' prv = 'You miss 100 p' prv = 'You miss 100 pe' prv = 'You miss 100 per' prv = 'You miss 100 perc' prv = 'You miss 100 perce' prv = 'You miss 100 percen' prv = 'You miss 100 percent' prv = 'You miss 100 percent ' prv = 'You miss 100 percent o' prv = 'You miss 100 percent of' prv = 'You miss 100 percent of ' prv = 'You miss 100 percent of t' prv = 'You miss 100 percent of th' prv = 'You miss 100 percent of the' prv = 'You miss 100 percent of the ' prv = 'You miss 100 percent of the s' prv = 'You miss 100 percent of the sh' prv = 'You miss 100 percent of the sho' prv = 'You miss 100 percent of the shot' prv = 'You miss 100 percent of the shots' prv = 'You miss 100 percent of the shots ' prv = 'You miss 100 percent of the shots y' prv = 'You miss 100 percent of the shots yo' prv = 'You miss 100 percent of the shots you' prv = 'You miss 100 percent of the shots you ' prv = 'You miss 100 percent of the shots you n' prv = 'You miss 100 percent of the shots you ne' prv = 'You miss 100 percent of the shots you nev' prv = 'You miss 100 percent of the shots you neve' prv = 'You miss 100 percent of the shots you never' prv = 'You miss 100 percent of the shots you never ' prv = 'You miss 100 percent of the shots you never t' prv = 'You miss 100 percent of the shots you never ta' prv = 'You miss 100 percent of the shots you never tak' prv = 'You miss 100 percent of the shots you never take' prv = 'You miss 100 percent of the shots you never take.' prv = 'You miss 100 percent of the shots you never take. ' prv = 'You miss 100 percent of the shots you never take. G' prv = 'You miss 100 percent of the shots you never take. Gr' prv = 'You miss 100 percent of the shots you never take. Gre' prv = 'You miss 100 percent of the shots you never take. Gret' prv = 'You miss 100 percent of the shots you never take. Gretz' prv = 'You miss 100 percent of the shots you never take. Gretzk' prv = 'You miss 100 percent of the shots you never take. Gretzky' decoded_str = 'You miss 100 percent of the shots you never take. Gretzky'

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_decode(se),s))

prv = 'T' prv = 'Th' prv = 'Tho' prv = 'Thos' prv = 'Those' prv = 'Those ' prv = 'Those w' prv = 'Those wh' prv = 'Those who' prv = 'Those who ' prv = 'Those who b' prv = 'Those who be' prv = 'Those who bel' prv = 'Those who beli' prv = 'Those who belie' prv = 'Those who believ' prv = 'Those who believe' prv = 'Those who believe ' prv = 'Those who believe i' prv = 'Those who believe in' prv = 'Those who believe in ' prv = 'Those who believe in t' prv = 'Those who believe in te' prv = 'Those who believe in tel' prv = 'Those who believe in tele' prv = 'Those who believe in telek' prv = 'Those who believe in teleki' prv = 'Those who believe in telekin' prv = 'Those who believe in telekine' prv = 'Those who believe in telekinet' prv = 'Those who believe in telekineti' prv = 'Those who believe in telekinetic' prv = 'Those who believe in telekinetics' prv = 'Those who believe in telekinetics ' prv = 'Those who believe in telekinetics r' prv = 'Those who believe in telekinetics ra' prv = 'Those who believe in telekinetics rai' prv = 'Those who believe in telekinetics rais' prv = 'Those who believe in telekinetics raise' prv = 'Those who believe in telekinetics raise ' prv = 'Those who believe in telekinetics raise m' prv = 'Those who believe in telekinetics raise my' prv = 'Those who believe in telekinetics raise my ' prv = 'Those who believe in telekinetics raise my h' prv = 'Those who believe in telekinetics raise my ha' prv = 'Those who believe in telekinetics raise my han' prv = 'Those who believe in telekinetics raise my hand' prv = 'Those who believe in telekinetics raise my hand.' prv = 'Those who believe in telekinetics raise my hand. ' prv = 'Those who believe in telekinetics raise my hand. V' prv = 'Those who believe in telekinetics raise my hand. Vo' prv = 'Those who believe in telekinetics raise my hand. Von' prv = 'Those who believe in telekinetics raise my hand. Vonn' prv = 'Those who believe in telekinetics raise my hand. Vonne' prv = 'Those who believe in telekinetics raise my hand. Vonneg' prv = 'Those who believe in telekinetics raise my hand. Vonnegu' prv = 'Those who believe in telekinetics raise my hand. Vonnegut' decoded_str = 'Those who believe in telekinetics raise my hand. Vonnegut'