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

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

RoadsideCoder

RoadsideCoder

Күн бұрын

Пікірлер: 40
@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 🔥
@WG26Gaming
@WG26Gaming 24 күн бұрын
yes at this point 11:00 i got it, you just learned this and without properly understanding yourself you created this 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 🔥
@goodguy6589
@goodguy6589 Жыл бұрын
Great video champ ...keep it up please 👍🏻
@sudhanshusharma9888
@sudhanshusharma9888 Жыл бұрын
please like and comment all the videos because the premium content is here for free❤
@RoadsideCoder
@RoadsideCoder Жыл бұрын
yes ❤️
@motivationalmusic3721
@motivationalmusic3721 Жыл бұрын
Trees graph , etc is coming ?
@motivationalmusic3721
@motivationalmusic3721 11 ай бұрын
I understand in first go buy still need revision ..
@thequantum-plator
@thequantum-plator Жыл бұрын
Great video, keep 'em coming
@n1ght312
@n1ght312 Жыл бұрын
nice video !
@peziom-rn7sv
@peziom-rn7sv 7 ай бұрын
30 min video and no information what is the task to and what means 'Sliding Window Maximum'
@dhruvkhullar7691
@dhruvkhullar7691 Жыл бұрын
Even smaller logic, if using js: const slidingWindowMax = (arr, k) => { let maxSlidinArr = []; for(let i=0;i
@utkarshpant5297
@utkarshpant5297 Жыл бұрын
Brilliant
@kn-ee5iq
@kn-ee5iq 7 ай бұрын
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 7 ай бұрын
​@@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 7 ай бұрын
@@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 7 ай бұрын
@@kn-ee5iq where have I mentioned anything related to complexity, mate? It was just a minified way to solve it in JS. Period.
@deepakgadwal008
@deepakgadwal008 Жыл бұрын
tell me one thing how window is sliding and which line doing this task
@utkarshpant5297
@utkarshpant5297 Жыл бұрын
When dq.length >=k , dq.shift() removes the first element from dq array making room for pushing ith index
@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 Жыл бұрын
It's very easy bro, there are lot of videos out there on YT to help you with it!
@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
@aliiqbal208
@aliiqbal208 Жыл бұрын
Just joined.
@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!
@prahaladmankoliya4242
@prahaladmankoliya4242 Жыл бұрын
its quadrartic time complexcity not exponial time complexcity
@alwysrite
@alwysrite Жыл бұрын
Yes, it is very confusing !
@rishiraj2548
@rishiraj2548 Жыл бұрын
🙏🙏
@WG26Gaming
@WG26Gaming 24 күн бұрын
even you are confused at 10:00 and i also can't understand shit, you need improvement before teaching others.
@shivambln
@shivambln 11 ай бұрын
Bhai kuch samjh ni aara .... Matlab meri hi samjh ni aara ....baaki sabko samjh aara hai ...
@kn-ee5iq
@kn-ee5iq 7 ай бұрын
Bhai ye thodi hard problem hai
@alejandrogregory978
@alejandrogregory978 Жыл бұрын
🌈 "promosm"
@gouravmalik5023
@gouravmalik5023 Жыл бұрын
Bhai hindi m bhi bol liya kr
@guptasagar694
@guptasagar694 7 ай бұрын
I am not able to Understand a Shit
@RoadsideCoder
@RoadsideCoder 7 ай бұрын
follow from start, here's full course - kzbin.info/aero/PLKhlp2qtUcSZtJefDThsXcsAbRBCSTgW4
@cyberpirate007
@cyberpirate007 Ай бұрын
Skill Issue bro
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
Sliding Window Maximum | Leetcode
20:16
take U forward
Рет қаралды 267 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 765 М.
Sliding Window Technique
6:18
Profound Academy
Рет қаралды 20 М.
LeetCode 239: Sliding Window Maximum
16:39
Engineering Digest
Рет қаралды 2,3 М.
Sliding Window Leetcode Problem Solved with JavaScript
15:01
James Q Quick
Рет қаралды 9 М.
Sliding Window Technique - Algorithmic Mental Models
36:45
Ryan Schachte
Рет қаралды 372 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.