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 1792. Maximum Average Pass Ratio #2269

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

Solve Problem 1792. Maximum Average Pass Ratio #2269

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

Comments

@threeal
Copy link
Owner

threeal commented Dec 15, 2024

This issue suggests addressing the problem 1792. Maximum Average Pass Ratio. To solve it, we can store the pair of students who passed an exam and the total number of students in each class in a priority queue. Using a greedy approach, we repeatedly pop and push the queue for each additional student added to a class. The goal is to output the maximum average pass ratio after distributing all students among the classes.

@threeal threeal self-assigned this Dec 15, 2024
@threeal threeal added this to the December 2024 milestone Dec 15, 2024
@threeal threeal linked a pull request Dec 15, 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