Cody

# Problem 462. letter yes yes & letter no no

Solution 1454240

Submitted on 2 Mar 2018 by shimon zusmanovsky
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))

Lyy = [] Lnn = [] x = 25 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

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

Lyy = [] Lnn = [] x = 14 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'

### Community Treasure Hunt

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

Start Hunting!