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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.