I suspect this submission 'may' only work for ONE instance of "May" per test. See Solution 1461036 for an alternative syntax for the function used herein.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 'The flowers may bloom in May';
y_correct = 'The flowers may bloom in April';
assert(isequal(your_fcn_name(x),y_correct))
yy =
April
|
2 | Pass |
%%
x = 'May I come to visit you in April?';
y_correct = 'April I come to visit you in April?';
assert(isequal(your_fcn_name(x),y_correct))
yy =
April I come to visit you in April?
|
3 | Pass |
%%
x = 'May I come to visit you in April?';
y_correct = 'April I come to visit you in April?';
assert(isequal(your_fcn_name(x),y_correct))
yy =
April I come to visit you in April?
|
4 | Pass |
%%
x = 'April is the cruelest month. Maybe not, though.';
y_correct = 'April is the cruelest month. Aprilbe not, though.';
assert(isequal(your_fcn_name(x),y_correct))
yy =
Aprilbe not, though.
|
5 | Pass |
%%
x = 'I read with dismay about your defeat last May.';
y_correct = 'I read with dismay about your defeat last April.';
assert(isequal(your_fcn_name(x),y_correct))
yy =
April.
|
6 | Pass |
%%
x = 'Moynihan for Mayor! Hurray for My Man Moynihan!';
y_correct = 'Moynihan for Aprilor! Hurray for My Man Moynihan!';
assert(isequal(your_fcn_name(x),y_correct))
yy =
Aprilor! Hurray for My Man Moynihan!
|
235 Solvers
267 Solvers
Make a random, non-repeating vector.
2795 Solvers
406 Solvers
432 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!