Cody

# Problem 462. letter yes yes & letter no no

Solution 1421655

Submitted on 21 Jan 2018 by nadav regev
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
LynLyn='You are @#\$#@*& very kind'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='Youareverykind'; Ln=' @#\$#@*& '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

v = 89 111 117 32 97 114 101 32 64 35 36 35 64 42 38 32 118 101 114 121 32 107 105 110 100 alphabet = 89 111 117 97 114 101 118 101 114 121 107 105 110 100 rest = 32 32 64 35 36 35 64 42 38 32 32

2   Pass
LynLyn='Please write me soon'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='Pleasewritemesoon'; Ln=' '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

v = 80 108 101 97 115 101 32 119 114 105 116 101 32 109 101 32 115 111 111 110 alphabet = 80 108 101 97 115 101 119 114 105 116 101 109 101 115 111 111 110 rest = 32 32 32

3   Pass
LynLyn='12+12=23 wrong'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='wrong'; Ln='12+12=23 '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

v = 49 50 43 49 50 61 50 51 32 119 114 111 110 103 alphabet = 119 114 111 110 103 rest = 49 50 43 49 50 61 50 51 32