This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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)))
x =
30
y =
30
i =
1
i =
2
s2 =
'Jck and Jill went up the hill'
y =
29
i =
3
i =
4
i =
5
s2 =
'Jck nd Jill went up the hill'
y =
28
i =
6
i =
7
i =
8
i =
9
s2 =
'Jck nd Jll went up the hill'
y =
27
i =
10
i =
11
i =
12
i =
13
s2 =
'Jck nd Jll wnt up the hill'
y =
26
i =
14
i =
15
i =
16
s2 =
'Jck nd Jll wnt p the hill'
y =
25
i =
17
i =
18
i =
19
i =
20
s2 =
'Jck nd Jll wnt p th hill'
y =
24
i =
21
i =
22
s2 =
'Jck nd Jll wnt p th hll'
y =
23
i =
23
i =
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)))
x =
62
y =
62
i =
1
s2 =
' don't want to work. I just want to bang on the drum all day.'
y =
61
i =
2
i =
3
s2 =
' dn't want to work. I just want to bang on the drum all day.'
y =
60
i =
4
i =
5
i =
6
i =
7
i =
8
s2 =
' dn't wnt to work. I just want to bang on the drum all day.'
y =
59
i =
9
i =
10
i =
11
i =
12
s2 =
' dn't wnt t work. I just want to bang on the drum all day.'
y =
58
i =
13
i =
14
s2 =
' dn't wnt t wrk. I just want to bang on the drum all day.'
y =
57
i =
15
i =
16
i =
17
i =
18
s2 =
' dn't wnt t wrk. just want to bang on the drum all day.'
y =
56
i =
19
i =
20
s2 =
' dn't wnt t wrk. jst want to bang on the drum all day.'
y =
55
i =
21
i =
22
i =
23
i =
24
s2 =
' dn't wnt t wrk. jst wnt to bang on the drum all day.'
y =
54
i =
25
i =
26
i =
27
i =
28
s2 =
' dn't wnt t wrk. jst wnt t bang on the drum all day.'
y =
53
i =
29
i =
30
s2 =
' dn't wnt t wrk. jst wnt t bng on the drum all day.'
y =
52
i =
31
i =
32
i =
33
s2 =
' dn't wnt t wrk. jst wnt t bng n the drum all day.'
y =
51
i =
34
i =
35
i =
36
i =
37
s2 =
' dn't wnt t wrk. jst wnt t bng n th drum all day.'
y =
50
i =
38
i =
39
i =
40
s2 =
' dn't wnt t wrk. jst wnt t bng n th drm all day.'
y =
49
i =
41
i =
42
s2 =
' dn't wnt t wrk. jst wnt t bng n th drm ll day.'
y =
48
i =
43
i =
44
i =
45
i =
46
s2 =
' dn't wnt t wrk. jst wnt t bng n th drm ll dy.'
y =
47
i =
47
i =
48

7631 Solvers
903 Solvers
284 Solvers
344 Solvers
Find out sum of all elements of given Matrix
278 Solvers