LC.486. Predict the Winner

class Solution1(object): def PredictTheWinner(self, nums): """ :type nums: List[int] :rtype: bool """ self.dict = {} return self.DFS(0, len(nums)-1, nums) >= 0 #當前先手的人
相關文章
相關標籤/搜索