Cody

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

Created by Swapnali Gujar in Community

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'

Solution Stats

85.04% Correct | 14.96% Incorrect
Last solution submitted on May 16, 2019