Copy a Sub-Rectangle Within a Grid In Place
Asked at Waymo · Coding Questions · Difficulty: Medium · Last asked Jan 23, 2026
Copy a rectangular block of cells inside a 2-D array to another position of the same array, in place. The source block and the destination block may overlap, so the order in which cells are copied matters: a cell must be read before a later write can overwrite it.
Loading the problem…
More Waymo interview questions
- ML System Design: Choose Passenger Drop-off Location
- ML Coding: Debug a NumPy / Tensor Framework
- L5+ Behavioral: Policy vs Efficiency Trade-offs & Leadership
- Project Deep-Dive + ML Fundamentals Discussion
- Pickup Request Scheduler (OO Design)
- Build an Arithmetic Expression to Reach a Target