Re: [閒聊] 每日leetcode

看板Marginalman作者 (franchouchouISBEST)時間1年前 (2024/09/17 23:16), 編輯推噓2(201)
留言3則, 3人參與, 1年前最新討論串872/1548 (看更多)
兄弟們 就算浸水桶 咱們的手還是不能停下 一定要繼續刷題 繼續捲 水桶絕對不是不想刷題的理由 def uncommonFromSentences(self, s1: str, s2: str) -> List[str]: cnt = defaultdict(int) for w in s1.split(' '): cnt[w] += 1 for w in s2.split(' '): cnt[w] += 1 ans = [] for k, v in cnt.items(): if v==1: ans.append(k) return ans -- https://i.imgur.com/QaQrl0t.jpeg
https://i.imgur.com/yXpuYNA.jpeg
-- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.229.37.69 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1726586206.A.CA4.html

09/17 23:17, 1年前 , 1F
本帳沒被桶 對ㄚ
09/17 23:17, 1F

09/17 23:18, 1年前 , 2F
你辛苦了 對不起
09/17 23:18, 2F

09/17 23:20, 1年前 , 3F
大師
09/17 23:20, 3F
文章代碼(AID): #1cwPrUoa (Marginalman)
討論串 (同標題文章)
文章代碼(AID): #1cwPrUoa (Marginalman)