Approach 1: Hash + collision resolution
Play this lessonThis lesson comes with an interactive animation you can break, a live-code challenge and a chapter quiz.Use a well-known hash function like CRC32, MD5 or SHA-1 and take the first 7 characters. For https://en.wikipedia.org/wiki/Systems_design:
The rest of this lesson is part of Pro
Pro unlocks every lesson with its animation, code challenge and quiz, plus every interview problem. ₹299 a month or ₹1,999 a year.
See Pro