Concept Flow - Why Hash Map Exists and What Problem It Solves
Need to store key-value pairs
Use simple list/array
Problem: Slow search (linear scan)
Idea: Use hash function
Map key to index fast
Store value at computed index
Fast lookup, insert, delete
Hash Map solves slow search problem
Shows how storing key-value pairs in a list is slow, so hash maps use a hash function to quickly find data.
