摘要: Q:Given a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that surrounded region .For example,X X X XX O O XX X O XX O X XAfter running your function, the board should be:X X X XX X X XX X 阅读全文
posted @ 2013-09-22 23:00 summer_zhou 阅读(155) 评论(0) 推荐(1)