Problems with tag O(log(max(t)) * logn)