First Solar Panel Placement in a Binary Grid

Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Oct 31, 2025

Given a 2-D binary grid and a solar panel height / width, return the first coordinate where the panel can fit. `0` means empty, `1` means blocked; the round asks for brute force, implementation, tests, and optimization.

Loading the problem…