Following up on these two posts Generalised 3SUM (k-SUM) problem? https://people.csail.mit.edu/virgi/6.s078/lecture9.pdf
The claim is that k-sum in the general case can be solved in $O(n^{k/2}log(n))$
However, I don't follow this claim. The quote reads
For even 𝑘: Compute a sorted list 𝑆 of all sums of 𝑘/2 input elements. Check whether 𝑆 contains both some number 𝑥 and its negation −𝑥. The algorithm runs in 𝑂(𝑛𝑘/2log𝑛) time.
Compute a list of all sums of k/2 input elements. $O(n^{k/2})$
Sort this list: $O(n^{k/2}log(n^{k/2})=O(k/2*n^{k/2}log(n))$
Sandwich with two pointers to find s and -s. We have a valid answer iff the indices of elements that make up s and -s are nonoverlapping. However, because we have to check each instance of -s in order to validate whether the indices are non-overlapping, we end up having a computation that is $O(n^{k/2})$. This means that this step is $O(n^{k/2} * n^{k/2})$.
Am I misunderstanding an optimization?