Python | Leetcode Python题解之第521题最长特殊序列I
题目:
题解:
class Solution:def findLUSlength(self, a: str, b: str) -> int:return max(len(a), len(b)) if a != b else -1
题目:
题解:
class Solution:def findLUSlength(self, a: str, b: str) -> int:return max(len(a), len(b)) if a != b else -1