Similarly, if player A picks position j, player A will earn nums[j] - dp[i][j - 1] more score than player B after they pick up all numbers.
Hi odin, thanks for your answers. I have a quick question. Why it is "nums[j] - dp[i][j - 1]"? Is it possible to be "nums[j]+dp[i][j-1]" if A plays at first during [i, j-1]? Your reply will be appreciated very much!