return to all data-structures

return to concepts

The HashMap Data Structure

Overview

When to Use HashMaps

Time Complexity & Space Complexity

Operation Average Time Complexity
Indexing N/A
Search O(1)
Insertion O(1)
Deletion O(1)

The worst space complexity of a HashMap is O(n).

HashMap Concept Review

A useful summary of HashMap concepts to review can be found here.


return to all data-structures

return to concepts