1568. Minimum Number of Days to Disconnect Island
Description
**Input:** grid = [[0,1,1,0],[0,1,1,0],[0,0,0,0]]
**Output:** 2
**Explanation:** We need at least 2 days to get a disconnected grid.
Change land grid[1][1] and grid[0][2] to water and get 2 disconnected island.**Input:** grid = [[1,1]]
**Output:** 2
**Explanation:** Grid of full water is also disconnected ([[1,1]] -> [[0,0]]), 0 islands.ac
Previous1567. Maximum Length of Subarray With Positive ProductNext1569. Number of Ways to Reorder Array to Get Same BST
Last updated
