Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
inStr = 'Cedric loves regular expressions' ;
output_correct = {'Cedric', 'regular'} ;
assert(isequal(getWordsSameStartEnd(inStr),output_correct))
|
2 | Pass |
inStr = 'Single neuron Cedric, Anna-Maria, Andrei, a koala' ;
output_correct = {'neuron', 'Cedric', 'Anna-Maria'} ;
assert(isequal(getWordsSameStartEnd(inStr),output_correct))
|
3 | Pass |
inStr = '__dEdiCaTeD__, REGULAR_EXPRESSION.. Rotor-1 and abracadabra' ;
output_correct = { 'dEdiCaTeD', 'REGULAR', 'abracadabra'} ;
assert(isequal(getWordsSameStartEnd(inStr),output_correct))
|
2486 Solvers
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
The Goldbach Conjecture, Part 2
1286 Solvers
Back to basics 9 - Indexed References
392 Solvers
227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!