July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
11
:
19
:
36
Back to Dashboard
Covered Service Zones
Medium
You are given two binary m x n matrices: coverage and demand.
A cell in demand is active if its value is 1. Active cells that are 4-directionally connected form a demand cluster. A demand cluster is fully covered if every cell in the cluster also has coverage[row][col] == 1.
...