Cody

Solution 1473330

Submitted on 28 Mar 2018 by Brandon Nipper
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))

str = 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 Lyy = 'Y' Lyy = 'Yo' Lyy = 'You' Lnn = ' ' Lyy = 'Youa' Lyy = 'Youar' Lyy = 'Youare' Lnn = ' ' Lnn = ' @' Lnn = ' @#' Lnn = ' @#$' Lnn = ' @#$#' Lnn = ' @#$#@' Lnn = ' @#$#@*' Lnn = ' @#$#@*&' Lnn = ' @#$#@*& ' Lyy = 'Youarev' Lyy = 'Youareve' Lyy = 'Youarever' Lyy = 'Youarevery' Lnn = ' @#$#@*& ' Lyy = 'Youareveryk' Lyy = 'Youareveryki' Lyy = 'Youareverykin' Lyy = 'Youareverykind'

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

str = 80 108 101 97 115 101 32 119 114 105 116 101 32 109 101 32 115 111 111 110 Lyy = 'P' Lyy = 'Pl' Lyy = 'Ple' Lyy = 'Plea' Lyy = 'Pleas' Lyy = 'Please' Lnn = ' ' Lyy = 'Pleasew' Lyy = 'Pleasewr' Lyy = 'Pleasewri' Lyy = 'Pleasewrit' Lyy = 'Pleasewrite' Lnn = ' ' Lyy = 'Pleasewritem' Lyy = 'Pleasewriteme' Lnn = ' ' Lyy = 'Pleasewritemes' Lyy = 'Pleasewritemeso' Lyy = 'Pleasewritemesoo' Lyy = 'Pleasewritemesoon'

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

str = 49 50 43 49 50 61 50 51 32 119 114 111 110 103 Lnn = '1' Lnn = '12' Lnn = '12+' Lnn = '12+1' Lnn = '12+12' Lnn = '12+12=' Lnn = '12+12=2' Lnn = '12+12=23' Lnn = '12+12=23 ' Lyy = 'w' Lyy = 'wr' Lyy = 'wro' Lyy = 'wron' Lyy = 'wrong'