Пікірлер
@jyoti3427
@jyoti3427 17 сағат бұрын
great explanation
@vishalsharma_369
@vishalsharma_369 Күн бұрын
Digit dp
@vishalsharma_369
@vishalsharma_369 Күн бұрын
Digit dp
@user-fo6eg7gh4b
@user-fo6eg7gh4b Күн бұрын
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
@sudeepgupta5104 Күн бұрын
Noice 👍
@its200ok
@its200ok Күн бұрын
Why is it mp[0] =-1 ? I think there is no need for that
@badamguravareddy5735
@badamguravareddy5735 Күн бұрын
we have to solve this in O(m+n) time complexity . your approach is taking o(m * logn).
@Akshita-qj7ec
@Akshita-qj7ec 17 сағат бұрын
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; }
@sarveshchitkeshiwar3483
@sarveshchitkeshiwar3483 2 күн бұрын
It's solving system design using Java DSA
@oknokok
@oknokok 2 күн бұрын
Chutiya explanation bkl
@vickyroy3595
@vickyroy3595 2 күн бұрын
simply sorting and set would work for 1st one
@AlluArjun-o5u
@AlluArjun-o5u 2 күн бұрын
very poor explanation
@deepsen3439
@deepsen3439 2 күн бұрын
please explain the time complexity i think its time complexity in worst case o(n^2)
@VishalKumar-uu3xm
@VishalKumar-uu3xm 2 күн бұрын
Thats not the better way to explain,i know its tough when you face camera,it could have been better
@sudhadevi6692
@sudhadevi6692 2 күн бұрын
Even the instructor doesn't know how to solve q2 . Very bad explanation 😢
@shreyanshjain1595
@shreyanshjain1595 3 күн бұрын
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
@abhishek3036
@abhishek3036 3 күн бұрын
But space complexity should be 0(1)
@AayushTayalBCH
@AayushTayalBCH 3 күн бұрын
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-yj6vo
@Reyna-yj6vo 3 күн бұрын
nice explaination
@shriyanshvishwakarma3432
@shriyanshvishwakarma3432 3 күн бұрын
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.
@kashishchawla2754
@kashishchawla2754 3 күн бұрын
poor explanation
@AayushTayalBCH
@AayushTayalBCH 3 күн бұрын
You all are correct guys, this teacher explains like this only, not a single video of this teacher is good,....
@mopidevigopi4837
@mopidevigopi4837 3 күн бұрын
bro how take x value plase tell bro how to take input for this code.
@3lpme
@3lpme 3 күн бұрын
Great solution mate
@3lpme
@3lpme 3 күн бұрын
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
@3lpme
@3lpme 3 күн бұрын
Let me know if im wrong here
@abhishekupadhyay9962
@abhishekupadhyay9962 4 күн бұрын
How is this recursive?
@user-xw6ns6ih5f
@user-xw6ns6ih5f 4 күн бұрын
ques2 - 08:10 ques3 - 40:49
@pratikbarye2527
@pratikbarye2527 4 күн бұрын
for(int i=1;i>1;i++) { cout<<"💯"; }
@Gaurav_Sharma_12
@Gaurav_Sharma_12 5 күн бұрын
I'm getting this = Your Code is not producing any output.
@jacobblack2544
@jacobblack2544 6 күн бұрын
7:07 bro you also know you fkd up the explanation at this point..
@mohdfaizel8327
@mohdfaizel8327 6 күн бұрын
Best intuitive explanation so far. Thanks.
@karthikpriyanth6153
@karthikpriyanth6153 6 күн бұрын
waste solution
@communicationschoola
@communicationschoola 7 күн бұрын
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
@santhosh7042
@santhosh7042 7 күн бұрын
bro your explanations is at peaks. thank you so much
@kthamim7552
@kthamim7552 8 күн бұрын
I used the first approach it got submitted bro
@siddharthsinghtanwar2043
@siddharthsinghtanwar2043 8 күн бұрын
Solved this one today.
@PraveenKumar-vz4dy
@PraveenKumar-vz4dy 8 күн бұрын
can any one tell what is the difficulty rate for the 2 and 3 question (medium or hard)
@paarthjindal4100
@paarthjindal4100 8 күн бұрын
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
@prakhargarg4166
@prakhargarg4166 9 күн бұрын
Great video
@kthamim7552
@kthamim7552 9 күн бұрын
thankyou bro your approach is cleared is there any practice sessons for creating a DB for projects??
@_sf_editz1870
@_sf_editz1870 9 күн бұрын
i ws not getting the whats the limit of zeros but this video cleared thank you
@harshbachchani7981
@harshbachchani7981 9 күн бұрын
Great explanation
@sohankarfa4051
@sohankarfa4051 10 күн бұрын
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
@rv5778
@rv5778 10 күн бұрын
No bro Its not same he has i+51 in inner loop. you are traversing the whole array for every I.
@user-yf9fo2pg5e
@user-yf9fo2pg5e 10 күн бұрын
bad explaination
@CodeChallengee
@CodeChallengee 10 күн бұрын
Wow it's so simple... And I thought that's I use to the recursive for finding subarr.. to do the product..
@nikhiljain-nl7rs
@nikhiljain-nl7rs 10 күн бұрын
best explaination
@vibhosharma9487
@vibhosharma9487 10 күн бұрын
Nice explanation!
@ayaaniqbal3531
@ayaaniqbal3531 10 күн бұрын
Great Explanation
@debapriyadasgupta6534
@debapriyadasgupta6534 10 күн бұрын
Sir ques 4 exactly same solution is giving TLE for Java
@HarshalKotkar-yy9vk
@HarshalKotkar-yy9vk 9 күн бұрын
SAme here for cpp To its giving error
@prakhargarg4166
@prakhargarg4166 10 күн бұрын
great video