LeetCode Solution, Medium, 130. Surrounded Regions
130. Surrounded Regions
題目敘述
Given an m x n matrix board containing 'X' and 'O', capture all regions that are 4-directionally surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region.
Example 1:
Input: board =...
blog.taiwolskit.com8 min read