JavaScript Sliding Window Technique - Fixed Size

  Рет қаралды 15,777

The Code Creative

The Code Creative

Күн бұрын

Пікірлер: 86
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
To subscribe to the channel: kzbin.info/door/mOpHGj4JRWCdXhllVTZCVw
@handsanitizer2457
@handsanitizer2457 4 жыл бұрын
Just found you, this is 👍 thanks for the video
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
@@handsanitizer2457 Great, thanks for watching!
@paschalynukwuani6930
@paschalynukwuani6930 2 жыл бұрын
This is undoubtedly the best explanation for a tutorial on algorithms I have seen on KZbin. I look forward to receiving more notifications to watch more tutorials from this channel. You are amazing with your way of explanation. Thank you!
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Glad it was helpful!
@anujamestry9235
@anujamestry9235 5 күн бұрын
Best explanation than any other resource. I hope I get sliding window problems in my interviews. Big thanks!!
@TheCodeCreative
@TheCodeCreative 5 күн бұрын
Glad it helped! Good luck with the interview!
@batmunkhn6666
@batmunkhn6666 2 жыл бұрын
this is the best way someone explained the technique and the actual code
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Excellent! 👍🏻
@okonkwo.ify18
@okonkwo.ify18 3 жыл бұрын
Videos are better for learning than reading online. I have read and read about this and couldn’t understand anything. But your video makes it clear to me
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
👍🏻👍🏻👍🏻
@dheerajnaik6467
@dheerajnaik6467 4 жыл бұрын
Hi sir .. these algorithms and the way you explain them are amazing . please don't stop .. these are the best in youtube.
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
Hi Dheeraj, thanks for the kind words. More videos coming soon. Thanks for watching!
@aslan6921
@aslan6921 Жыл бұрын
Best algorithm explanation that i ever found!
@TheCodeCreative
@TheCodeCreative Жыл бұрын
Glad it helped!
@tripl9111
@tripl9111 3 жыл бұрын
wow! This is the best video on the sliding window pattern. Your explanation is top notch and animations and audio quality are outstanding. Please do more videos on other patterns like Two Pointers and Fast and Slow pointers. Keep up the great work!
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Glad it was helpful!
@losbur5416
@losbur5416 4 жыл бұрын
The way you explain this algorithm is just incredible
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
Thank you and thanks for watching!
@starvisor751
@starvisor751 3 жыл бұрын
You explained this so eloquently and now I have a clear understanding of this method. Thank you.
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Glad it was helpful!
@prasannakumari1597
@prasannakumari1597 Жыл бұрын
Excellent Explanation Sir. Thank you very much.
@TheCodeCreative
@TheCodeCreative Жыл бұрын
You are most welcome
@johnnewman8865
@johnnewman8865 10 ай бұрын
I've researched good explanation for this technique. Your version is the best. Thanks for your videos.
@TheCodeCreative
@TheCodeCreative 10 ай бұрын
Glad it was helpful!
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
🗣JOIN the Code Creative Facebook group! : facebook.com/groups/1612600368887577
@yokohibarashi1386
@yokohibarashi1386 4 жыл бұрын
Your voice and the calm clear explanation really helped me understand this technique. Subscribed and liked!
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
That's great to hear! Thanks for watching 👍🏻
@todaysmotivation9692
@todaysmotivation9692 3 жыл бұрын
The video presentation and transition of the window over array and you method was awsome
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Glad to hear! Thanks for watching!
@ryanbollettino8983
@ryanbollettino8983 2 жыл бұрын
Thank you for this. Been struggling to grasp the concept of coding it. The "aha" was when I realized that [i] will ALWAYS be bigger than [size -1] once you have your first "true" sum of numbers. Subscribed and watching. Thanks again!
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Glad it helped!
@wabbit2158
@wabbit2158 2 жыл бұрын
golden content, needs to be at 1 million+ views really...
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Thank you! Only about 992,000 left to go 😀
@Human_Evolution-
@Human_Evolution- 3 жыл бұрын
love the MDN screenshots and the voice is great. Subbed.
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Great, thank you!
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
📖 Download my FREE "Google Search Secrets for Developers" Cheat Sheet: store.thecodecreative.com/google-secrets-cheat-sheet
@CakeBossan
@CakeBossan 10 ай бұрын
the brute force approach is not quadratic, but it is O(nm), where m is the fixed window size and n is the number of elements in the array. If you assume that m
@CakeBossan
@CakeBossan 10 ай бұрын
even when m is close to n, it is not quadratic as the number of iterations drops significantly, so it is closer to linear time.
@subhashgn1775
@subhashgn1775 3 жыл бұрын
Enjoyed your teaching. Very grateful to you man...
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Thank you and thanks for watching!
@gboyegalawal8881
@gboyegalawal8881 2 жыл бұрын
This is really helpful. Thank you
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Glad it was helpful!
@aysesinanmuslu7409
@aysesinanmuslu7409 4 жыл бұрын
I loled at 4:05 Nice videos!
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
🤣🤣🤣 thanks!
@nemanjam6272
@nemanjam6272 Жыл бұрын
You the man. Thank you
@TheCodeCreative
@TheCodeCreative Жыл бұрын
👍🏻👍🏻👍🏻
@alexandernemechek3494
@alexandernemechek3494 3 жыл бұрын
Excellent video!
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Thanks for watching Alexander!
@oaklandathleticfan12
@oaklandathleticfan12 7 ай бұрын
Amazing video, thank you
@TheCodeCreative
@TheCodeCreative 7 ай бұрын
Glad you liked it!
@showwong4466
@showwong4466 3 жыл бұрын
Excellent explanation! Thank you.
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Thanks for watching!
@vinothkannans1910
@vinothkannans1910 4 жыл бұрын
Great explanation with Clarity 👍
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
Thanks Vinoth!
@dumtoimoh2840
@dumtoimoh2840 Жыл бұрын
first time i saw sliding window it looked like a hard code to understand, but bro you just demystified it
@TheCodeCreative
@TheCodeCreative Жыл бұрын
Glad to hear!
@muriukialex
@muriukialex 2 жыл бұрын
Thank you mate!
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
You're welcome!
@DharmikGohil-bw2ug
@DharmikGohil-bw2ug 3 жыл бұрын
keep it up 👌👌👌 great videos with great values thanks i hope your channel grow fast
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Thank you!
@JaBoss397
@JaBoss397 2 жыл бұрын
THANK YOU KEEP UP GOOD WORK I WAS STRUGGLING WITH SLIDING WINDOWS. Do you have a dynamic sliding window video ????
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Thanks! No dynamic sliding window yet, but stay tuned!
@jamjam3448
@jamjam3448 3 жыл бұрын
Wowww. Thanks a million 😁 😁 😁
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
You're welcome!
@LazyShady
@LazyShady 2 жыл бұрын
Good explaination.
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Thanks for watching!
@arunkaiser
@arunkaiser 4 жыл бұрын
Awesome Greg 👍🏽👍🏽👍🏽
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
Thanks Arun!
@Eeezus1914
@Eeezus1914 3 жыл бұрын
great explanation
@TheCodeCreative
@TheCodeCreative 3 жыл бұрын
Glad it was helpful!
@zameeebasha
@zameeebasha 4 жыл бұрын
Awesome!
@TheCodeCreative
@TheCodeCreative 4 жыл бұрын
Hey Zameer Sheikh, thanks for watching!
@patrickchan2503
@patrickchan2503 3 жыл бұрын
thanks for this, would be good to do a nested for loop so we could compare it with the optimised solution, just a thought, thanks.
@oluwatobioyewole1501
@oluwatobioyewole1501 3 жыл бұрын
Hi, thanks so much for the clear explanation found it very insightful. I would like to know other algorithmic techniques one should know because this is my first time hearing about this concept. Hence, am very curious about other concepts like the sliding window technique
@cvain07
@cvain07 3 жыл бұрын
please bring a dsa algoritm interview prep series in js
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Great idea!
@linas3075
@linas3075 2 жыл бұрын
First of all, thank you for the tutorial! It's very well-paced and easy to follow. However, I have a question regarding subtracting the number once i gets to >= size. On line 9, we do this: `currSum -= nums[i - (size-1)];` Is it correct, though? Let's say, our i is 3, which means that we have to "move" the window, remove the first element and start calculating from the second element in the array. In that case, we should subtract nums[0], which is nums[i - size] (= nums[3-3]). If we subtract nums[3 - (3-1)], we end up subtracting nums[1], which is incorrect, isn't it?
@cmdv42
@cmdv42 2 жыл бұрын
💯✨
@TheCodeCreative
@TheCodeCreative 2 жыл бұрын
Thanks!
@potterfreak63
@potterfreak63 3 жыл бұрын
anyone else here for advent of code?
@_slier
@_slier 3 жыл бұрын
i guess the cat have a hard time understanding the sliding window algos.
@greggfineguitar
@greggfineguitar 4 жыл бұрын
🗣JOIN the Code Creative Facebook group! : facebook.com/groups/1612600368887577
@aryanisml
@aryanisml Жыл бұрын
Good Explanation
@TheCodeCreative
@TheCodeCreative Жыл бұрын
👍🏻👍🏻👍🏻
JavaScript Solution for LeetCode Symmetric Tree: A Step-by-Step Walkthrough
12:38
Sliding Window Leetcode Problem Solved with JavaScript
15:01
James Q Quick
Рет қаралды 9 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Контекст вызова функции. Фундаментальный JavaScript
21:51
Михаил Непомнящий
Рет қаралды 22 М.
How to Solve LeetCode Two Sum | Understanding Algorithms
17:02
The Code Creative
Рет қаралды 6 М.
ENERGIZE Your Animations with GSAP EASES!
7:21
The Code Creative
Рет қаралды 470
Sliding Window Technique | Google Coding Interview | Maximum Size SubArray Of Size K
16:06
JAVAAID - Coding Interview Preparation
Рет қаралды 67 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 918 М.
FASTER JavaScript In 2025 With Sets
13:13
Jack Herrington
Рет қаралды 29 М.
Algorithm Sliding Window -  Dynamic Version
20:32
DuoWei Education
Рет қаралды 7 М.
How I Got Good at Coding Interviews
6:29
NeetCode
Рет қаралды 1,7 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.