[LeetCode] 2558. Take Gifts From the Richest Pile

You are given an integer array gifts denoting the number of gifts in various piles. Every second, you do the following: Choose the pile with the maxim
posted @ 2023-10-28 06:05  CNoodle  阅读(10)  评论(0编辑  收藏  举报