Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
str1 = 'abcdefghi';
str2 = 'zazbzczd';
y_correct = 'abcd';
assert(isequal(skipped(str1,str2),y_correct))
|
2 | Pass |
%%
str1 = 'abcdefghi';
str2 = 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz';
y_correct = '';
assert(isequal(skipped(str1,str2),y_correct))
|
3 | Pass |
%%
str1 = 'catcatcat';
str2 = 'catcatcat';
y_correct = str1;
assert(isequal(skipped(str1,str2),y_correct))
|
4 | Pass |
%%
str1 = 'an example of a string';
str2 = 'the example z a s t r i i i n ssss';
y_correct = ' example a strin';
assert(isequal(skipped(str1,str2),y_correct))
|
5 | Pass |
%%
str1 = 'a string with many characters';
str2 = 'zzz zzz zzz zzz zzz';
y_correct = ' ';
assert(isequal(skipped(str1,str2),y_correct))
|
6 | Pass |
%%
str1 = 'lets!not!use!spaces';
str2 = 'z!zzzzzzzzZZZzZzZ!zzzzz!zzzzzzzzz!!!!!!!!!zzz';
y_correct = '!!!';
assert(isequal(skipped(str1,str2),y_correct))
|
Find relatively common elements in matrix rows
645 Solvers
All your base are belong to us
425 Solvers
convert matrix to single column
217 Solvers
73 Solvers
103 Solvers