题意有点绕,水题
class Solution(object):
def findLUSlength(self, a, b):
"""
:type a: str
:type b: str
:rtype: int
"""
if a == b: return -1
return max(len(a), len(b))
题意有点绕,水题
class Solution(object):
def findLUSlength(self, a, b):
"""
:type a: str
:type b: str
:rtype: int
"""
if a == b: return -1
return max(len(a), len(b))