Developer Associate Interview Questions

4,565 developer associate interview questions shared by candidates

Given an array of n integers where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are m students, the task is to distribute chocolate packets such that: Each student gets one packet. The difference between the number of chocolates in the packet with maximum chocolates and packet with minimum chocolates given to the students is minimum.
avatar

Associate Developer

Interviewed at SAP

4.2
Jun 19, 2021

Given an array of n integers where each value represents the number of chocolates in a packet. Each packet can have a variable number of chocolates. There are m students, the task is to distribute chocolate packets such that: Each student gets one packet. The difference between the number of chocolates in the packet with maximum chocolates and packet with minimum chocolates given to the students is minimum.

Viewing 651 - 660 interview questions

Glassdoor has 4,565 interview questions and reports from Developer associate interviews. Prepare for your interview. Get hired. Love your job.