Skip to content

Commit 358db5d

Browse files
add Real-World Example to Hash maps and Sets
1 parent 3d5c67e commit 358db5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cheatsheet/HashMapAndSets/hash_maps_and_sets.md

+6
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@
1515

1616
- Hash maps: dictionary, counting frequencies, storing key-value pairs, quick lookups.
1717
- Hash sets: unique elements, marking elements as used or visited, check for duplicates.
18+
19+
---
20+
21+
### Real-World Example
22+
23+
Web browser cache: Hash maps and sets are used everywhere in real-words systems. A classic example of hash maps in action is in caching systems within web browsers. When you visit a website, your browser stores data such as images, HTML, and CSS files in a cache so it can load much faster on future visits.

0 commit comments

Comments
 (0)