Re: [闲聊] 每日leetcode

楼主: DJYOSHITAKA (Evans)   2024-06-03 21:46:45
又水了一题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
作者: DreaMaker167 (dreamaker)   2023-06-03 21:46:00
大师
作者: sustainer123 (caster)   2024-06-03 21:47:00
你是大师
作者: SecondRun (雨夜琴声)   2024-06-03 21:47:00
大师

Links booklink

Contact Us: admin [ a t ] ucptt.com