Write an algorithm to distribute breads from different piles across a hungry crowd minimizing the difference between bread piles.
Sigiloso
If the bread piles are of same size don't give out any bread since the difference between them is 0. Interviewer wanted to see use of Java priority queues.