討論串[閒聊] 每日LeetCode
共 719 篇文章

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Rushia (みけねこ的鼻屎)時間2年前 (2023/12/04 18:26), 編輯資訊
0
0
1
內容預覽:
https://leetcode.com/problems/largest-3-same-digit-number-in-string/description2264. Largest 3-Same-Digit Number in String. 給你一個只包含數字的字串,返回最大的三個相鄰相同數字
(還有599個字)

推噓1(1推 0噓 3→)留言4則,0人參與, 2年前最新作者ZooseWu (動物園 公告)時間2年前 (2023/12/03 10:23), 編輯資訊
0
0
0
內容預覽:
1266. Minimum Time Visiting All Points. 給你一個座標陣列. 依序走完所有地點. 每一個單位的時間你可以直的(1)、橫的(1)、斜的走(2^1/2)一步. 回傳最短需要花費的時間. Input: points = [[1,1],[3,4],[-1,0]]. Ou
(還有645個字)

推噓2(2推 0噓 0→)留言2則,0人參與, 2年前最新作者ZooseWu (動物園 公告)時間2年前 (2023/12/02 15:10), 編輯資訊
0
0
0
內容預覽:
1160. Find Words That Can Be Formed by Characters. 給你一個字串chars. 還有一堆字串陣列words. 檢查words有多少字串可以由chars組合起來. 回傳所有可以組合起來的字串長度總和. Input: words = ["cat","bt"
(還有885個字)

推噓1(1推 0噓 4→)留言5則,0人參與, 2年前最新作者yam276 (史萊哲林的優等生)時間2年前 (2023/12/01 10:44), 編輯資訊
0
0
0
內容預覽:
Rust可以直接用concat解:. impl Solution {. pub fn array_strings_are_equal(word1: Vec<String>, word2: Vec<String>). -> bool {. word1.concat() == word2.concat(
(還有570個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 2年前最新作者ZooseWu (動物園 公告)時間2年前 (2023/12/01 09:52), 編輯資訊
0
0
0
內容預覽:
1662. Check If Two String Arrays are Equivalent. 給你兩個字串陣列. 回傳兩個陣列是否表示相同字串. 把陣列元素按順序連接在一起之後就是他的字串. Input: word1 = ["ab", "c"], word2 = ["a", "bc"]. Out
(還有326個字)