Cody

Solution 1859156

Submitted on 27 Jun 2019 by Marcell Jozsa
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
x='Blogs , Trendy , Cody , Contest .'; y='Blogs, Trendy, Cody, Contest.'; assert(isequal(cozy_cody(x),y))

y = 'Blogs, Trendy, Cody, Contest.' z = 'Blogs, Trendy, Cody, Contest.' a = 'Blogs, Trendy, Cody, Contest.'

2   Pass
x='Trendy , Cody , Contest .'; y='Trendy, Cody, Contest.'; assert(isequal(cozy_cody(x),y))

y = 'Trendy, Cody, Contest.' z = 'Trendy, Cody, Contest.' a = 'Trendy, Cody, Contest.'

3   Pass
x='One Two Three Four Five Six Seven Eight Nine Ten'; y='One Two Three Four Five Six Seven Eight Nine Ten'; assert(isequal(cozy_cody(x),y))

y = 'One Two Three Four Five Six Seven Eight Nine Ten' z = 'One Two Three Four Five Six Seven Eight Nine Ten' a = 'One Two Three Four Five Six Seven Eight Nine Ten'

4   Pass
x='1, 2, 3, 4, 5, 6, 7, 8, 9, 10'; y='1, 2, 3, 4, 5, 6, 7, 8, 9, 10'; assert(isequal(cozy_cody(x),y))

y = '1, 2, 3, 4, 5, 6, 7, 8, 9, 10' z = '1, 2, 3, 4, 5, 6, 7, 8, 9, 10' a = '1, 2, 3, 4, 5, 6, 7, 8, 9, 10'

5   Pass
x='1 , and 3 , and 7 , and 12'; y='1, and 3, and 7, and 12'; assert(isequal(cozy_cody(x),y))

y = '1, and 3, and 7, and 12' z = '1, and 3, and 7, and 12' a = '1, and 3, and 7, and 12'

6   Pass
x='Hello There !'; y='Hello There!'; assert(isequal(cozy_cody(x),y))

y = 'Hello There!' z = 'Hello There!' a = 'Hello There!'