Problems with tag O(n * klogk)