Leetcode 521 Solution
This article provides solution to leetcode question 521 (longest-uncommon-subsequence-i)
Access this page by simply typing in "lcs 521" in your browser address bar if you have bunnylol configured.
Leetcode Question Link
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))