Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
Nearby Friends System Design Interview
Visual Problem Diagram

Scenario
A user opens a map at a concert and sees "three friends nearby." One friend paused sharing. Another moved across town ten minutes ago. A bad actor keeps querying the same person every few seconds. The design must feel fresh without draining batteries, and it must protect privacy as seriously as it handles geospatial search.
Design a nearby friends feature that shows opted-in friends within a radius on a map. The system must balance three forces: it should feel fresh, it should not drain phone batteries, and it must not become a stalking tool.
Constraints
Constraints will be defined in the Requirements stage.
Stages ahead
Log in to start practicing
Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.