Problem 460. Replace May with April
Can you generalize this so there is more than one test? As it is, I can just provide the answer directly without needing to use MATLAB.
I went ahead and added some more tests.
Exchange April-May position in your example to correspond to the title of your problem
header of problem definition contradicts with example give. Please correct the given examples.
I second Dimitris' and Nick's comments.
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.
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 CommentsShow comments
Problem Recent Solvers370
Is my wife right? Now with even more wrong husband
Flip the main diagonal of a matrix
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!