Loading...
Understand why data structures matter through memory systems
Section 3 of 4
There is no "best" data structure. Each one is a tool designed to solve specific problems with different performance characteristics.
You have 1 million contacts and need to find one quickly
Check every contact one by one
Keep contacts sorted, search by dividing in half
Use name as key to directly compute location