精華區beta Marginalman 關於我們 聯絡資訊
又水了一題m 不過肥肥也是沒有寫很順 就這樣了:( def appendCharacters(self, s: str, t: str) -> int: i, j = 0, 0 for i in range(len(s)): if j<len(t) and s[i] == t[j]: j += 1 return len(t)-j -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.137.52.133 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1717422407.A.C95.html
DreaMaker167: 大師 06/03 21:46
sustainer123: 你是大師 06/03 21:47
SecondRun: 大師 06/03 21:47