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

Thuật toán Kadane (mở rộng và có truy vấn) - O(T*N)

Nhận xét