Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve Problem 2558. Take Gifts From the Richest Pile #2259

Open
threeal opened this issue Dec 12, 2024 · 0 comments · May be fixed by #2260
Open

Solve Problem 2558. Take Gifts From the Richest Pile #2259

threeal opened this issue Dec 12, 2024 · 0 comments · May be fixed by #2260
Assignees
Milestone

Comments

@threeal
Copy link
Owner

threeal commented Dec 12, 2024

This issue suggests solving the problem 2558. Take Gifts From the Richest Pile. To achieve this, we can use a priority queue to store the piles and process them for the specified number of times, then return the sum of the piles left in the priority queue.

@threeal threeal self-assigned this Dec 12, 2024
@threeal threeal added this to the December 2024 milestone Dec 12, 2024
@threeal threeal removed the solve-c label Dec 12, 2024
@threeal threeal linked a pull request Dec 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant