Cody

Solution 1624269

Submitted on 8 Sep 2018
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   Fail
C = {'Ken'; 'GianCarlo'; 'Ken'; 'GianCarlo'; 'Bob'; 'Ken'; 'Sonia'}; repeatedStrings = {'Ken'; 'GianCarlo'}; assert(isequal(extractRepeatedStrings(C), repeatedStrings))

Output argument "repeatedStrings" (and maybe others) not assigned during call to "extractRepeatedStrings". Error in Test1 (line 3) assert(isequal(extractRepeatedStrings(C), repeatedStrings))

2   Fail
C = {'A', 'B', 'C', 'A', 'B'}; repeatedStrings = {'A'; 'B'}; assert(isequal(extractRepeatedStrings(C), repeatedStrings))

Output argument "repeatedStrings" (and maybe others) not assigned during call to "extractRepeatedStrings". Error in Test2 (line 3) assert(isequal(extractRepeatedStrings(C), repeatedStrings))

3   Fail
C = {'B', 'A', 'C', 'B', 'A'}; repeatedStrings = {'B'; 'A'}; assert(isequal(extractRepeatedStrings(C), repeatedStrings))

Output argument "repeatedStrings" (and maybe others) not assigned during call to "extractRepeatedStrings". Error in Test3 (line 3) assert(isequal(extractRepeatedStrings(C), repeatedStrings))

4   Fail
C = {'A', 'B', 'C'}; repeatedStrings = cell.empty(0, 1); assert(isequal(extractRepeatedStrings(C), repeatedStrings))

Output argument "repeatedStrings" (and maybe others) not assigned during call to "extractRepeatedStrings". Error in Test4 (line 3) assert(isequal(extractRepeatedStrings(C), repeatedStrings))

5   Fail
C = {'A', 'B'; 'C', 'A'; 'B', 'A'}; repeatedStrings = {'A'; 'B'}; assert(isequal(extractRepeatedStrings(C), repeatedStrings))

Output argument "repeatedStrings" (and maybe others) not assigned during call to "extractRepeatedStrings". Error in Test5 (line 3) assert(isequal(extractRepeatedStrings(C), repeatedStrings))