Waymo logoWaymo
Coding·45 minMembers

Count Same-Color Squares in an Unbounded Grid

Members only

Phone screen on a 2-D grid whose cells carry color labels A / B / C / D. Count the number of axis-aligned squares formed by connected same-color cells. Grid has no a-priori size bound — the data struc...

SWE
grid
bfs
hashmap
union-find
medium
Frequency
Single report
Last asked
2026-05-06
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...