Data structures · Multiple choice

To find drivers near a rider, you look up the rider's geohash cell. Why must you also search the neighbouring cells?

medium

Options

Why

Cells are a grid, and a rider near an edge is closer to the next cell's drivers than to the far side of their own. Querying the cell and its 8 neighbours covers the area around them.

Review this in your daily deck All cards in Data structures