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

Thuật toán Sparse Table (truy vấn tổng L-R) - O(NlogN + log2(N))

Nhận xét