Memoization and How to Memoize | Javascript Memoization🔥Frontend Interview Series🔥 Episode 13

  Рет қаралды 46,731

Technical Suneja

Technical Suneja

Күн бұрын

Пікірлер
@TechnicalSuneja
@TechnicalSuneja 2 жыл бұрын
00:00 - Don't skip anything 🙏 Aur kya haal sabke? btao next topic JS kon sa hona chahiye ??
@hafeezashrafi7053
@hafeezashrafi7053 2 жыл бұрын
Use memo per ek videos
@hafeezashrafi7053
@hafeezashrafi7053 2 жыл бұрын
Sir ek video how to host react project
@sadhnasharnagat9120
@sadhnasharnagat9120 2 жыл бұрын
Service worker and web worker
@jitenmohanty8273
@jitenmohanty8273 Жыл бұрын
It works like dp
@syedaashirali3385
@syedaashirali3385 2 жыл бұрын
Sir your way of explaining concepts is just amazing, thank you for sharing your experience and helping the newcomers. You are an inspiration for me.. God bless you
@TechnicalSuneja
@TechnicalSuneja 2 жыл бұрын
Thank you 😊
@vikasme1299
@vikasme1299 7 ай бұрын
Thank you bhaiyaa.. Ek din me bhi successful hokar aapke podcast Parr aaunga❤😂
@gurmandeep4417
@gurmandeep4417 2 жыл бұрын
Best js teacher 👍👍
@ethanhunt4887
@ethanhunt4887 2 жыл бұрын
Very helpful video, I understand it one time - your explanation way is very easy and easy to understand.
@rajrai1495
@rajrai1495 2 жыл бұрын
I just had a interviuew where this question was asked just with two parameters, we could use apply for this case but if i had knowledge about your channel, i could have ace'd that interview ⚡
@Yash-ry5wj
@Yash-ry5wj 2 жыл бұрын
Understood Sir 🤩, You are Great🙌🏻❤️
@krishnaupadhyay4265
@krishnaupadhyay4265 2 жыл бұрын
Wah, kya mast samjhaya hai 👌👌
@scienceofcomputer5173
@scienceofcomputer5173 Жыл бұрын
sir thank u you explained it very well without leaving any detail
@souviksarkar4111
@souviksarkar4111 2 жыл бұрын
Mind blowing explanation . ❤
@ManoharBatra
@ManoharBatra 2 жыл бұрын
sir ji aap shaandaar ho
@Vikas-dm9uc
@Vikas-dm9uc 2 жыл бұрын
You are hidden treasure for me bhaiya❤
@JohnDoe-q2g7n
@JohnDoe-q2g7n Жыл бұрын
Great way of explanation💥💥
@rahzofficial6880
@rahzofficial6880 2 жыл бұрын
Very humble , good and cool man.
@dipenchavda6988
@dipenchavda6988 Жыл бұрын
Absoluty beautiful explanation.
@hrithikrudra4292
@hrithikrudra4292 2 жыл бұрын
Understood bro Keep uploading such interview questions
@printmusic5m50
@printmusic5m50 2 жыл бұрын
Thank you very much Guru🙏🙏🙏🙏🙏🙏
@harrysaladfingers1515
@harrysaladfingers1515 2 жыл бұрын
** I found this for non-primitive arguments after understanding the concept here ** /* Receives a function which would be memoized*/ function memoize(fn) { /* we'll use this object to store the results */ let cache = {}; /* Returns a function that will receive the arguments that will be passed to the memoized function (fn). */ return (...args) => { /* We stringify the arguments in case they're non-primitive values */ const cacheKey = JSON.stringify(args); /* were the arguments already passed? if no, then store the result */ if (!(cacheKey in cache)) { cache[cacheKey] = fn(...args); } /* We then return the stored result */ return cache[cacheKey]; }; }
@mdfaiyazulhussain8752
@mdfaiyazulhussain8752 2 жыл бұрын
Beautiful✨ Explanation, neat, clean code
@SonuSingh-qw2bs
@SonuSingh-qw2bs Жыл бұрын
Nice series 👌👌🙂🙂🙂🙂
@blackCoder305
@blackCoder305 Жыл бұрын
good explanations sir
@razarajpoot9811
@razarajpoot9811 6 ай бұрын
Wonderfull Explanation!!, Like and sub done for explanation.
@zaidkazi3008
@zaidkazi3008 2 жыл бұрын
thank you so much bhaishab
@ninjatechstudio
@ninjatechstudio 2 жыл бұрын
excellent
@omkarshinde7466
@omkarshinde7466 2 жыл бұрын
Thank you so much broh ❤️
@gantavyasaraswat2130
@gantavyasaraswat2130 9 ай бұрын
GReat explanation bro
@ankushladani496
@ankushladani496 2 жыл бұрын
Maja aa gaya bhaiya....
@arpitmaurya6677
@arpitmaurya6677 2 жыл бұрын
thanks bro , you made js easy
@saurabrakshit405
@saurabrakshit405 2 жыл бұрын
Very nicely understood . but didn't got the same value like yours .
@rahulshukla4339
@rahulshukla4339 2 жыл бұрын
nice explain Thanks for this video
@souvik5560
@souvik5560 2 жыл бұрын
Nice 👍🏼
@anilrajmeena4373
@anilrajmeena4373 2 жыл бұрын
Bhaiya ji next Should be on Important topic witch you have not covered yet.
@Its_me_Thor
@Its_me_Thor Жыл бұрын
great!
@madetolaugh3476
@madetolaugh3476 2 жыл бұрын
Sir pdf hai jis mein javascript ke interviews ke saare topic ho ?
@kewalkandpal
@kewalkandpal 2 жыл бұрын
Awesome 🔥🔥
@akshayvispute1281
@akshayvispute1281 2 жыл бұрын
Thank you sirji..✌✌
@krishnachotaliya7185
@krishnachotaliya7185 Жыл бұрын
Middleware per ek video banao na sir,🙏
@vinodchand121
@vinodchand121 2 жыл бұрын
छोटे भाई क्या घुस कर बताता है। पता है तेरी खासियत क्या है एकदम जड़ से पकड़ कर जो समझाता है साला मुर्दा भी रॉकेट बन जाएगा।🙏🔥 फायर है रे तू 👍
@thakurjaswantsingh148
@thakurjaswantsingh148 2 жыл бұрын
hello ji I liked the way you explained things your next topic will be based on debouncing and throttling thank you
@HamzaAli-hg6yg
@HamzaAli-hg6yg 5 ай бұрын
level
@sadhnasharnagat9120
@sadhnasharnagat9120 2 жыл бұрын
Pls make one video for service worker and web worker..
@terabappayush7908
@terabappayush7908 2 жыл бұрын
sir mujhe topic samaj aa gya at first mujhe ye bhi laga ki ok ho sakta hai ye kuch kam aa jaye with lots of data calculations or something. but the thing is ki maine ye same function without memoization ke bhi jab try kiya to result lagbhag same tha agar same function dubara call kiya to. so i dont know what is this function doing( i know its saving the values of output i get from my functions but time it takes to get the values are smilar to what i will get for not using it)
@adityanautiyal2705
@adityanautiyal2705 6 ай бұрын
Hi. Is it necessary to use rest operator? It would work without it.
@tarunbharti1835
@tarunbharti1835 Жыл бұрын
bhaiya iss type ke javascript aur other technology like node express react mai video chaiye
@HamzaAli-hg6yg
@HamzaAli-hg6yg 5 ай бұрын
mja agya yr
@gettingoverit__
@gettingoverit__ Жыл бұрын
currying memoisation closure lexical scope higher order function ye saare ek dusre se linked hai!
@Devdaskekisse
@Devdaskekisse 2 жыл бұрын
KB tk aa jayega usemomo ka video sir
@pankajsen8388
@pankajsen8388 2 жыл бұрын
@TechnicalSuneja sir aap konsi company me software engineer ho.
@aabhishakemishra
@aabhishakemishra 2 жыл бұрын
Please continue JS interview questions
@rahulgheware5752
@rahulgheware5752 Жыл бұрын
It is just like dynamic Programming
@mickeykutti5165
@mickeykutti5165 2 жыл бұрын
What do the words associative arrays , lookup table,cache hit/miss ratio have in common with memoization?
@deepankmehta
@deepankmehta 2 жыл бұрын
Hi there, loved all your videos of this playlist. But I have an error I am not getting the same result as yours. My code is running always for the else case. Please help.
@brandflipping6353
@brandflipping6353 2 жыл бұрын
How to do this with muliple arguments
@nityaranjan6714
@nityaranjan6714 Жыл бұрын
let sum = 0; const addSum = (n) => { for (let i = 0; i < n; i++) { sum += n; } return sum; }; const momoize = (addSum) => { let cache = {}; return function (...args) { let n = args[0]; if (n in cache) { console.log("from cache"); console.log(cache); return cache[n]; } else { console.log("calculating first time"); console.log(cache); let result = addSum(n); cache[n] = result; return result; } }; }; console.time(); const efficient = momoize(addSum); console.log(efficient(4)); console.timeEnd();
@MuhammadSamiUllah2452
@MuhammadSamiUllah2452 2 жыл бұрын
Reason: zip END header not found Exception in thread "main" java.util.zip.ZipException: zip END header not found
@nityaranjan6714
@nityaranjan6714 Жыл бұрын
Is there any thing wrong in my code? Its executing else part every time. pasted the code below in comment.
@venven3353
@venven3353 Жыл бұрын
how to clear cache ex: efficient.clear()
@vinodraikwar5852
@vinodraikwar5852 2 жыл бұрын
Sir, how can i get your source code ? please answer me !
@saurabrakshit405
@saurabrakshit405 2 жыл бұрын
Why you also did''t got the same value ?
@dharmitkumarpatel2691
@dharmitkumarpatel2691 2 жыл бұрын
Please provide notes
@kumarjitu5751
@kumarjitu5751 Жыл бұрын
thoda difficult laga yeh episode
@sushantyadav01
@sushantyadav01 Жыл бұрын
send the code
@sagarchinchwade8351
@sagarchinchwade8351 2 жыл бұрын
value is not going to save in cache let addition=(n)=>{ let sum=0; for(let i = 0; i { let caches={}; console.log(caches) return function(...arg){ let n= arg[0] if(n in caches){ console.log('value is present is cache') return caches[n] } else{ let result=fun(n); console.log('value is cache',result) result=caches[n] return result } } } const efficient=ExMemo(addition) (efficient(100))
@shashikantverma9931
@shashikantverma9931 2 жыл бұрын
Premium video
@naishedhdamor5875
@naishedhdamor5875 8 ай бұрын
kuch samaj nahi aaya🤦‍♂
@omkarshinde7466
@omkarshinde7466 2 жыл бұрын
Awesome 🔥❤️
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Currying in Javascript | JS Interview Questions
8:14
Akshay Saini
Рет қаралды 337 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Currying in JavaScript | Frontend Interview Series 🔥 Episode 11
10:33
Technical Suneja
Рет қаралды 51 М.
The Complete Backend Developer Roadmap
8:24
Programming with Mosh
Рет қаралды 324 М.