Тёмный

Cache With Time Limit - Leetcode 2622 - JavaScript 30-Day Challenge 

NeetCodeIO
Подписаться 203 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@NeetCodeIO
@NeetCodeIO Год назад
Would've uploaded this earlier but someone broke youtube last night (was NOT me 😉) twitter.com/TeamRU-vid/status/1659060023736016896
@kartikeyaarun2490
@kartikeyaarun2490 Год назад
Hi, I have seen people bind 'this' in the constructor like this.get=this.get.bind('this'). But you don't do that and solution gets accepted either way. So can you explain what it does ?
@vixguy
@vixguy Год назад
Day 14 of doing the 30-day challenge with neetcode
@mohitsharma-ep9iy
@mohitsharma-ep9iy 6 месяцев назад
we can also do Object.keys(obj).length; if using object instead of map
@saivenkatpokala8137
@saivenkatpokala8137 Год назад
Really appreciate the explanation of the js problem series
@ronaldmcsidy763
@ronaldmcsidy763 Год назад
The variety of stuff you can do here makes me wanna like Javascript
@rliu2
@rliu2 Год назад
Thx. i like the class sol much butter than the original one😃
@nChauhan91
@nChauhan91 Год назад
This pattern is very useful for something like an API cache
@Amar11115
@Amar11115 Год назад
Watched twice to fully understand. Thanks!
@shrutivvv
@shrutivvv Год назад
hehehe finally :p
@Tyheir
@Tyheir Год назад
I’ve only recently learned js (still learning) and I’m reluctant to use classes even though I came from a Java background. I almost always go with arrow functions but should I go with classes more?
@eswarrior
@eswarrior Год назад
I solved this one without using the set timeout callback, i just enter both the value and a expiration in an object as value. I do this live as well and have a periodic cleanup of expired cache items
@shinewbiez
@shinewbiez Год назад
wow, finally! thanks for this ^_^
@krateskim4169
@krateskim4169 Год назад
Was waiting for this
@Android-17
@Android-17 Год назад
Thank you! Finally a easy one.
@__kawaii
@__kawaii 8 месяцев назад
Спасибо, брат
@lucasluizss
@lucasluizss 6 месяцев назад
Great content! There is a change that would be nice in the get method: return this.cache.get(key)?.value ?? -1;
@allenli9642
@allenli9642 Год назад
Thanks for your sharing~
Далее
Дикий Бармалей разозлил всех!
01:00
Microservices are Technical Debt
31:59
Просмотров 348 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 82 тыс.
Throttle - Leetcode 2676 - JavaScript 30-Day Challenge
9:36
Node.js is a serious thing now… (2023)
8:18
Просмотров 650 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
Most Common Concepts for Coding Interviews
6:08
Просмотров 318 тыс.
My Initial Impresson Of Go
12:39
Просмотров 91 тыс.
Premature Optimization
12:39
Просмотров 811 тыс.