Cody

Solution 893867

Submitted on 23 May 2016 by Dennis Winston
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
s1 = 'Jack and Jill went up the hill'; s2 = 'Jck nd Jll wnt p th hll'; assert(isequal(s2,refcn(s1)))

A = 2 6 s1 = J ck nd Jill went up the hill E = 16 25 s1 = J ck nd Jill w nt up th hill I = 11 28 s1 = J ck nd J ll w nt up th h ll i = Empty matrix: 1-by-0 s1 = J ck nd J ll w nt up th h ll O = Empty matrix: 1-by-0 s1 = J ck nd J ll w nt up th h ll U = 20 s1 = J ck nd J ll w nt p th h ll s2 = Columns 1 through 16 1 3 4 5 7 8 9 10 12 13 14 15 17 18 19 21 Columns 17 through 23 22 23 24 26 27 29 30 s2 = Jck nd Jll wnt p th hll

2   Pass
s1 = 'I don''t want to work. I just want to bang on the drum all day.'; s2 = ' dn''t wnt t wrk. jst wnt t bng n th drm ll dy.'; assert(isequal(s2,refcn(s1)))

A = 10 31 39 55 60 s1 = I don't w nt to work. I just w nt to b ng on the drum ll d y. E = 48 s1 = I don't w nt to work. I just w nt to b ng on th drum ll d y. I = Empty matrix: 1-by-0 s1 = I don't w nt to work. I just w nt to b ng on th drum ll d y. i = 1 23 s1 = don't w nt to work. just w nt to b ng on th drum ll d y. O = 4 15 18 36 43 s1 = d n't w nt t w rk. just w nt t b ng n th drum ll d y. U = 26 52 s1 = d n't w nt t w rk. j st w nt t b ng n th dr m ll d y. s2 = Columns 1 through 16 2 3 5 6 7 8 9 11 12 13 14 16 17 19 20 21 Columns 17 through 32 22 24 25 27 28 29 30 32 33 34 35 37 38 40 41 42 Columns 33 through 47 44 45 46 47 49 50 51 53 54 56 57 58 59 61 62 s2 = dn't wnt t wrk. jst wnt t bng n th drm ll dy.

More from this Author95