討論串[閒聊] 每日LeetCode
共 719 篇文章
內容預覽:
1498. Number of Subsequences That Satisfy the Given Sum Condition. 給一個 integer array 和 target. 找出有幾個 subsequences s 滿足 min(s) + max(s) <= target 的條件.
(還有1621個字)
內容預覽:
https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/description/. 1456. Maximum Number of Vowels in a Substring of G
(還有1084個字)
內容預覽:
649. Dota2 Senate. 題目好長 簡單說就是有兩個陣營打架. 每回合所有玩家會照順序行動. 可以殺掉一個敵方陣營的玩家 這個敵方陣營的玩家可以是未行動/行動完的. 如果你這回合趁他還沒行動把他殺了他就不能行動了. 執行回合直到只剩一個陣營. 給你起始玩家順序 輸出每個玩家都做出最佳選擇
(還有1169個字)