Design HashSet - Leetcode 705

preview_player
Показать описание
Today we will solve the "Design HashSet" problem from Leetcode. We will walk through a simple implementation of hashSet using linked lists in order to solve this Problem.

This question has been asked by Microsoft, Google, Meta, Amazon, Apple, and so many other companies.

Please check the channel page for more Leetcode solution videos. Also don't forget to like, comment, and subscribe.
Hope you enjoy the video and Thanks for watching 🙏

Chapters:
0:00 Intro and question
0:07 Examples
0:48 The Idea
2:27 Hash Function
2:52 Hash Collision
3:41 Why Prime Number?
4:22 Code Walk through
4:36 Node Structure
4:51 Bucket Structure
7:00 HashSet Structure
8:53 Time and Space Complexity
Рекомендации по теме
Комментарии
Автор

this is the best explanation in javascript for this question on youtube. Thanks!

DebopriyoBasu
Автор

Not bad. It’s kind of like 3 or 4 easy-med leetcode problems in one.

dave