1p3a_oj Question

Randomly Generate a Fully-Populated Grid with 4 Equal-Size Connected Components

Question Details

Problem Given an m × n grid, fill it completely with 4 tokens labeled 1, 2, 3, 4 such that: Every cell is assigned exactly one token (no empty cells). Each token must occupy the **same n

Full Details

🔒

Unlock all Waymo questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a waymo interview for a swe role during the coding round.

It covers the following topics: Matrix .

Topics