petingo.me/cp/
今天ㄉ內容
並查集
Union (3, 5)
{1}, {2}, {3, 5}, {4}, {6}
Union (4, 6)
{1}, {2}, {3, 5}, {4, 6}
Union (2, 5)
{1}, {2, 3, 5}, {4, 6}
Union (6, 5)
{1}, {2, 3, 4, 5, 6}
{1}, {2}, {3}, {4}, {5}, {6}
并查集
By Petingo
Taiwan