Two Sum - LeetCode 1 - HashMap - Java

preview_player
Показать описание
In this video we will go over one of the most asked, most liked questions on LeetCode. I go over a brute force solution and then how to optimize it using a HashMap. Before writing the code, I explained all the details on a white board!
I hope you enjoy the video and best of luck to all of you!

Contents of this video:

00:00 - read and understand the problem
02:25 - Brute force approach explained on white board
04:20 - HashMap approach explained on white board
10:20 - Code the solution
13:02 - Time and space complexity explained
14:08 - Outro
Рекомендации по теме
Комментарии
Автор

Came from reddit and happy to find this channel..

pravatyadav
Автор

Thank you, your explanation is amazing ❤

sarahussain
Автор

How come you dont need to add the values from nums into the Hashmap?

zuck
visit shbcf.ru