Sliding Window Algorithm - Variable Length + Fixed Length - DSA Course in Python Lecture 13

  Рет қаралды 16,829

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 19
@GregHogg
@GregHogg 4 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@mdbillah9998
@mdbillah9998 13 күн бұрын
Your teaching is so unique and easy way get to the student head!
@soumikdas2946
@soumikdas2946 5 ай бұрын
Greg just keep making these videos man you are just awesome ❤
@GregHogg
@GregHogg 5 ай бұрын
Glad to hear it!
@Shiva-wp2nq
@Shiva-wp2nq 5 ай бұрын
Hey Greg, you're content and way of explaining make me feel like DSA is easy
@GregHogg
@GregHogg 5 ай бұрын
Glad to hear it!
@mystikyogi
@mystikyogi 3 ай бұрын
Amazing explanation. Thanks!
@naveentarakaturi9930
@naveentarakaturi9930 5 ай бұрын
you are so talented.
@bigk9000
@bigk9000 2 ай бұрын
What is the name of the tool you use to draw stuff out?
@mrsengeel
@mrsengeel 4 ай бұрын
Great teaching Greg but i have a question, what is the need of comparing the max value of w to longest because there is nowhere in the code for Variable Lenght Sliding Window is longest incremented from 0. So can we just give longest = w in replace of finding the max between them
@kdiffin
@kdiffin Ай бұрын
Thanks ❤
@creativeusername4400
@creativeusername4400 5 ай бұрын
it feels illegal to watch because of its simplicity with DSA
@carsworld3433
@carsworld3433 4 ай бұрын
Hey in first problem why did we specifically used set, I tried it with a list and it was actually better since list are more easier to work with
@sinanakcali8008
@sinanakcali8008 Ай бұрын
That would make the time complexity of your solution O(n^2). When you try to do a search in a list it is O(n), whereas search in a set is O(1)
@pjpodx
@pjpodx 5 ай бұрын
what about different sliding windows types/patterns: fixed length, caterpillar, shrinking /expending rules ?
@GregHogg
@GregHogg 5 ай бұрын
Did you watch the video?
@pjpodx
@pjpodx 5 ай бұрын
​@@GregHogg Yes, I think I was expecting more like recipe/template/framework for solving all sliding window problems after reading title, not just solving 2 leetcode sliding window tasks, Sorry.
@GregHogg
@GregHogg 5 ай бұрын
@@pjpodx This is the recipe. There's 2 common sliding window types, I say what they are, and explain how to solve an example for each. Not sure what else there is, am I missing something?
@Fam-m4i
@Fam-m4i 5 ай бұрын
First😊
Recursive Backtracking - DSA Course in Python Lecture 14
12:58
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 366 М.
Prefix Sum in 4 minutes | LeetCode Pattern
4:13
AlgoMasterIO
Рет қаралды 7 М.
I Studied Data Job Trends for 24 Hours to Save Your Career! (ft Datalore)
13:07
Thu Vu data analytics
Рет қаралды 288 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 642 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН