Halloween Sale
Unlock all premium questions for over 30% off
Two Car Destinations
Medium
Question
Two cars, "a" and "b", sit on a map drawn as an N x M grid. Time advances in steps, and during a step each car may shift one cell in any of the four directions (up, down, left, right) or simply wait. Cells are marked as follows:
...
Asked at:Google
More Google interview questions
- Rearrange House Numbers in Neighborhoodsmedium
- Count Distinct Elements in Each Windoweasy
- Merge Two Sorted Interval Listsmedium
- Fill Equation with Missing Operatorshard
- Cake Order Completion Counteasy
- Find Minimum Increment Moveseasy
- Find Greatest Digit Tripleeasy
- Find Shortest Tile Moveshard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.