Tech
LLD Data Structures in Design Context: Heap — A Data Structure Built for Continuous Decision Making
"A HashMap helps you find what you already know. A Heap helps you decide what should happen next."
In the previous article, we discovered that not every software problem is about finding a specific object.
Sometimes, the system already knows exactly what it's looking for.
Find User ID = 1024
↓
Return User
Other times, the system doesn't know the answer in advance.
Instead, it has to repeatedly answer questions like:
Which task should run next?
Which driver s...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to