Cody

Solution 78273

Submitted on 18 Apr 2012 by Aurelien Queffurust
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% x = 'I played piano. John played football. Anita went home. Are you safe?'; y = {'I played piano.' 'Anita went home.' 'Are you safe?'}; assert(isequal(lazy(x),y))

ids = '.' '.' '.' '?' numbers = 15 37 54 68 count = 1 s3 = I played piano S = 'I played piano.' s3 = John played football s3 = Anita went home S = 'I played piano.' [] 'Anita went home.' s3 = Are you safe S = Columns 1 through 3 'I played piano.' [] 'Anita went home.' Column 4 'Are you safe?' S = Columns 1 through 2 'I played piano.' 'Anita went home.' Column 3 'Are you safe?'

2   Pass
%% x = 'Are you okay? Who are you? Olga will call you. Sam saw me.'; y = {'Olga will call you.'}; assert(isequal(lazy(x),y))

ids = '?' '?' '.' '.' numbers = 13 26 46 58 count = 1 s3 = Are you okay s3 = Who are you s3 = Olga will call you S = [] [] 'Olga will call you.' s3 = Sam saw me S = 'Olga will call you.'

Suggested Problems

More from this Author100