Given two strings s and part, repeatedly remove the leftmost occurrence of part from s until s no longer contains part as a substring. Return the final string after all removals.
Constraints:
s.length
part.length
s and part consist of lowercase English letters.
Given two strings s and part, repeatedly remove the leftmost occurrence of part from s until s no longer contains part as a substring. Return the final string after all removals.
Constraints:
s.length
part.length
s and part consist of lowercase English letters.