Sitemap
Chang Liu

Chang Liu

Leetcode Notes

1 min readAug 7, 2018

--

HashTable:

  1. Count the frequency of item
  2. Uniqueness of item
  3. Store weighted sum
  4. List, dict is not hashtable, but “Tuble ” can be key !

Class object can be a key as well !!!

Get Chang Liu’s stories in your inbox

Join Medium for free to get updates from this writer.

Sorting Algorithm:

  • Time Complexity
  • space complexity
  • stability(preserved the order of original list for same elements)
  • Internal(RAM) or eternal(disk)
  • Recursive or not

--

--