討論串[閒聊] 每日leetcode
共 1548 篇文章

推噓2(2推 0噓 6→)留言8則,0人參與, 6月前最新作者DJYOMIYAHINA (通通打死)時間6月前 (2025/05/15 11:59), 編輯資訊
0
0
0
內容預覽:
空窗期真的很恐怖. 我已經不懂程式了哀. 連easy都要WA幾次 吐了. def getLongestSubsequence(self, words, groups):. """. :type words: List[str]. :type groups: List[int]. :rtype: Li
(還有152個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 6月前最新作者Rushia (早瀬ユウカの体操服 )時間6月前 (2025/05/13 13:39), 編輯資訊
0
1
1
內容預覽:
https://leetcode.com/problems/total-characters-in-string-after-transformations-i3335. Total Characters in String After Transformations I. 給你一個字串s和一個數字
(還有823個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 6月前最新作者leafff (leaf)時間6月前 (2025/05/12 22:49), 編輯資訊
0
1
1
內容預覽:
2094. Finding 3-Digit Even Numbers. https://leetcode.com/problems/finding-3-digit-even-numbers/description. 給定一個數組,. 返回用數組中的數字組成偶數的三位數整數的所有組合,. 數字組合不含
(還有901個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 6月前最新作者yam276 (史萊哲林的優等生)時間6月前 (2025/05/11 15:53), 編輯資訊
0
0
1
內容預覽:
1550. Three Consecutive Odds. https://leetcode.com/problems/three-consecutive-odds/. 題意:陣列遇到連續三個奇數就回傳true. 思路:簡單題目. 如果只是要簡單解的話就. impl Solution {. pub
(還有710個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者yam276 (史萊哲林的優等生)時間7月前 (2025/05/11 02:03), 7月前編輯資訊
0
0
1
內容預覽:
有三個情況:. case1: 都沒有0. case2: 一邊沒有0. case3: 都有0. 處理:. case1: 判斷是否相等就好. case2: 沒0的要比較大. case3: nums1 跟 nums2 的 (總和+零的數量) 取較大者. Code:. impl Solution {. pu
(還有889個字)