CSES — Removal Game
I was read a solution of problem at here. But i don't know why minus dp[l+1][r] if first people choose a[l] and dp[l][r-1] if first people choose a[r]. Can else help me, thanks :>>
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion