521-Longest-Uncommon-Subsequence-I
Sat 17 May 2025
https://leetcode.com/problems/longest-uncommon-subsequence-i
import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
def findLUSlength(self, a: str, b: str) -> int:
return -1 if a == b else max(len(a), len(b))
new Solution().findLUSlength()
Score: 5
Category: leetcode