Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
C = {'I','MATLAB'};
DELIMITER = {' love '}
S= 'I love MATLAB'
assert(isequal(your_fcn_name(C,DELIMITER),S))
DELIMITER =
1×1 cell array
{' love '}
S =
'I love MATLAB'
|
2 | Fail |
c = {'one', 'two', 'three'};
DELIM = {' + ', ' = '}
S2= 'one + two = three'
assert(isequal(your_fcn_name(c,DELIM),S2))
DELIM =
1×2 cell array
{' + '} {' = '}
S2 =
'one + two = three'
|
3 | Fail |
c = {'First sentence', 'Second sentence', 'Third sentence.'};
DELIM = {'. ', '. '}
S2= 'First sentence. Second sentence. Third sentence.'
assert(isequal(your_fcn_name(c,DELIM),S2))
DELIM =
1×2 cell array
{'. '} {'. '}
S2 =
'First sentence. Second sentence. Third sentence.'
|
4 | Fail |
c = {'Have you ', 'ever had ', 'someone continuously ', 'interrupting you?'};
DELIM = {'(HEY!) ', '(BOO!) ', '(LOOK OVER THERE!) '}
S2= 'Have you (HEY!) ever had (BOO!) someone continuously (LOOK OVER THERE!) interrupting you?'
assert(isequal(your_fcn_name(c,DELIM),S2))
DELIM =
1×3 cell array
{'(HEY!) '} {'(BOO!) '} {'(LOOK OVER THERE!) '}
S2 =
'Have you (HEY!) ever had (BOO!) someone continuously (LOOK OVER THERE!) interrupting you?'
|
5 | Fail |
c = {'My first ', 'name ', 'is ', 'Tom.'};
DELIM = {'child has a ', 'that ', 'not '}
S2= 'My first child has a name that is not Tom.'
assert(isequal(your_fcn_name(c,DELIM),S2))
DELIM =
1×3 cell array
{'child has a '} {'that '} {'not '}
S2 =
'My first child has a name that is not Tom.'
|
Return a list sorted by number of occurrences
1504 Solvers
3894 Solvers
Back to basics 18 - justification
176 Solvers
724 Solvers
Fahrenheit to Celsius converter
358 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!