Algorithm Sliding Window - Dynamic Version

  Рет қаралды 7,041

DuoWei Education

DuoWei Education

Күн бұрын

Пікірлер: 14
@Hero-Log
@Hero-Log Күн бұрын
best explanation I found on youtube Animation helped me a lot to understand it easily Thanks for the vdo
@arnavkadam4552
@arnavkadam4552 15 күн бұрын
best explaination on dynamic sliding window appproach till now I found on youtube
@skillkrio
@skillkrio 2 жыл бұрын
Hey i wanna give a tight hug to you. 3 days i was trying to learn this concept understood the static window but couldn't get understand how dynamic window. I don't know the term dynamic but conceptually i am trying to increase the windows size until my desired result comes. But dont' know how to implement it . Thank you for taking your time and explaining the entire concept slowly without any rush. Please continue your video either c++ or java. It is widely used in dsa . I had solved 3 problem on my own after your video . You are a life saver Man.
@ffsnewboi9919
@ffsnewboi9919 Жыл бұрын
Keep the videos coming! Loved it
@primalwarlord
@primalwarlord Жыл бұрын
Nice explaination.. Loved it
@adeleyejeremiah4059
@adeleyejeremiah4059 2 жыл бұрын
Honestly, you have done a good job to this dynamic sliding window than other videos I have watched in the time past. I have also struggled to understand the concept of dynamic sliding window but I got more confused each time I visit a video on it and now you have made it look like it is a piece of cake. thank you for this gesture. However, You didn't calculate big O notation of the approach you used in 19:18 because I can see while loop within a for loop which is appearing to me as O of N square, I will like clarification on that.
@uncannyresemblance
@uncannyresemblance 3 ай бұрын
Awesome explanation 👏👏
@sundayndu
@sundayndu 5 ай бұрын
Nice visualization of sliding window technique, infact one of the best out there. However, I don't think you are meant to reassign the answer [and = min(and, r - l +1) in the while loop. It should be done outside the while loop to also consider answers in situations that matches the condition(sum< S). We got away with it in this case because, the algorithm is asking for the smallest subarray.
@hatefraheeme4020
@hatefraheeme4020 Жыл бұрын
Great explanation bro.
@chanduiit42
@chanduiit42 2 жыл бұрын
Wonderful explanation...can you explain the correctness of this approach..as in how does this dynamic sliding window ensure that all the subarrays are seen and calculated? Thanks in advance.
@CursiveThoughts
@CursiveThoughts Ай бұрын
3:14 isn't the sum of those three equal to 12?
@jamjam3448
@jamjam3448 6 ай бұрын
thanks very much
@waqasshoukat7792
@waqasshoukat7792 2 жыл бұрын
Good Attempt
@qwertyqwerty-si8nn
@qwertyqwerty-si8nn 2 жыл бұрын
Kindly verify my solution in python: import math arr = [5,2,8,10,5,7,2,9] S = 15 lst = [] length = math.inf end = 0 for i in range(len(arr)): if sum(lst) >=S: length = min(length, len(lst)) lst.pop(0) else: lst.append(arr[end]) end+=1 print(length)
Algorithm Sliding Window - Static Version
21:59
DuoWei Education
Рет қаралды 322
Sliding Window Leetcode Problem Solved with JavaScript
15:01
James Q Quick
Рет қаралды 9 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
JavaScript Sliding Window Technique - Fixed Size
15:19
The Code Creative
Рет қаралды 15 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 771 М.
Sliding Window Technique
6:18
Profound Academy
Рет қаралды 20 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 89 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 344 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 945 М.
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 372 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 244 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН