This solution is based on a disjoint set union built on a graph with one node for every vertex of the grid.
確定! 回上一頁