Cody

Solution 1840235

Submitted on 6 Jun 2019 by Josh
  • Size: 7
  • This is the leading solution.
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))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Qwerty_encode (line 2) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Qwerty_encode (line 2) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Qwerty_encode (line 2) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

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))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Qwerty_encode (line 2) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

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))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In Qwerty_encode (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

Suggested Problems