Problem Summary
Suppose there are K packets with (x1, x2, x3,….xk) candies in them, where xi denotes the number of candies in the ith packet, then we define unfairness as
Given N packets, find the minimum unfairness when you pick K out of N packets.
Read More