LC 48

Rotate Image

Medium · LC 1–100 + first-family candidate

arraymathmatrix
Free

Candidate solution routes

Primary

Grid Flood Fill

Free

Invariant: Every cell in the frontier has passed bounds and predicate checks and is already marked; expansion only considers its eligible neighbors.

candidate confidence: 0.270 · metadata_only

How to use this page

Read the statement and constraints first, then validate recognition signals, invariant, and complexity. Candidate score is not correctness evidence.