LeetCode 1423 Maximum Points You Can Obtain from Cards (前缀和)
There are several cardsarranged in a row, and each card has an associated number of points. The points are given in the integer arraycardPoints.In one step, you can take one card from the beginning or from the end of the row. You have to take exactlyk...