All_Program_helper icon indicating copy to clipboard operation
All_Program_helper copied to clipboard

Candy Distribution

Open arushi-2298 opened this issue 2 years ago • 1 comments

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++

arushi-2298 avatar Oct 12 '22 17:10 arushi-2298

kindly assign this to me

Niraj-1729 avatar Oct 10 '23 17:10 Niraj-1729