Cody

Solution 1373029

Submitted on 8 Dec 2017 by mumu xu
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)))

A = 'BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz' q = 'J' q = 1×0 empty char array q = 'c' q = 'k' q = 1×0 empty char array q = 1×0 empty char array q = 'n' q = 'd' q = 1×0 empty char array q = 'J' q = 1×0 empty char array q = 'l' q = 'l' q = 1×0 empty char array q = 'w' q = 1×0 empty char array q = 'n' q = 't' q = 1×0 empty char array q = 1×0 empty char array q = 'p' q = 1×0 empty char array q = 't' q = 'h' q = 1×0 empty char array q = 1×0 empty char array q = 'h' q = 1×0 empty char array q = 'l' q = 'l'

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

A = 'BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz' q = 1×0 empty char array q = 1×0 empty char array q = 'd' q = 1×0 empty char array q = 'n' q = 1×0 empty char array q = 't' q = 1×0 empty char array q = 'w' q = 1×0 empty char array q = 'n' q = 't' q = 1×0 empty char array q = 't' q = 1×0 empty char array q = 1×0 empty char array q = 'w' q = 1×0 empty char array q = 'r' q = 'k' q = 1×0 empty char array q = 1×0 empty char array q = 1×0 empty char array q = 1×0 empty char array q = 'j' q = 1×0 empty char array q = 's' q = 't' q = 1×0 empty char array q = 'w' q = 1×0 empty char array q = 'n' q = 't' q = 1×0 empty char array q = 't' q = 1×0 empty char array q = 1×0 empty char array q = 'b' q = 1×0 empty char array q = 'n' q = 'g' q = 1×0 empty char array q = 1×0 empty char array q = 'n' q = 1×0 empty char array q = 't' q = 'h' q = 1×0 empty char array q = 1×0 empty char array q = 'd' q = 'r' q = 1×0 empty char array q = 'm' q = 1×0 empty char array q = 1×0 empty char array q = 'l' q = 'l' q = 1×0 empty char array q = 'd' q = 1×0 empty char array q = 'y' q = 1×0 empty char array