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
@navneetkumarkushwaha568910 ай бұрын
Good Approach. Sir
@shubhamhire93902 жыл бұрын
The explanation was amazing 🔥🔥🔥
@shresthjain7557 Жыл бұрын
such an easy explanation!!!
@nitin58653 жыл бұрын
Thanks a ton bhaiya, I haven't thought of stack here 🤦
@mohammadfraz3 жыл бұрын
It's easy to implement
@rishitiwari62003 жыл бұрын
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
@mohammadfraz3 жыл бұрын
All the best for tomorrow, you will do better
@yatharthbajaj39783 жыл бұрын
Day 19:3quesrions Total:105
@mohammadfraz3 жыл бұрын
Good job Yatharth
@yourbestie41383 жыл бұрын
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
@mohammadfraz3 жыл бұрын
You are doing good. Keep practicing
@agree.3 жыл бұрын
Was waiting for it
@mohammadfraz3 жыл бұрын
Thanks 😊
@rajgupta51583 жыл бұрын
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.
@mohammadfraz3 жыл бұрын
I told everything in video bro , I provided resources also
@sahilbhaiya62003 жыл бұрын
Helpful video 👍
@mohammadfraz3 жыл бұрын
Thanks
@sahilbhaiya62003 жыл бұрын
@@mohammadfraz it's my pleasure 👍
@abhishekvishwakarma90453 жыл бұрын
Have you done Competitive programing just want some reviews on that
@mohammadfraz3 жыл бұрын
Yes I have
@Code_Note3 жыл бұрын
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.
4th questions of biweekly 55 is hard please solve it
@gautamarora65563 жыл бұрын
Day 19: 3 ques Total: 239
@mohammadfraz3 жыл бұрын
Amazing 🔥
@rishabhdevbanshi97803 жыл бұрын
Day 19 : solved 3 ques on Leetcode and 2 ques on GFG
@mohammadfraz3 жыл бұрын
Nice 🔥
@mohammedwaseem85993 жыл бұрын
Bro what is mean by OA??
@mohammadfraz3 жыл бұрын
Online test
@shivam_dhyani3 жыл бұрын
Bhaiya this problem number is 1910!! Please check it once!
@mohammadfraz3 жыл бұрын
This is the numbering during contest. I will update it
@shivam_dhyani3 жыл бұрын
@@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. ☺
@04_itsanskaragarwal73 Жыл бұрын
Incomplete coding explanation try to complete the entire things