Game Play Analysis II

Problem Id: 512 Difficulty: Easy


Intuition

Solution


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