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!
|
Given two strings, find the maximum overlap
300 Solvers
276 Solvers
Matrix which contains the values of an other matrix A at the given locations.
196 Solvers
298 Solvers
221 Solvers