Back to All Algorithms
Hashing
Category: Data Structures | Time: O(1) Average | Space: O(n)
Visualization
Visual representation of the data structure
Enter key-value pairs to start hashing visualization.
About Hashing

A technique used to map data of an arbitrary size to data of a fixed size. The values returned by a hash function are called hash values, hash codes, digests, or simply hashes. The values are used to index a fixed-size table called a hash table.

Code Editor
The code is for reference. Editing it won't affect the visualization.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Frequently Asked Questions
About Hashing

Related Interview Questions
Practice with real problems