Sliding Window: Minimum Size Subarray Sum | Minimum Window Substring

  Рет қаралды 5,464

Coder Army

Coder Army

Күн бұрын

Пікірлер: 58
@ManojSinghRawat-x2w
@ManojSinghRawat-x2w 6 ай бұрын
aaj bahut din wahi purane wale rohit bhaiya hame wapas mil gaye , jo ek ek doubt to bahut hi bariki se samjhate hai😊
@ramsiyaram10082
@ramsiyaram10082 4 ай бұрын
bhaiya ek dil ko kitani baar jeetoge etana acha kisi ne nhi padaya vo bhi bikul free
@shashanknakashe3339
@shashanknakashe3339 5 ай бұрын
thank u rohit bhaiya class Solution { public: string minWindow(string s, string t) { // if(s == t) return s; // if the both strings are equal then we dont have to go down; int cnt = 0; int minLen = INT_MAX; int l= 0; int r =0; int n = s.size(); int index = 0; //creating the hash map to keep therecord of the value unordered_map mpp; for(int i =0 ; i< t.size(); i++){ mpp[t[i]]++; //making flags so that they will help us for the count; } while(r= 0){ cnt ++; } //making the condition for the count while(cnt == t.size()){ //setting the index according the min length if(r-l+1 < minLen){ index = l; //then you update the index; } //first we get the current length and compaire it with our minLen minLen = min( minLen, r-l+1); //now we try to shrink the substring therefore we move l++; mpp[s[l]]++; if(mpp[s[l]] == 1){ cnt = cnt-1; } l++; } //after shirinking we need to extend r++; } //if wwe want to send "" string as an output if(minLen == INT_MAX) return ""; //getting the stirng by the size minLen // index to minLen; wala part return s.substr(index, minLen); } }; keep liking this comment so youtube will notify me about this imp question :) :)
@NITian-Priyanshu
@NITian-Priyanshu 6 ай бұрын
great level teacher big salute sir ❤
@joydeep-halder
@joydeep-halder 6 ай бұрын
What!!!!! 🤯🤯🤯🤯 I thought bhaiya ki aj ka video nhi ayega. Isiliye mai khud hi leetcode me jakr prefix sum ka question kerne ka socha. To mai Minimum Size Subarray Sum problem hi choose kiya !! What a coincedence!
@chanchalsoni7535
@chanchalsoni7535 4 ай бұрын
bhai sahi me gajab padhate h ye.......maa ksm ....inse acha koi teacher nahi dekha aaj tak.....m to fan ho gyi re baba 🤩🤩 inki...
@heetpatel3037
@heetpatel3037 5 ай бұрын
Jai shree Ram ❤ ek dum gold 🥇 content... Dil se dhanyawad
@YashSaini007
@YashSaini007 6 ай бұрын
Bhaiya Radhe Radhe 🙏
@Noobiee_FPS
@Noobiee_FPS 6 ай бұрын
bhaiya mzaa aa gya sliding window wale question mai concept ++
@thinker-o5p
@thinker-o5p 6 ай бұрын
Explaination level is damn good
@Xcoder__1957
@Xcoder__1957 6 ай бұрын
Mere pe paid course hone k bad v sirf bhaiya se padhta hu just imagine how good he teaches❤
@ManojSinghRawat-x2w
@ManojSinghRawat-x2w 6 ай бұрын
chamak gaya bhaiya😇
@Vardanaggarwal
@Vardanaggarwal 4 ай бұрын
very informative.
@ankushladani496
@ankushladani496 6 ай бұрын
Chamak Gaya Bhaiya...💪🚀
@MohammedHasmi577
@MohammedHasmi577 6 ай бұрын
Bhai i am in day 50 trust me bro aapje liye bahot respect hai coming soon my placement msg share to you❤❤
@CoderArmy9
@CoderArmy9 6 ай бұрын
Bhai itna pyar ke liye❤️
@Xcoder__1957
@Xcoder__1957 6 ай бұрын
Bhaaiyaa apse request h dp aur graph me kafi questions krana jisse hume confidence aaye totally dependent on u .
@sayanacharyya250
@sayanacharyya250 4 ай бұрын
Thank you sir ❤
@crucial4years1110
@crucial4years1110 6 ай бұрын
welcome back bhaiya
@CoderArmy9
@CoderArmy9 6 ай бұрын
Bhai
@mohit6215
@mohit6215 6 ай бұрын
Bhaiya aapki body ekdum fit lag rahi🫡🫡
@ankitchoudhary2914
@ankitchoudhary2914 6 ай бұрын
krdia bhaia LIKE...itna to kr hi skte hai saaare
@ritiksinha..863
@ritiksinha..863 4 ай бұрын
East or west bhiya is best❤
@ShaikSharma
@ShaikSharma Ай бұрын
chamak gaya sir
@sonakshipatel-Tp
@sonakshipatel-Tp 5 ай бұрын
Great sir ❤
@relaxingtime2411
@relaxingtime2411 4 ай бұрын
Bhaiya T-Shirt mast he👌
@genzguyofficial3.O
@genzguyofficial3.O 6 ай бұрын
Bhayya ek suggestion tha aap leetcode k sath hi alag alag platform k ya khud k problems bhi laye to helpful rahega aur aap live laptop me code krke dikhana concept k sath pls 🙏🙏🙏
@SHIVRAJSONI007
@SHIVRAJSONI007 6 ай бұрын
good sir
@ankushladani496
@ankushladani496 6 ай бұрын
Thanks Bhaiya...💪✅
@CalmingVideos-qm3rn
@CalmingVideos-qm3rn 6 ай бұрын
Baap level concept ❤
@siddheshpandey7905
@siddheshpandey7905 5 ай бұрын
chamak gya 😄
@ManojSinghRawat-x2w
@ManojSinghRawat-x2w 6 ай бұрын
maza ++
@seekingsoul871
@seekingsoul871 6 ай бұрын
Maaja aa gaya
@SmritiSharma-vv7ib
@SmritiSharma-vv7ib Ай бұрын
mza ++
@ramsiyaram10082
@ramsiyaram10082 4 ай бұрын
Maja ++
@rocketgamerzz.7577
@rocketgamerzz.7577 4 ай бұрын
Maza++
@asad_iliyas
@asad_iliyas 5 ай бұрын
maza++
@Xcoder__1957
@Xcoder__1957 6 ай бұрын
Aur map n tries ki vdo kb aaegi bade bhaiya❤ ...
@adh_arma
@adh_arma 6 ай бұрын
Bhaiya kya mai ab bhi chalu kar sakta hu lecture 3 ke baad nahi dekh paya aapki videos 🥲 **meri college ki first year ka last exam tha kal
@YashSaini007
@YashSaini007 6 ай бұрын
#180DaysOfCode
@sahilthakur9081
@sahilthakur9081 6 ай бұрын
Bhaiya graph aur dp playlist kb laoge?
@CoderArmy9
@CoderArmy9 6 ай бұрын
Monday se start hga graph❤️
@lucifersamrat6280
@lucifersamrat6280 2 ай бұрын
getting tle error for 2nd question in GFG
@PradeepKumar-bc1ez
@PradeepKumar-bc1ez 3 ай бұрын
Chamak gya++
@itshirdeshk
@itshirdeshk 6 ай бұрын
Day 195 ✅🔥
@mohit6215
@mohit6215 6 ай бұрын
Aaj tho form a agye wapas
@SiddharthSingh-ff2hl
@SiddharthSingh-ff2hl 4 ай бұрын
Bro tshirt pe kya likha h
@marveladda9761
@marveladda9761 6 ай бұрын
bhaiya video
@asiantok5891
@asiantok5891 4 ай бұрын
Maza ++ Slice ++ Frooti ++
@shubhamkumarjha9192
@shubhamkumarjha9192 6 ай бұрын
Good evening bhaiya ji😌... Ab to body theek ha na apki.. 😂❤
@CoderArmy9
@CoderArmy9 6 ай бұрын
Bhai pain hai abhi bhi kaafi, par hojyga jald hi sahi😃
@ankushladani496
@ankushladani496 6 ай бұрын
Maja++
@AS-IIITM
@AS-IIITM 3 ай бұрын
Maja2 ++
@marveladda9761
@marveladda9761 6 ай бұрын
bhaiya every day morning video mile to acha hota
@vivektechtuber204
@vivektechtuber204 6 ай бұрын
maza++
@ayushikumari4576
@ayushikumari4576 4 ай бұрын
maza++
@anuragrajput4613
@anuragrajput4613 6 ай бұрын
Maja ++
@tradun.s9760
@tradun.s9760 4 ай бұрын
maza++
Minimum Window Substring | Variable Size Sliding Window
40:35
Aditya Verma
Рет қаралды 203 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
Minimum Size Subarray Sum | Leetcode #209
22:10
Techdose
Рет қаралды 31 М.
CAT 2018 Slot - 1 I LRDI I IPMAT I JIPMAT I SNAP I XAT
35:34
Makhija Academy
Рет қаралды 17
Minimum Size Subarray Sum - Leetcode 209 - Python
12:30
NeetCode
Рет қаралды 96 М.
Lecture 41: Sliding Window Protocol on Strings
1:19:34
Coder Army
Рет қаралды 37 М.