Revise · W07 · Day 5Location Search and Search at Scale
5:00
Key ideaDay 5 · 1/10
Why a B-tree can't do "near"
An index on (lat, lng) uses only the latitude range, then tests longitude on every row: a strip across the country. Instead, cover the query with cells, then refine by exact distance.
← → flip · space next / show answer · S shuffle · esc exit1 / 10