Cody

# Problem 920. Eliminate Polysyllabics: Long live short words!

Solution 736423

Submitted on 15 Sep 2015 by goc3
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 = 'The all day meetings will continue until we learn why productivity is so low'; s2_correct = 'The all day will we learn why is so low'; assert(isequal(just_short_words(s1),s2_correct))

ind1 = 13 27 36 55 ind2 = 20 34 40 66 s1 = The all day will we learn why is so low s1 = The all day will we learn why is so low s1 = The all day will we learn why is so low s1 = The all day will we learn why is so low

2   Pass
%% s1 = 'I am perpetually perplexed my big brain notwithstanding'; s2_correct = 'I am my big brain'; assert(isequal(just_short_words(s1),s2_correct))

ind1 = 6 18 41 ind2 = 16 26 55 s1 = I am my big brain s1 = I am my big brain s1 = I am my big brain s1 = I am my big brain

3   Pass
%% s1 = 'Lazy gravy calico sky ipso facto sweet potato pie'; s2_correct = 'sky sweet pie'; assert(isequal(just_short_words(s1),s2_correct))

ind1 = 1 6 12 23 28 40 ind2 = 4 10 17 26 32 45 s1 = sky sweet pie s1 = sky sweet pie s1 = sky sweet pie s1 = sky sweet pie