Code Golf: Shortest code to find a weighted median?

后端 未结 7 610
眼角桃花
眼角桃花 2021-01-03 08:23

My try at code golfing.

The problem of finding the minimum value of ∑W_i*|X-X_i| reduces to finding the weighted median of a list of x[i] with weights <

7条回答
提交回复
热议问题