K Closest Points With Distance Filter
This is a direct model of Uber's driver eligibility filter. Not every nearby driver is eligible — they must be within the dispatch radius. Combining a distance filter with a top-k heap models the real query: "Find the k best available drivers within 5 miles."
Enable JavaScript for the full StreamPrep guide.