Quote Doubler - MATLAB Cody - MATLAB Central

Problem 35. Quote Doubler

Difficulty:Rate

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

61.55% Correct | 38.45% Incorrect
Last Solution submitted on Mar 16, 2025

Problem Comments

Solution Comments

Show comments

Group

Project Euler II Image
Project Euler II
  • 12 Problems
  • 51 Finishers

Problem Recent Solvers3250

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page