Cody

Solution 1980156

Submitted on 17 Oct 2019 at 12:44 by Nikolaos Nikolaou
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
s='I saw Count Dracula with red light of triumph in his eyes'; y_correct = 7; assert(isequal(Longest(s),y_correct))

m = 1×12 cell array {'I'} {'saw'} {'Count'} {'Dracula'} {'with'} {'red'} {'light'} {'of'} {'triumph'} {'in'} {'his'} {'eyes'} result = 7

2   Pass
s='1111 5555555 3333333333 000'; y_correct = 10; assert(isequal(Longest(s),y_correct))

m = 1×4 cell array {'1111'} {'5555555'} {'3333333333'} {'000'} result = 10

3   Pass
s='!!! 88 he was s00000 old 000'; y_correct = 6; assert(isequal(Longest(s),y_correct))

m = 1×6 cell array {'88'} {'he'} {'was'} {'s00000'} {'old'} {'000'} result = 6