Master Data Structures & Algorithms For FREE at AlgoMap.io!
@mdbillah999820 күн бұрын
Your teaching is so unique and easy way get to the student head!
@Shiva-wp2nq5 ай бұрын
Hey Greg, you're content and way of explaining make me feel like DSA is easy
@GregHogg5 ай бұрын
Glad to hear it!
@soumikdas29465 ай бұрын
Greg just keep making these videos man you are just awesome ❤
@GregHogg5 ай бұрын
Glad to hear it!
@mystikyogi3 ай бұрын
Amazing explanation. Thanks!
@naveentarakaturi99305 ай бұрын
you are so talented.
@kdiffinАй бұрын
Thanks ❤
@mrsengeel4 ай бұрын
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
@bigk90003 ай бұрын
What is the name of the tool you use to draw stuff out?
@carsworld34335 ай бұрын
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Ай бұрын
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)
@creativeusername44005 ай бұрын
it feels illegal to watch because of its simplicity with DSA
@dennohnjogu40285 күн бұрын
is it really o(n)? we have two nested loops. Doesnt that makes it o(n squared)?
@dennohnjogu40285 күн бұрын
in its worst case scenario that is.
@Stanfox-in2rb2 күн бұрын
It's O(n) because we loop all our array only 1 time
@pjpodx5 ай бұрын
what about different sliding windows types/patterns: fixed length, caterpillar, shrinking /expending rules ?
@GregHogg5 ай бұрын
Did you watch the video?
@pjpodx5 ай бұрын
@@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.
@GregHogg5 ай бұрын
@@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?