Leetcode 521 Solution

This article provides solution to leetcode question 521 (longest-uncommon-subsequence-i)

https://leetcode.com/problems/longest-uncommon-subsequence-i

Solution

class Solution: def findLUSlength(self, a: str, b: str) -> int: if a == b: return -1 return max(len(a), len(b))