Cody

Solution 439062

Submitted on 6 May 2014 by Neeraj Badamikar
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)))

len = 30 k = 2 s1 = Jck and Jill went up the hill k = 3 k = 4 k = 5 s1 = Jck nd Jill went up the hill k = 6 k = 7 k = 8 k = 9 s1 = Jck nd Jll went up the hill k = 10 k = 11 k = 12 k = 13 s1 = Jck nd Jll wnt up the hill k = 14 k = 15 k = 16 s1 = Jck nd Jll wnt p the hill k = 17 k = 18 k = 19 k = 20 s1 = Jck nd Jll wnt p th hill k = 21 k = 22 s1 = Jck nd Jll wnt p th hll k = 23 k = 24

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)))

len = 62 s1 = don't want to work. I just want to bang on the drum all day. k = 2 k = 3 s1 = dn't want to work. I just want to bang on the drum all day. k = 4 k = 5 k = 6 k = 7 k = 8 s1 = dn't wnt to work. I just want to bang on the drum all day. k = 9 k = 10 k = 11 k = 12 s1 = dn't wnt t work. I just want to bang on the drum all day. k = 13 k = 14 s1 = dn't wnt t wrk. I just want to bang on the drum all day. k = 15 k = 16 k = 17 k = 18 s1 = dn't wnt t wrk. just want to bang on the drum all day. k = 19 k = 20 s1 = dn't wnt t wrk. jst want to bang on the drum all day. k = 21 k = 22 k = 23 k = 24 s1 = dn't wnt t wrk. jst wnt to bang on the drum all day. k = 25 k = 26 k = 27 k = 28 s1 = dn't wnt t wrk. jst wnt t bang on the drum all day. k = 29 k = 30 s1 = dn't wnt t wrk. jst wnt t bng on the drum all day. k = 31 k = 32 k = 33 s1 = dn't wnt t wrk. jst wnt t bng n the drum all day. k = 34 k = 35 k = 36 k = 37 s1 = dn't wnt t wrk. jst wnt t bng n th drum all day. k = 38 k = 39 k = 40 s1 = dn't wnt t wrk. jst wnt t bng n th drm all day. k = 41 k = 42 s1 = dn't wnt t wrk. jst wnt t bng n th drm ll day. k = 43 k = 44 k = 45 k = 46 s1 = dn't wnt t wrk. jst wnt t bng n th drm ll dy. k = 47 k = 48

Suggested Problems

More from this Author95