Re: [闲聊] 每日leetcode

楼主: DJYOMIYAHINA (通通打死)   2025-10-20 22:28:28
非常好题目
很适合当作leetcode入门题
一二三四五
def finalValueAfterOperations(self, operations: List[str]) -> int:
rets = 0
for op in operations:
if op=='++X' or op=='X++':
rets += 1
else:
rets -= 1
return rets
作者: oin1104 (是oin的说)   2025-10-20 22:34:00
非常好题目

Links booklink

Contact Us: admin [ a t ] ucptt.com