Problem 460. Replace May with April
For instance, if the input is
input_str = 'The flowers may bloom in April';
then the output is
output_str = 'The flowers may bloom in May';
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Jonathan Campelli
on 14 May 2015
I second Dimitris' and Nick's comments.
David Verrelli
on 12 Mar 2018
Currently test 2 and test 3 are identical. Was test 3 perhaps supposed to be "May I come to visit you in May?" ? I notice that in each of the tests "May" always appears exactly once (not counting "may"). There should probably have been some cases where "May" doesn't appear at all, and some cases where it appears more than once in the input text.
Suraj Gurav
on 12 Sep 2018
The explaination of the question seems wrong. you are asking to replace May with April and in example you are replacing April with May
Solution Comments
Show commentsProblem Recent Solvers386
Suggested Problems
-
1231 Solvers
-
457 Solvers
-
Getting the indices from a vector
10356 Solvers
-
419 Solvers
-
15430 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!