All_Program_helper
All_Program_helper copied to clipboard
Candy Distribution
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 :
- Each student gets exactly one packet.
- 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++
kindly assign this to me