Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3212. Count Submatrices With Equal Frequency of X and Y
Count the number of axis-aligned submatrices in a 2D grid of 'X', 'Y', and '.' that contain at least one 'X' and have an equal number of 'X' and 'Y' ('.' cells are ignored); grid sizes can be up to 1000×1000 so an efficient solution is required.
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.