Skip to content

Commit 938d06a

Browse files
authored
docs: clarify hash map vs HashMap terminology (#7195)
1 parent 404e140 commit 938d06a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/main/java/com/thealgorithms/datastructures/hashmap

src/main/java/com/thealgorithms/datastructures/hashmap/Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A hash map organizes data so you can quickly look up values for a given key.
44

5+
> Note: The term “hash map” refers to the data structure concept, while `HashMap` refers specifically to Java’s implementation.
6+
57
## Strengths:
68
- **Fast lookups**: Lookups take O(1) time on average.
79
- **Flexible keys**: Most data types can be used for keys, as long as they're hashable.

0 commit comments

Comments
 (0)