Problems with tag O(m * logn)