/Maximize-gains

There are N bags in the canteen. Each bag contains Ai eggs. You can order K times. For each order, you are asked to pick a bag and that’s the number of eggs you have for that order. There is a hen in the canteen who fills the picked bag with floor(Ai/2) eggs. You want to maximize your protein intake. Your task is to find the maximum number of eggs you can have with K orders

Primary LanguageJava

No issues in this repository yet.