521. Longest Uncommon Subsequence I
class Solution(object):
def findLUSlength(self, a, b):
"""
:type a: str
:type b: str
:rtype: int
"""
if len(a) == len(b):
if a <> b:
return len(a)
else:
return -1
elif len(a) > len(b):
return len(a)
else:
return len(b)

浙公网安备 33010602011771号