Back to problems

Filter Open Restaurants Within a City Range

Algorithm · DoorDash · Medium

Eligible Restaurants Medium · Topics · Company Tags · Hints You are given a list of Restaurant objects, a target_city (an instance of City), and a distance limit radius. Return, in their original order, every restaurant that meets both of the following criteria: The restaurant is currently open. The restaurant’s city lies within radius of target_city. The City and Restaurant classes are already provided. You must not re‑implement geographical distance or business‑hours…

Checking your access…