project/算法/learn/体系/19.暴力递归到动态规划(一).md

10 lines
386 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

记忆化搜索
尝试策略,状态转移
自然智慧
### 问题1
给定一个整型数组arr代表数值不同的纸牌排成一条线玩家A和玩家B依次拿走每张纸牌规定玩家A先拿玩家B后拿但是每个玩家每次只能拿走最左边或者最右边的纸牌玩家A和玩家B都绝顶聪明请返回最后获胜者的分数。[50,100,20,10]