Problem 2386 · Hard

Find the K-Sum of an Array

Subtract the k-th smallest subset sum of absolute values from the sum of positives, found with a min heap.

Open the interactive visualisation