Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.17 KB

File metadata and controls

54 lines (36 loc) · 1.17 KB

Hash Table

Concept

  • What is hash?
  • How do you make hash?
  • What is Hash Table?
  • What do you have to care when you create the Hash Table?
  • What is good(bad) about Hash Table compare to array?
    • when is better to use Hash Table over array

Analysis

What are the time complixity of

  • add(insert)
  • get value by key
  • find value
  • remove key, value
  • update value

Exercise

Exercise 1

Let's try to implement your own hash function. There is a good leedcode question here!

Exercise 2 (Optional)

Let's try to sovle some leetcode qusiton. These can be optimized by leveraging array and hash table data structure💪

References

https://leetcode.com/explore/learn/card/hash-table/


Set

Q: Concept

  • What is Set?
  • What is Set vs Hash Table?
    • when is better to use Set over Hash Table