Search
⌘K

Leetcode 840. Magic Squares In Grid

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.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.