Rosetta Problems

Take Gifts From the Richest Pile

https://leetcode.com/problems/take-gifts-from-the-richest-pile