Question: Write a function remove _ characters ( input _ string, to _ remove ) that takes two inputs: input _ string : a string to
Write a function removecharactersinputstring, toremove that takes two inputs:
inputstring : a string toremove: a string
and returns a string that is exactly the same as the inputstring but without any of the characters in toremove. Your function must have a running time complexity of On where n represents the length of inputstring.
For clarity, let m be the length of toremove. Your code cannot have a running time complexity of Omn to receive full credit, it must be On
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
