class Solution { public String removeOccurrences(String s, String part) { StringBuilder str=new StringBuilder(); for(int i=0;i=0&&str.substring(j).equals(part)){ str.setLength(j); } } return str.toString(); } } runs in 5 ms time done by myself had a great boost in confidence ..code is small but it took me 6 hours to come up to this solution
Bhaiya ek bhi nhi hua tried 30 minutes a and 1 hour B no results b me toh runtime hi aate reh gya bhttc me using s.erase aur A me wa feeling very demotivated hope to do 1-2 tomorrow in weekly
It was very helpful sir!!,I was able to solve 3 questions during yesterdays contest so am i somewhat at good level sir? Suggest me some ideas so that i can consistently solve 3-4 questions on leetcode contests
3rd question is based on dp in which I not so good, Sir can you provide some tips to me to do at least 3 questions because I got a stack to solve only 2 problems in each contest except very few contest this thing very demotivated for me.
Bhaiya I had this question in mind why doesn't leetcode gives the access to see the submissions of others because many a times we write buggy codes which somehow sometimes passes test cases (generally weak test cases).So if we can access the submissions of top in ranklist then we can debug our code as well and stress testing to find such cases.
@@mohammadfraz yes bhaiya it was, but now they have changed. Thank you for replying, you are doing a great work for CS Community. 🙏 Just one suggestion, is that, please make the video solution more comprehensive, so that beginners can also take advantage of your videos. ☺
class Solution {
public String removeOccurrences(String s, String part) {
StringBuilder str=new StringBuilder();
for(int i=0;i=0&&str.substring(j).equals(part)){
str.setLength(j);
}
}
return str.toString();
}
} runs in 5 ms time done by myself had a great boost in confidence ..code is small but it took me 6 hours to come up to this solution
Good Approach. Sir
The explanation was amazing 🔥🔥🔥
such an easy explanation!!!
Bhaiya ek bhi nhi hua tried 30 minutes a and 1 hour B no results b me toh runtime hi aate reh gya bhttc me using s.erase aur A me wa feeling very demotivated hope to do 1-2 tomorrow in weekly
All the best for tomorrow, you will do better
Thanks a ton bhaiya, I haven't thought of stack here 🤦
It's easy to implement
Day 19:3quesrions
Total:105
Good job Yatharth
It was very helpful sir!!,I was able to solve 3 questions during yesterdays contest so am i somewhat at good level sir?
Suggest me some ideas so that i can consistently solve 3-4 questions on leetcode contests
You are doing good. Keep practicing
3rd question is based on dp in which I not so good, Sir can you provide some tips to me to do at least 3 questions because I got a stack to solve only 2 problems in each contest except very few contest this thing very demotivated for me.
I told everything in video bro , I provided resources also
Day 19: 3 ques..including this ques
Total: 183
That's nice
Was waiting for it
Thanks 😊
Helpful video 👍
Thanks
@@mohammadfraz it's my pleasure 👍
Bhaiya I had this question in mind why doesn't leetcode gives the access to see the submissions of others because many a times we write buggy codes which somehow sometimes passes test cases (generally weak test cases).So if we can access the submissions of top in ranklist then we can debug our code as well and stress testing to find such cases.
No they don't allow access to other's cases
string removeOccurrences(string s, string part) {
while(s.find(part)!=-1){
s.erase(s.find(part),part.size());
}
return s;
}
can we reduce the TC by using KMP?
4th questions of biweekly 55 is hard please solve it
Day 19: 3 ques
Total: 239
Amazing 🔥
Have you done Competitive programing just want some reviews on that
Yes I have
Bhaiya this problem number is 1910!!
Please check it once!
This is the numbering during contest. I will update it
@@mohammadfraz yes bhaiya it was, but now they have changed.
Thank you for replying, you are doing a great work for CS Community. 🙏
Just one suggestion, is that, please make the video solution more comprehensive, so that beginners can also take advantage of your videos. ☺
Day 19 : solved 3 ques on Leetcode and 2 ques on GFG
Nice 🔥
Bro what is mean by OA??
Online test
Incomplete coding explanation try to complete the entire things