Re: [闲聊] 每日leetcode

楼主: DJYOMIYAHINA (通通打死)   2024-07-10 08:29:50
今天本肥肥也是个称职的ez守门员
准备出门当帕鲁
def minOperations(self, logs: List[str]) -> int:
base = 0
for log in logs:
if log == "../":
base = max(base-1, 0)
elif log != "./":
base += 1
return base
作者: sustainer123 (caster)   2024-07-10 08:34:00
好爽 现在才出门
作者: rainkaras (rainkaras)   2024-07-10 08:44:00
每天通勤刷题的大师

Links booklink

Contact Us: admin [ a t ] ucptt.com