Cody

Solution 2115115

Submitted on 2 Feb 2020 by Harsh Patel
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))

exp1 = '[a-z]|[A-Z]' reg1 = 1 2 3 5 6 7 17 18 19 20 22 23 24 25 Lyy = 'Youareverykind' Lnn = ' @#$#@*& '

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

exp1 = '[a-z]|[A-Z]' reg1 = 1 2 3 4 5 6 8 9 10 11 12 14 15 17 18 19 20 Lyy = 'Pleasewritemesoon' Lnn = ' '

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

exp1 = '[a-z]|[A-Z]' reg1 = 10 11 12 13 14 Lyy = 'wrong' Lnn = '12+12=23 '