Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote character.

If there are n such occurrences in s1, then s2 will be n characters longer than s1.

Solution Stats

6795 Solutions

3897 Solvers

Last Solution submitted on Sep 03, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers3897

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!