Neetcode Spaced Repetition System

130. Surrounded Regions

Medium

Graphs

Optimal Complexity

Time

O(m * n)

Space

O(m * n)

Start First Attempt