Understanding HashMap Data Structure(Ruby)

Yair Fernando
Dec 12, 2020 · 7 min read

In this article I will be talking about another data structure HashMap, so let’s start by understanding what a data structure is.

A Data structure is a collection of data that is organized in a way that gives you the ideal run time complexity for some operations, a data structure handles the data in a way that might be beneficial for specific cases and operations.

So we use data structures because it gives us a better performance under certain conditions, it is worth mentioning that a data structure does not cover all possible…