Given an N * N matrix consisting of k ones and the rest are 0s.Count the number of connected components that only contains zeros
N <= 1e9
K <= 1e5
Thanks!
Count no. of connected components in N * N matrix (N <= 1e9)
Given an N * N matrix consisting of k ones and the rest are 0s.Count the number of connected components that only contains zeros
N <= 1e9
K <= 1e5
Thanks!