In Salesforce, developers manage multiple types of licenses for different features. Each license type has a specific number of available slots, represented by an array licenseSlots, where licenseSlots[i] indicates the number of available slots for the ith license type.
The goal is to distribute these licenses into 2 or more equal groups, such that number of each license slots is divisible by total number of groups. To achieve this, the administrator can add more slots to any license type as needed.
Determine the minimum number of additional slots required to create at least 2 equal groups of licenses.
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.