Problem 2500. Text Processing - New
Derived from problem 2440.
A string containing several sentences are given as input. If any sentence contains the word 'great' more than twice, replace every second 'great' of that sentence with the word 'awesome'.
Example:
Input = 'Sheldon, Penny, Leonard and Raj are great and great and great and great receptively. Wolowitz is just a great jerk';
Output = 'Sheldon, Penny, Leonard and Raj are great and awesome and great and awesome receptively. Wolowitz is just a great jerk';
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
rifat
on 13 Aug 2014
not fixed yet. Did it happen before for such a long period?
Biker
on 13 Aug 2014
Should be fixed now.
David Verrelli
on 6 Nov 2017
"receptively" ~= "respectively"
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
345 Solvers
-
555 Solvers
-
4768 Solvers
-
389 Solvers
-
374 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!