dynamic programming
-
LeetCode_1140.Stone Game II알고리즘/Leetcode 2020. 12. 18. 11:27
leetcode.com/problems/stone-game-ii/ Stone Game II - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Solution1. class Solution: def stoneGameII(self, a: List[int]) -> int: @lru_cache(maxsize=None) def minimax(idx, M, isAlex): if idx > len(piles) : return 0 if isAlex: # Alice`s Turn..