String Problem-4: Replace the character | Java Implementation

preview_player
Показать описание
Solution:
- We iterate the complete string from 0th index till end
- While iteration, whereever we find the given character, we replace with the given value

Time Complexity: O(n)
Space Complexity: O(1)

Do Watch video for more info

CHECK OUT CODING SIMPLIFIED

★☆★ VIEW THE BLOG POST: ★☆★

I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 200+ videos.

★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★

★☆★ Send us mail at: ★☆★
Рекомендации по теме
Комментарии
Автор

Very nice explanation sir aap bahut achcha padate ho

balramjadon
Автор

Pls make a video on how to replace every nth character by "x" character from a given string

aishwarysharma
Автор

can u do this using stringBuilderclass please

godessGOAT
Автор

How can i get a character input from user and then replace?

kiruthikas
welcome to shbcf.ru