Problems with tag O(n * sqrt(k) * logk)