Data Structures in Javascript ( Sliding Window Maximum) | DSA Interview Questions | Deque | Leetcode

preview_player
Показать описание
#javascriptinterviewquestions #datastructures #datastructuresandalgorithms

In this DSA with JS video, we dive into the concept of the sliding window maximum and explore two different approaches to solve it efficiently using Brute force and using deque.
This is the most Entertaining and Knowledge Packed Data Structures and Algorithms in Javascript Interview Course on Youtube !

➡️ Book an Interview Preparation call with me ( 20% OFF for limited time ) -

🟦 Follow me on Twitter and u will clear your interview 🤓 -

➡️ Source Code -

🔗 Complete Data Structures and Algorithms with JS Course -

🔗 Queue Video -

🔗 Arrays Video -

🔗 Map, filter and reducer video -

🔗 Frontend Machine Coding Interview Series -

🔗 Cars24 Interview Experience -

🔗 Unacademy Interview Experience -

🔗 Tazorpay Interview Experience -

🔗 MERN Stack Tutorial with Redux -

🔗 React Beginner's Project Tutorials -

-------------------------------------------------------------------------

00:00 Intro
00:15 Problem Explanation
01:25 Solution #1 - Brute Force Approach
05:25 Running it on Leetcode
06:13 Time Complexity of this Algorithm
07:09 Space Complexity of this Algorithm
07:23 Solution #2 - Using Deque
07:27 Visual Explanation by AlgoAgarwal
17:02 Code for Deque approach
23:49 Running it on Leetcode
24:07 Time and Space Complexity of this Algorithm

-------------------------------------------------------------------------

⭐ Support the channel and learn from me One on One -

Special Thanks to our members -
Рекомендации по теме
Комментарии
Автор

If this video gets good response, I will make more DSA videos, so do share it with others 🔥

RoadsideCoder
Автор

7:27 Wtf you scared the hell out of me here

Brunoalves-wibk
Автор

yes at this point 11:00 i got it, you just learned this and without properly understanding yourself you created this video

WGGaming
Автор

i have watch lots of video but no one explain like you i am trying to understand this code for 3 days.

deepakgadwal
Автор

Great video champ ...keep it up please 👍🏻

goodguy
Автор

30 min video and no information what is the task to and what means 'Sliding Window Maximum'

peziom-rnsv
Автор

please like and comment all the videos because the premium content is here for free❤

sudhanshusharma
Автор

Even smaller logic, if using js:

const slidingWindowMax = (arr, k) => {
let maxSlidinArr = [];

for(let i=0;i<=arr.length - k ; i++){
// creating window depending on size
maxSlidinArr.push(Math.max(...arr.slice(i, k+i)))
}
return maxSlidinArr
}

dhruvkhullar
Автор

I understand in first go buy still need revision ..

motivationalmusic
Автор

tell me one thing how window is sliding and which line doing this task

deepakgadwal
Автор

even you are confused at 10:00 and i also can't understand shit, you need improvement before teaching others.

WGGaming
Автор

@RoadsideCoder  bro it would be beneficial for all If u could make one video on how to deploy your MERN chat app project on render. The comment section there is filled with similar doubts, also the huge efforts at the end would be waste if we couldn't deploy and showcase our project. Thank you.

non-wgos
Автор

its quadrartic time complexcity not exponial time complexcity

prahaladmankoliya
Автор

hi bro can u pls make DSA with JS with all concepts involved

shrikantjha
Автор

Great video!! But very confusing & Not understood!!!😇

MohanKumar-ojdk
Автор

dude rarely explains properly and just start creating his video --- keeps on talking to himself. No clear understanding.

jashpatel
Автор

Bhai kuch samjh ni aara ....
Matlab meri hi samjh ni aara ....baaki sabko samjh aara hai ...

shivambln
visit shbcf.ru