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

Candy Distribution #756

Open
arushi-2298 opened this issue Oct 12, 2022 · 1 comment
Open

Candy Distribution #756

arushi-2298 opened this issue Oct 12, 2022 · 1 comment
Assignees

Comments

@arushi-2298
Copy link
Contributor

Given an array A[ ] of positive integers of size N, where each value represents the number of candies in a packet. Each packet can have a variable number of candies. There are M students, the task is to distribute candy packet among M students such that :

  1. Each student gets exactly one packet.
  2. The difference between maximum number of candies given to a student and minimum number of candies given to a student is minimum.

Kindly assign me do in c++

@Niraj-1729
Copy link

kindly assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants