Alice and Bob are competing in an archery competition. The target consists of numArrows arrows to shoot.
Alice has already shot all of her arrows. You are given an integer numArrows and an integer array aliceArrows of length aliceArrows[i] denotes the number of arrows Alice shot into the scoring section
Bob now wants to shoot his numArrows arrows to maximize his total points based on the following rules:
For each scoring section bobArrows[k] aliceArrows[k]), Bob is awarded
Otherwise, Bob earns
Return an integer array bobArrows of size bobArrows must be equal to numArrows. If there are multiple valid configurations that yield the maximum score, return any one of them.
Constraints:
numArrows
aliceArrows.length bobArrows.length
aliceArrows[i], bobArrows[i] numArrows
aliceArrows[i] numArrows
Alice and Bob are competing in an archery competition. The target consists of numArrows arrows to shoot.
Alice has already shot all of her arrows. You are given an integer numArrows and an integer array aliceArrows of length aliceArrows[i] denotes the number of arrows Alice shot into the scoring section
Bob now wants to shoot his numArrows arrows to maximize his total points based on the following rules:
For each scoring section bobArrows[k] aliceArrows[k]), Bob is awarded
Otherwise, Bob earns
Return an integer array bobArrows of size bobArrows must be equal to numArrows. If there are multiple valid configurations that yield the maximum score, return any one of them.
Constraints:
numArrows
aliceArrows.length bobArrows.length
aliceArrows[i], bobArrows[i] numArrows
aliceArrows[i] numArrows