itna hadbad me kyu sir!!! thoda breathe in kariye aur aaram se *reason* k sath aage badhiye. lag raha rat k solution kyu bata rahe ho
@sudeepgupta5104Күн бұрын
Noice 👍
@its200okКүн бұрын
Why is it mp[0] =-1 ? I think there is no need for that
@badamguravareddy5735Күн бұрын
we have to solve this in O(m+n) time complexity . your approach is taking o(m * logn).
@Akshita-qj7ec17 сағат бұрын
int rowWithMax1s(vector<vector<int> > &arr) { int n = arr.size(), m = arr[0].size(); int maxr = m, ans =-1; for(int i=0; i<n; i++){ int j = maxr; if(j == m) j--; while(j>=0 && arr[i][j] == 1){ j--; } if(j+1 < maxr){ maxr = j+1; ans = i; } } return ans; }
@sarveshchitkeshiwar34832 күн бұрын
It's solving system design using Java DSA
@oknokok2 күн бұрын
Chutiya explanation bkl
@vickyroy35952 күн бұрын
simply sorting and set would work for 1st one
@AlluArjun-o5u2 күн бұрын
very poor explanation
@deepsen34392 күн бұрын
please explain the time complexity i think its time complexity in worst case o(n^2)
@VishalKumar-uu3xm2 күн бұрын
Thats not the better way to explain,i know its tough when you face camera,it could have been better
@sudhadevi66922 күн бұрын
Even the instructor doesn't know how to solve q2 . Very bad explanation 😢
@shreyanshjain15953 күн бұрын
WRONG EXPLANATION FOR THE 2ND PROBLEM IN THE CODE,IT IS WRITTEN THAT MP[REM]=I; BUT WHILE EXPLANING THE CODE USING DRY RUN YOU ARE TAKING MP[SUM]=I POOR EXPLANATION
@abhishek30363 күн бұрын
But space complexity should be 0(1)
@AayushTayalBCH3 күн бұрын
Dear Teacher, this is not a way to teach, can't you improve yourself, ek bhi comment accha nahi hai comments section me, aapko koi pharak nahi padta kya, to pharak padna chahiye, good comments are for motivation and bad comments comments are to learn, agar koi galti bata raha hai to unhe improve kijiye na............ Aise to aap har video ke last me bolti hai ki if you have any doubts, then comment,...aur yaha to aap kisi ka reply bhi nahi kar rahi hai..
@Reyna-yj6vo3 күн бұрын
nice explaination
@shriyanshvishwakarma34323 күн бұрын
Bhai app thora tensed lag rahe hao. Maybe apka shayad 1st time hai. App ache bata rate ho but Thora relax hoke araam se bataiye. Rest all is good. Thanks for your regular post analysis.
@kashishchawla27543 күн бұрын
poor explanation
@AayushTayalBCH3 күн бұрын
You all are correct guys, this teacher explains like this only, not a single video of this teacher is good,....
@mopidevigopi48373 күн бұрын
bro how take x value plase tell bro how to take input for this code.
@3lpme3 күн бұрын
Great solution mate
@3lpme3 күн бұрын
Instead of pushing "0" to "255" range into set we just use split (".") function in java and store . Then we apply Integer.parseInt() on each element of that arr@y to check if its there in that range
@3lpme3 күн бұрын
Let me know if im wrong here
@abhishekupadhyay99624 күн бұрын
How is this recursive?
@user-xw6ns6ih5f4 күн бұрын
ques2 - 08:10 ques3 - 40:49
@pratikbarye25274 күн бұрын
for(int i=1;i>1;i++) { cout<<"💯"; }
@Gaurav_Sharma_125 күн бұрын
I'm getting this = Your Code is not producing any output.
@jacobblack25446 күн бұрын
7:07 bro you also know you fkd up the explanation at this point..
@mohdfaizel83276 күн бұрын
Best intuitive explanation so far. Thanks.
@karthikpriyanth61536 күн бұрын
waste solution
@communicationschoola7 күн бұрын
Hi Sidharth @sidhartha166 can you tell me one thing, how do you write with pen tablet on gfg site, because of i am able to use only in whiteboard
@santhosh70427 күн бұрын
bro your explanations is at peaks. thank you so much
@kthamim75528 күн бұрын
I used the first approach it got submitted bro
@siddharthsinghtanwar20438 күн бұрын
Solved this one today.
@PraveenKumar-vz4dy8 күн бұрын
can any one tell what is the difficulty rate for the 2 and 3 question (medium or hard)
@paarthjindal41008 күн бұрын
I don't think you need to calculate prime numbers beforehand as when you are starting from two and going till sqrt(n) you are already making sure you only divide arr[i] by prime numbers for example you check arr[i] is divisible by 2 and divide the number till it is no more divisible by two so when 4 or 6 comes they will not increase the count same for other prime numbers
@prakhargarg41669 күн бұрын
Great video
@kthamim75529 күн бұрын
thankyou bro your approach is cleared is there any practice sessons for creating a DB for projects??
@_sf_editz18709 күн бұрын
i ws not getting the whats the limit of zeros but this video cleared thank you
@harshbachchani79819 күн бұрын
Great explanation
@sohankarfa405110 күн бұрын
I did the third question in a similar way with same time complexity but TLE, was it because I did in Python? The code that I did: from typing import List class Solution: def countSubarrays(self, n: int, arr: List[int]) -> int: ans = len(arr) for i in range(n): Min = arr[i] Max = arr[i] for j in range(i + 1, n): Min = min(Min, arr[j]) Max = max(Max, arr[j]) ln = j - i + 1 if (Min + Max) % ln == 0: ans += 1 return ans
@rv577810 күн бұрын
No bro Its not same he has i+51 in inner loop. you are traversing the whole array for every I.
@user-yf9fo2pg5e10 күн бұрын
bad explaination
@CodeChallengee10 күн бұрын
Wow it's so simple... And I thought that's I use to the recursive for finding subarr.. to do the product..
@nikhiljain-nl7rs10 күн бұрын
best explaination
@vibhosharma948710 күн бұрын
Nice explanation!
@ayaaniqbal353110 күн бұрын
Great Explanation
@debapriyadasgupta653410 күн бұрын
Sir ques 4 exactly same solution is giving TLE for Java