Available question text
Count how many 3x3 subgrids of the given grid are magic squares — i.e., each contains the digits 1 through 9 exactly once and every row, column, and both diagonals have the same sum. Grid dimensions are up to 10x10 and cell values range up to 15.
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 840. Magic Squares In Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source