You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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++
The text was updated successfully, but these errors were encountered:
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 :
Kindly assign me do in c++
The text was updated successfully, but these errors were encountered: