Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Remove All Occurrence of A Character

Difficulty: Easy

Acceptance: 75.00%

Points: 20.00

You are given a string s and a character ch. Your task is to remove all occurrences of the given character from the string. Loops or built-in replace functions are not allowed. Return the final string after removal.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = length of s = 105
  • The string contains printable characters only
Companies:
Apple Wipro Media.net
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.