Problems with tag O(sqrt(c) * logc)