Number of Closed Islands

Solution Code

Time Complexity

O(m * n) ⏱️

Space Complexity

O(m * n) 💾