Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
When one takes the stone, they not only get the points, but they take them away from the other player too.
Greedily choose the stone with the maximum aliceValues[i] + bobValues[i].