docs: clarify hash map vs HashMap terminology (#7195)

This commit is contained in:
Rajesh Reddy
2026-01-07 17:19:51 +05:30
committed by GitHub
parent 404e1404aa
commit 938d06abb5

View File

@@ -2,6 +2,8 @@
A hash map organizes data so you can quickly look up values for a given key.
> Note: The term “hash map” refers to the data structure concept, while `HashMap` refers specifically to Javas implementation.
## Strengths:
- **Fast lookups**: Lookups take O(1) time on average.
- **Flexible keys**: Most data types can be used for keys, as long as they're hashable.