Select exactly k indices to maximize sum of a times max of b.
Unlock detailed company stats for this questionUpgrade
Given two arrays a and b and an integer k, select exactly k indices. The score is sum(selected elements from a) * max(selected elements from b). Maximize the score.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
