Thuật toán CTDL Disjoint set - ~O(3N+5)

Thuật toán BFS duyệt đường đi BFS - O(N+M)

Nhận xét