Company: Amazon_24sep
Difficulty: medium
Determine Minimum Storage Problem Description At a cloud software marketplace, a logistics specialist needs to split n software applications across k different teams as fairly and compactly as possible. Each application has a memory requirement, denoted by appMemory[i] for 1 <= i <= n . To make the rollout simpler, the specialist plans to order k identical memory cards, one per team. Every team receives at most 2 applications, every team receives at least one, and no application is left unassigned. Since downloading oversized application bundles directly isn't practical, the specialist instead wants to know the smallest storage capacity the memory cards need to have. A memory card can hold its assigned applications only if the sum of their memory requirements does not exceed that capacity. What is the minimum storage capacity of memory cards that you must order to be able to distribute these applications to the teams? Function Description Complete the function determineMinStorage