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

  Рет қаралды 11,838

RoadsideCoder

RoadsideCoder

Күн бұрын

Пікірлер: 37
@RoadsideCoder
@RoadsideCoder Жыл бұрын
➡ Download my DSA with JS E-Book - topmate.io/roadsidecoder/491565 🔴 Complete DSA with Javascript Playlist - kzbin.info/aero/PLKhlp2qtUcSZtJefDThsXcsAbRBCSTgW4 👤 Join the RoadsideCoder Community Discord - discord.gg/2ecgDwx5EE If this video gets good response, I will make more DSA videos, so do share it with others 🔥
@goodguy6589
@goodguy6589 Жыл бұрын
Great video champ ...keep it up please 👍🏻
@n1ght312
@n1ght312 Жыл бұрын
nice video !
@deepakgadwal008
@deepakgadwal008 Жыл бұрын
i have watch lots of video but no one explain like you i am trying to understand this code for 3 days.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thats good to know bro 🔥
@aliiqbal208
@aliiqbal208 Жыл бұрын
Just joined.
@thequantum-plator
@thequantum-plator Жыл бұрын
Great video, keep 'em coming
@motivationalmusic3721
@motivationalmusic3721 5 ай бұрын
I understand in first go buy still need revision ..
@motivationalmusic3721
@motivationalmusic3721 6 ай бұрын
Trees graph , etc is coming ?
@rishiraj2548
@rishiraj2548 Жыл бұрын
🙏🙏
@shrikantjha4686
@shrikantjha4686 Жыл бұрын
hi bro can u pls make DSA with JS with all concepts involved
@RoadsideCoder
@RoadsideCoder Жыл бұрын
That is what I'm doing right now, you can check my full playlist
@deepakgadwal008
@deepakgadwal008 Жыл бұрын
tell me one thing how window is sliding and which line doing this task
@utkarshpant5297
@utkarshpant5297 6 ай бұрын
When dq.length >=k , dq.shift() removes the first element from dq array making room for pushing ith index
@alwysrite
@alwysrite Жыл бұрын
Yes, it is very confusing !
@non-wg5os
@non-wg5os Жыл бұрын
@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.
@Solo_playz
@Solo_playz 8 ай бұрын
It's very easy bro, there are lot of videos out there on YT to help you with it!
@prahaladmankoliya4242
@prahaladmankoliya4242 9 ай бұрын
its quadrartic time complexcity not exponial time complexcity
@MohanKumar-oj4dk
@MohanKumar-oj4dk Жыл бұрын
Great video!! But very confusing & Not understood!!!😇
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Try to watch visual explanation again, u will understand. Happens with everyone!
@sudhanshusharma9888
@sudhanshusharma9888 Жыл бұрын
please like and comment all the videos because the premium content is here for free❤
@RoadsideCoder
@RoadsideCoder Жыл бұрын
yes ❤️
@peziom-rn7sv
@peziom-rn7sv 2 ай бұрын
30 min video and no information what is the task to and what means 'Sliding Window Maximum'
@alejandrogregory978
@alejandrogregory978 Жыл бұрын
🌈 "promosm"
@dhruvkhullar7691
@dhruvkhullar7691 7 ай бұрын
Even smaller logic, if using js: const slidingWindowMax = (arr, k) => { let maxSlidinArr = []; for(let i=0;i
@utkarshpant5297
@utkarshpant5297 6 ай бұрын
Brilliant
@kn-ee5iq
@kn-ee5iq Ай бұрын
Arey ye toh naive solution ka compact version hi toh hai. Complexity n*k hi aayegi iski bhi. Aur math.max 2 element pe kaam krta hai naki array kf elements pe
@dhruvkhullar7691
@dhruvkhullar7691 Ай бұрын
​@@kn-ee5iqconsole.log(Math.max(1, 3, 2)); // Expected output: 3 console.log(Math.max(-1, -3, -2)); // Expected output: -1 const array1 = [1, 3, 2]; console.log(Math.max(...array1)); // Expected output: 3
@kn-ee5iq
@kn-ee5iq Ай бұрын
@@dhruvkhullar7691 ok but still complexity is high , same as of naive solution he provided in first approach What about that. Your solution looks short but have same time complexity as of first approach
@dhruvkhullar7691
@dhruvkhullar7691 Ай бұрын
@@kn-ee5iq where have I mentioned anything related to complexity, mate? It was just a minified way to solve it in JS. Period.
@shivambln
@shivambln 5 ай бұрын
Bhai kuch samjh ni aara .... Matlab meri hi samjh ni aara ....baaki sabko samjh aara hai ...
@kn-ee5iq
@kn-ee5iq Ай бұрын
Bhai ye thodi hard problem hai
@gouravmalik5023
@gouravmalik5023 Жыл бұрын
Bhai hindi m bhi bol liya kr
@guptasagar694
@guptasagar694 Ай бұрын
I am not able to Understand a Shit
@RoadsideCoder
@RoadsideCoder Ай бұрын
follow from start, here's full course - kzbin.info/aero/PLKhlp2qtUcSZtJefDThsXcsAbRBCSTgW4
Sliding Window Leetcode Problem Solved with JavaScript
15:01
James Q Quick
Рет қаралды 6 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 17 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 44 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 26 МЛН
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 158 М.
Top 50 Most Asked JavaScript Logical Interview Questions || Must Watch🤯😱
1:09:02
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 337 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 292 М.
JavaScript Sliding Window Technique - Fixed Size
15:19
The Code Creative
Рет қаралды 14 М.