There are two mice and
If the first mouse eats the reward1[i] points. If the second mouse eats the reward2[i] points.
Given two integer arrays reward1 and reward2 of length k, return the maximum total points the mice can achieve if the first mouse eats exactly k types of cheese and the second mouse eats the remaining
Constraints:
reward1.length reward2.length
reward1[i], reward2[i]
k
There are two mice and
If the first mouse eats the reward1[i] points. If the second mouse eats the reward2[i] points.
Given two integer arrays reward1 and reward2 of length k, return the maximum total points the mice can achieve if the first mouse eats exactly k types of cheese and the second mouse eats the remaining
Constraints:
reward1.length reward2.length
reward1[i], reward2[i]
k