Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1824. Find and replaces spaces from a input string with *

Created by Swapnali Gujar

For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is demo of replacing spaces with stars'; Then, out = 'this*is*demo*of*replacing*spaces*with*stars'

Tags

Problem Group

Solution Statistics

43 correct solutions 3 incorrect solutions
Last solution submitted on Jul 21, 2014