LC-Longest Uncommon Subsequence I
来源:互联网 发布:股市和楼市的关系 知乎 编辑:程序博客网 时间:2024/05/19 20:37
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))Sol = Solution()print Sol.findLUSlength("aba","cadc")
0, 无聊的题目
1,1330个踩不是白来的
2,稍微学习了一下max函数的用法,呵
阅读全文