You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enumerate the engineer that has the minimum efficiency in the team. When that engineer is fixed, find those (at most) k engineers that have top speed.
This algorithm can be implemented efficiently by (i) a pre-sorting on efficiency in decresing order and (ii) using a heap or BST to maintain top-k speed.