Cody

Solution 2098666

Submitted on 19 Jan 2020 by kieran Thompson
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 = 'a a i e u e i'; assert(isequal(s2,refcn(s1)))

x = 30 i = 1 s2 = 'ack and Jill went up the hill' x = 29 i = 2 s2 = 'ak and Jill went up the hill' x = 28 s2 = 'a and Jill went up the hill' x = 27 i = 3 i = 4 s2 = 'a ad Jill went up the hill' x = 26 s2 = 'a a Jill went up the hill' x = 25 i = 5 s2 = 'a a ill went up the hill' x = 24 i = 6 s2 = 'a a il went up the hill' x = 23 s2 = 'a a i went up the hill' x = 22 i = 7 s2 = 'a a i ent up the hill' x = 21 i = 8 s2 = 'a a i et up the hill' x = 20 s2 = 'a a i e up the hill' x = 19 i = 9 i = 10 s2 = 'a a i e u the hill' x = 18 i = 11 s2 = 'a a i e u he hill' x = 17 s2 = 'a a i e u e hill' x = 16 i = 12 i = 13 s2 = 'a a i e u e ill' x = 15 i = 14 s2 = 'a a i e u e il' x = 14 s2 = 'a a i e u e i' x = 13

2   Pass
s1 = 'I don''t want to work. I just want to bang on the drum all day.'; s2 = 'I o'' a o o. I u a o a o e u a a.'; assert(isequal(s2,refcn(s1)))

x = 62 i = 1 i = 2 i = 3 s2 = 'I on't want to work. I just want to bang on the drum all day.' x = 61 i = 4 s2 = 'I o't want to work. I just want to bang on the drum all day.' x = 60 i = 5 s2 = 'I o' want to work. I just want to bang on the drum all day.' x = 59 i = 6 s2 = 'I o' ant to work. I just want to bang on the drum all day.' x = 58 i = 7 s2 = 'I o' at to work. I just want to bang on the drum all day.' x = 57 s2 = 'I o' a to work. I just want to bang on the drum all day.' x = 56 i = 8 s2 = 'I o' a o work. I just want to bang on the drum all day.' x = 55 i = 9 i = 10 s2 = 'I o' a o ork. I just want to bang on the drum all day.' x = 54 i = 11 s2 = 'I o' a o ok. I just want to bang on the drum all day.' x = 53 s2 = 'I o' a o o. I just want to bang on the drum all day.' x = 52 i = 12 i = 13 i = 14 i = 15 s2 = 'I o' a o o. I ust want to bang on the drum all day.' x = 51 i = 16 s2 = 'I o' a o o. I ut want to bang on the drum all day.' x = 50 s2 = 'I o' a o o. I u want to bang on the drum all day.' x = 49 i = 17 s2 = 'I o' a o o. I u ant to bang on the drum all day.' x = 48 i = 18 s2 = 'I o' a o o. I u at to bang on the drum all day.' x = 47 s2 = 'I o' a o o. I u a to bang on the drum all day.' x = 46 i = 19 s2 = 'I o' a o o. I u a o bang on the drum all day.' x = 45 i = 20 i = 21 s2 = 'I o' a o o. I u a o ang on the drum all day.' x = 44 i = 22 s2 = 'I o' a o o. I u a o ag on the drum all day.' x = 43 s2 = 'I o' a o o. I u a o a on the drum all day.' x = 42 i = 23 i = 24 s2 = 'I o' a o o. I u a o a o the drum all day.' x = 41 i = 25 s2 = 'I o' a o o. I u a o a o he drum all day.' x = 40 s2 = 'I o' a o o. I u a o a o e drum all day.' x = 39 i = 26 i = 27 s2 = 'I o' a o o. I u a o a o e rum all day.' x = 38 s2 = 'I o' a o o. I u a o a o e um all day.' x = 37 i = 28 s2 = 'I o' a o o. I u a o a o e u all day.' x = 36 i = 29 i = 30 s2 = 'I o' a o o. I u a o a o e u al day.' x = 35 s2 = 'I o' a o o. I u a o a o e u a day.' x = 34 i = 31 s2 = 'I o' a o o. I u a o a o e u a ay.' x = 33 i = 32 s2 = 'I o' a o o. I u a o a o e u a a.' x = 32 i = 33