Available question text
Given an odd n x n grid with values 0–2, find the minimum number of single-cell changes needed so that all cells on the letter Y (the two diagonals to the center plus the central vertical down to the bottom) share one value and all other cells share a different value. This reduces to counting value frequencies among Y and non‑Y cells and choosing two distinct target values that maximize preserved cells.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3071. Minimum Operations to Write the Letter Y on a Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source