Max Skill Sum of a Balanced Team
Asked at Amazon · Coding Questions · Difficulty: Medium
Employees have a `skill` value and an `expertise` flag (`0` = marketing expert, `1` = developer). Choose a contiguous range of employees with an **equal** number of experts and developers, maximizing the total skill. Return that maximum (an empty team scores `0`).
Loading the problem…