0 0 andrew andrew2021-06-27 16:08:242023-01-30 16:09:37Are Strings Anagrams?
Anagram = all letters can be reused to create another word. Approaches Approach 1: sorting (nonintuitive to me) An anagram is produced by rearranging the letters. Sort the letters alphabetically for the two strings. The sorted strings should…
0 0 andrew andrew2021-06-02 20:32:012023-01-15 20:38:54Consistent hashing
Before diving into consistent hashing, let's understand the naive approach first. Naive: Distributed hashtable based on modulo Sharding can be achieved via a simple modulo shardNumber = hash(key) % TOTAL_SHARDS The hash function might differ…
Mocki.co. Practice makes perfect. Have mock interviews with engineers from top companies. Find mentors and tutors.