Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.