← Questions

Reach a target when you can only step between nearby points

0
GoogleCodingLast asked Jul 2026

A coding interview question asked in Google's first round (coding), last asked Jul 2026. It tests graphs, binary-search and bfs.

You have an unordered set of points, a start point, an end point and a function get_distance(a, b) that returns the distance between two points. You may step from one point to another only when their distance is at most a threshold.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Google · First round: coding · Last asked Jul 202645 min · Coding in a Google Doc, no syntax highlighting or autocomplete · No AI

What it tests

graphs · binary-search · bfs

Your code and the AI tutor open when you unlock this question.