Cody

Problem 22. Remove the vowels

Solution 1760800

Submitted on 25 Mar 2019 by Chidvilashini Modala
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)))

s2 = 'J' j = 2 s2 = 'Jc' j = 3 s2 = 'Jck' j = 4 s2 = 'Jck ' j = 5 s2 = 'Jck n' j = 6 s2 = 'Jck nd' j = 7 s2 = 'Jck nd ' j = 8 s2 = 'Jck nd J' j = 9 s2 = 'Jck nd Jl' j = 10 s2 = 'Jck nd Jll' j = 11 s2 = 'Jck nd Jll ' j = 12 s2 = 'Jck nd Jll w' j = 13 s2 = 'Jck nd Jll wn' j = 14 s2 = 'Jck nd Jll wnt' j = 15 s2 = 'Jck nd Jll wnt ' j = 16 s2 = 'Jck nd Jll wnt p' j = 17 s2 = 'Jck nd Jll wnt p ' j = 18 s2 = 'Jck nd Jll wnt p t' j = 19 s2 = 'Jck nd Jll wnt p th' j = 20 s2 = 'Jck nd Jll wnt p th ' j = 21 s2 = 'Jck nd Jll wnt p th h' j = 22 s2 = 'Jck nd Jll wnt p th hl' j = 23 s2 = 'Jck nd Jll wnt p th hll' j = 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)))

s2 = ' ' j = 2 s2 = ' d' j = 3 s2 = ' dn' j = 4 s2 = ' dn'' j = 5 s2 = ' dn't' j = 6 s2 = ' dn't ' j = 7 s2 = ' dn't w' j = 8 s2 = ' dn't wn' j = 9 s2 = ' dn't wnt' j = 10 s2 = ' dn't wnt ' j = 11 s2 = ' dn't wnt t' j = 12 s2 = ' dn't wnt t ' j = 13 s2 = ' dn't wnt t w' j = 14 s2 = ' dn't wnt t wr' j = 15 s2 = ' dn't wnt t wrk' j = 16 s2 = ' dn't wnt t wrk.' j = 17 s2 = ' dn't wnt t wrk. ' j = 18 s2 = ' dn't wnt t wrk. ' j = 19 s2 = ' dn't wnt t wrk. j' j = 20 s2 = ' dn't wnt t wrk. js' j = 21 s2 = ' dn't wnt t wrk. jst' j = 22 s2 = ' dn't wnt t wrk. jst ' j = 23 s2 = ' dn't wnt t wrk. jst w' j = 24 s2 = ' dn't wnt t wrk. jst wn' j = 25 s2 = ' dn't wnt t wrk. jst wnt' j = 26 s2 = ' dn't wnt t wrk. jst wnt ' j = 27 s2 = ' dn't wnt t wrk. jst wnt t' j = 28 s2 = ' dn't wnt t wrk. jst wnt t ' j = 29 s2 = ' dn't wnt t wrk. jst wnt t b' j = 30 s2 = ' dn't wnt t wrk. jst wnt t bn' j = 31 s2 = ' dn't wnt t wrk. jst wnt t bng' j = 32 s2 = ' dn't wnt t wrk. jst wnt t bng ' j = 33 s2 = ' dn't wnt t wrk. jst wnt t bng n' j = 34 s2 = ' dn't wnt t wrk. jst wnt t bng n ' j = 35 s2 = ' dn't wnt t wrk. jst wnt t bng n t' j = 36 s2 = ' dn't wnt t wrk. jst wnt t bng n th' j = 37 s2 = ' dn't wnt t wrk. jst wnt t bng n th ' j = 38 s2 = ' dn't wnt t wrk. jst wnt t bng n th d' j = 39 s2 = ' dn't wnt t wrk. jst wnt t bng n th dr' j = 40 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm' j = 41 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ' j = 42 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm l' j = 43 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll' j = 44 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll ' j = 45 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll d' j = 46 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll dy' j = 47 s2 = ' dn't wnt t wrk. jst wnt t bng n th drm ll dy.' j = 48