Array
2542. Maximum Subsequence Score
Given nums1 and nums2 of length n and a number k, choose a subset of k indices; its score = (sum of the chosen nums1) × (minimum of the chosen nums2). Maximize the score. Fixing the minimum nums2 in…
Loading…
Given nums1 and nums2 of length n and a number k, choose a subset of k indices; its score = (sum of the chosen nums1) × (minimum of the chosen nums2). Maximize the score. Fixing the minimum nums2 in…
Loading…