diff --git a/1910. Remove All Occurrences of a Substring b/1910. Remove All Occurrences of a Substring new file mode 100644 index 0000000..b4de43a --- /dev/null +++ b/1910. Remove All Occurrences of a Substring @@ -0,0 +1,15 @@ +class Solution { +public: + string removeOccurrences(string s, string part) { + int n = part.length(); + string ans; + for(char c: s){ + ans.push_back(c); + while(ans.find(part) < ans.length()){ + for(int i = 0;i