mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-31 06:03:55 +08:00
contents: rearrange algo layout structure
This commit is contained in:
@ -15,6 +15,14 @@ In the case of hash collisions, there are a number of collision resolution techn
|
||||
- **Separate chaining** - A linked list is used for each value, so that it stores all the collided items.
|
||||
- **Open addressing** - All entry records are stored in the bucket array itself. When a new entry has to be inserted, the buckets are examined, starting with the hashed-to slot and proceeding in some probe sequence, until an unoccupied slot is found
|
||||
|
||||
## Learning resources
|
||||
|
||||
- Readings
|
||||
- [Taking Hash Tables Off The Shelf](https://medium.com/basecs/taking-hash-tables-off-the-shelf-139cbf4752f0), basecs
|
||||
- [Hashing Out Hash Functions](https://medium.com/basecs/hashing-out-hash-functions-ea5dd8beb4dd), basecs
|
||||
- Videos
|
||||
- [Core: Hash Tables](https://www.coursera.org/lecture/data-structures-optimizing-performance/core-hash-tables-m7UuP), University of California San Diego
|
||||
|
||||
## Implementations
|
||||
|
||||
| Language | API |
|
||||
@ -35,14 +43,6 @@ In the case of hash collisions, there are a number of collision resolution techn
|
||||
|
||||
_\* This is the average case, but in interviews we only care about the average case for hash tables._
|
||||
|
||||
## Learning resources
|
||||
|
||||
- Readings
|
||||
- [Taking Hash Tables Off The Shelf](https://medium.com/basecs/taking-hash-tables-off-the-shelf-139cbf4752f0), basecs
|
||||
- [Hashing Out Hash Functions](https://medium.com/basecs/hashing-out-hash-functions-ea5dd8beb4dd), basecs
|
||||
- Videos
|
||||
- [Core: Hash Tables](https://www.coursera.org/lecture/data-structures-optimizing-performance/core-hash-tables-m7UuP), University of California San Diego
|
||||
|
||||
## Sample questions
|
||||
|
||||
- Describe an implementation of a least-used cache, and big-O notation of it.
|
||||
|
Reference in New Issue
Block a user