486. Predict the Winner

Posted vectors07

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了486. Predict the Winner相关的知识,希望对你有一定的参考价值。

Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then player 1 and so on. Each time a player picks a number, that number will not be available for the next player. This continues until all the scores have been chosen. The player with the maximum score wins.

Given an array of scores, predict whether player 1 is the winner. You can assume each player plays to maximize his score.

以上是关于486. Predict the Winner的主要内容,如果未能解决你的问题,请参考以下文章

LN : leetcode 486 Predict the Winner

leetcode-486-Predict the Winner

LC 486. Predict the Winner

Minimax-486. Predict the Winner

[Leetcode] DP-- 486. Predict the Winner

[leetcode]Minimax-486. Predict the Winner