Cody

# Problem 2227. Broken numlock key, oppps !

Solution 1967299

Submitted on 8 Oct 2019
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   Fail
x = '0y n4036c2 2ey 5s br62en!'; y_correct = 'my numlock key is broken!'; assert(isequal(DecodeNumlk(x),y_correct));

Output argument "y" (and maybe others) not assigned during call to "DecodeNumlk". Error in Test1 (line 3) assert(isequal(DecodeNumlk(x),y_correct));

2   Fail

Output argument "y" (and maybe others) not assigned during call to "DecodeNumlk". Error in Test2 (line 3) assert(isequal(DecodeNumlk(x),y_correct));

3   Fail
x = 'Th5s 5s g65ng t6 be b5g f4n w5th n40ber 2eys 123456789/'; y_correct = 'This is going to be big fun with number keys 1234567890'; assert(isequal(DecodeNumlk(x),y_correct));

x = 'This is going to be big fun with number keys 1234567890'

Output argument "y" (and maybe others) not assigned during call to "DecodeNumlk". Error in Test3 (line 3) assert(isequal(DecodeNumlk(x),y_correct));

4   Fail
x = 'Why these 2eys brea2 and 0a2e a b5g 0ess 6***s -/'; y_correct = 'Why these keys break and make a big mess oppps :)'; assert(isequal(DecodeNumlk(x),y_correct));

Output argument "y" (and maybe others) not assigned during call to "DecodeNumlk". Error in Test4 (line 3) assert(isequal(DecodeNumlk(x),y_correct));

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!