Hash table vs range query

When to use which one for efficiency?

Photo by Mark Fletcher-Brown on Unsplash

Each data structure has associated costs and benefits. In practice, it is hardly ever
true that one data structure is better than another for use in all situations. If one
data structure or algorithm is superior to another in all respects, the inferior one
will usually have long been forgotten.

--

--

--

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Composition of Enemy Behavior

Foreign function interface: Calling Rust functions from Deno

Join Our Beta Testing Contest

How to set up Postgres in your Django project

How to set up Postgres in your Django project

5 ways to improve your communication skills to be a better software developer

7 Methods to Fix Windows Update Error 0x80072EFF

Fall in Love With Single-Div Illustrations

Single-div timelapse

StackOS Introduces Nodeathon: One-Click Deployment Of Nodes!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

More from Medium

Microsoft Scholarship

Finding Work: Devotion and work

Beginner’s Guide To Spring’s Inversion of Control

Steps to create a database in MySQL