Тёмный

Leetcode - Two sum solution explained in Javascript & Java | Coding interview question 

Shawn C
Подписаться 9 тыс.
Просмотров 2,6 тыс.
50% 1

Explain coding question Two sum in details. amazon, google, facebook, apple coding interview question

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

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@viveknath6073
@viveknath6073 2 года назад
best explanation Broh❣️
@PICS_EDITION
@PICS_EDITION Год назад
Good explanation sir
@mscofield9925
@mscofield9925 3 года назад
Best explanation I have seen so far
@vladventura1928
@vladventura1928 2 года назад
Ah I was so close, I got an O(n) * 2 looking at the whole array twice and setting the difference as map key, and the current value as value; I like your solution much better!
@Courtney-yk2be
@Courtney-yk2be 2 года назад
Great explanation. Thank you for sharing!!
@jingkangloh7710
@jingkangloh7710 2 года назад
why is there a need for map.set(num[i], i); ? does it help with updating the 'diff' in the loop?
@geoffreylee1780
@geoffreylee1780 2 года назад
it need to store the pair of (key and indice) for future loop comparison
@nikithanikki3398
@nikithanikki3398 Год назад
you're explaining so well. would you please continue the series? 🥲it's very helpful ✨really like the way you explained the problem
@ShawnCTech
@ShawnCTech Год назад
Glad you like it
Далее
How to NOT Fail a Technical Interview
8:26
Просмотров 1,3 млн
How I would learn Leetcode if I could start over
18:03
Просмотров 263 тыс.
15. 3Sum Leetcode Javascript Solution
17:27
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
Learn Big O Notation In 12 Minutes
12:18
Просмотров 182 тыс.
20 System Design Concepts Explained in 10 Minutes
11:41
For Loops - Beau teaches JavaScript
6:37
Просмотров 94 тыс.