Number of Black Blocks at Square
Medium41.5% acceptance
This problem has 100.0% frequency at Square.
Problem Description
You are given two integers `m` and `n` representing the dimensions of a **0-indexed** `m x n` grid. You are also given a **0-indexed** 2D integer matrix `coordinates`, where `coordinates[i] = [x, y]` indicates that the cell with coordinates `[x, y]` is colored **black**. All cells in the grid that...
Read full problem and hintsTopics
Also asked at 7 companies
More Square Questions
Available Captures for RookEasyWord BreakMediumFalling SquaresHardCount Nice Pairs in an ArrayMediumRotating the BoxMedium
View all Square questions