This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
user_solution = fileread('please.m');
assert(isempty(strfind(user_solution,'strfind')));
assert(isempty(strfind(user_solution,'regexp')));
assert(isempty(strfind(user_solution,'regexpi')));
|
2 | Pass |
%%
x = 'Can you do my homework for me?';
y_correct = '...';
assert(isequal(please(x),y_correct))
|
3 | Pass |
%%
x = 'Please, can you do my homework for me?';
y_correct = 'OK';
assert(isequal(please(x),y_correct))
|
4 | Pass |
%%
x = 'Come on Tuesday morning, please!';
y_correct = 'OK';
assert(isequal(please(x),y_correct))
|
5 | Pass |
%%
x = 'PLEASE, HELP ME!!!';
y_correct = 'OK';
assert(isequal(please(x),y_correct))
|
6 | Pass |
%%
x = 'Pleased to see you again, could you give me a hand?';
y_correct = '...';
assert(isequal(please(x),y_correct))
|
7 | Pass |
%%
x = 'Pleased to see you again, could you please give me a hand?';
y_correct = 'OK';
assert(isequal(please(x),y_correct))
|
151 Solvers
Back to basics 17 - white space
245 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
272 Solvers
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!