RepostedGoogle logo

Google · Phone screen

In process

Google New Grad R1 Nearest Taxi BFS and BQ: 1 Experience

Software engineer · New GradMaster's degreeJan 2026
Shared by

Google new grad SWE R1, January 2026: nearest-taxi distances with multi-source BFS, a follow-up for taxis going on and offline, and a behavioral round.

At a glance

  • Process: R1 technical round (about 30 minutes of coding plus 15 minutes of talk) → behavioral round after two reschedules → passed R1 (01).
  • Asked recently: distance from every grid cell to the nearest taxi, with dynamic taxi updates as a spoken follow-up, and six behavioral topics (01).
  • Difficulty: the candidate spotted the Rotting Oranges pattern quickly; the dynamic follow-up was only discussed, not coded.
  • Practise first: Distance to the Nearest Taxi in a Grid

Coverage: one Google software engineer new grad candidate; report January 2026.

What came up

Topic Reports Last seen
Graphs and multi-source BFS 1 of 1 Jan 2026
Heaps and lazy deletion (design follow-up) 1 of 1 Jan 2026
Behavioral (conflict, workload, feedback) 1 of 1 Jan 2026

Questions we found

Algorithms / Data Structures

Question Reports Last seen
Distance to the Nearest Taxi in a Grid 1 Jan 2026

Behavioral (BQ)

Question Reports Last seen
A complex project with conflict between teammates (practice) 1 Jan 2026
Giving feedback and handling the reaction (practice) 1 Jan 2026
One person takes credit for the whole team (practice) 1 Jan 2026
More work than you could handle, and how you prioritized 1 Jan 2026
Helping another person 1 Jan 2026
Something you learned recently 1 Jan 2026

1 detailed candidate timeline

01: Multi-source BFS, then taxis that come and go

Report date: January 2026 · Role: Software Engineer, New Grad · Result: passed R1

Coding: distance to the nearest taxi

  1. A matrix holds several taxis. For every cell, return its shortest distance to any taxi: Distance to the Nearest Taxi in a Grid.
  2. The candidate saw the Rotting Oranges pattern and ran multi-source BFS from every taxi cell.
  3. Follow-up 1: could DFS work? The candidate explained BFS is the natural fit for unweighted shortest distances.
  4. Follow-up 2: taxis randomly go online and offline. The candidate proposed computing distances from each taxi and keeping per-cell candidates in a heap: adding a taxi adds records, removing one invalidates its records. After the interview they added a dictionary of online taxis with lazy deletion.
  5. Coding took about 30 minutes, then 15 minutes of conversation. The dynamic follow-up was talked through, not coded.

Behavioral (after two reschedules)

  1. A complex project and a conflict between teammates (practice).
  2. Helping another person.
  3. Having more work than you could handle, and choosing priorities.
  4. Something you learned recently.
  5. Giving feedback and how the other person reacted (practice).
  6. What you do when one person takes credit for the whole team (practice).

Common questions

What is the Google nearest taxi interview question?

For every grid cell, return the distance to the nearest taxi; report 01 solved it with multi-source BFS.

What follow-up does Google ask on the nearest taxi question?

In report 01: whether DFS works, and how to handle taxis going online and offline, answered with per-cell heaps and lazy deletion.

Keep practicing

Sources: Anywhere useful interview info can be found.

0 total reactions. Your reactions: none.
0 comments

Comments

0

No comments yet — be the first to share what you know.