Blog / Interview prep
Two pointers vs hash map: when to use which
Same problem, two solutions. A simple rule for picking the right one in the first five minutes.
SShakiba · Sep 2, 2026 · 5 min read · English
Prefer video? Watch the 14:20 versionThis post is being written up. The summary above is the gist; the full piece lands here soon. Subscribe and you'll get it by email the day it does.
Get new posts by email →Interview prep
SWritten by Shakiba
Senior Android engineer. I build AlgoNur to make the hard parts of interviews visual. If this helped, buy me a coffee.