Cody

Solution 1026832

Submitted on 21 Oct 2016 by Martin C.
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 = 'He said ''Look over there!'''; s2_correct = 'He said ''''Look over there!'''''; assert(isequal(quote_doubler(s1),s2_correct))

e = 1 e = 2 e = 3 e = 4 e = 5 e = 6 e = 7 e = 8 e = 9 s1 = He said ''Look over there!' e = 11 e = 12 e = 13 e = 14 e = 15 e = 16 e = 17 e = 18 e = 19 e = 20 e = 21 e = 22 e = 23 e = 24 e = 25 e = 26 e = 27 s1 = He said ''Look over there!'' e = 29 s2 = He said ''Look over there!''

2   Pass
s1 = ''''; s2_correct = ''''''; assert(isequal(quote_doubler(s1),s2_correct))

e = 1 s1 = '' e = 3 s2 = ''

Suggested Problems

More from this Author95