討論串[閒聊] 每日leetcode
共 1548 篇文章
內容預覽:
空窗期真的很恐怖. 我已經不懂程式了哀. 連easy都要WA幾次 吐了. def getLongestSubsequence(self, words, groups):. """. :type words: List[str]. :type groups: List[int]. :rtype: Li
(還有152個字)
內容預覽:
https://leetcode.com/problems/total-characters-in-string-after-transformations-i3335. Total Characters in String After Transformations I. 給你一個字串s和一個數字
(還有823個字)
內容預覽:
2094. Finding 3-Digit Even Numbers. https://leetcode.com/problems/finding-3-digit-even-numbers/description. 給定一個數組,. 返回用數組中的數字組成偶數的三位數整數的所有組合,. 數字組合不含
(還有901個字)
內容預覽:
1550. Three Consecutive Odds. https://leetcode.com/problems/three-consecutive-odds/. 題意:陣列遇到連續三個奇數就回傳true. 思路:簡單題目. 如果只是要簡單解的話就. impl Solution {. pub
(還有710個字)
內容預覽:
有三個情況:. case1: 都沒有0. case2: 一邊沒有0. case3: 都有0. 處理:. case1: 判斷是否相等就好. case2: 沒0的要比較大. case3: nums1 跟 nums2 的 (總和+零的數量) 取較大者. Code:. impl Solution {. pu
(還有889個字)