Search⌘ K
AI Features

Maximum Performance of a Team

Maximum Performance of a Team provides speed and efficiency arrays for engineers. Select at most k engineers to maximize total speed times minimum efficiency, returning the result modulo a large prime.

Statement

You are given two integers, n and k, and two integer arrays, speed and efficiency, both of length ...