Surrounded Regions 解答-CSDN博客

网站介绍:文章浏览阅读62次。QuestionGiven a 2D board containing'X'and'O'(the letter O), capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounded region.Example:...