python one line


  • 0
    T
    def isIsomorphic(self, s, t):
        """
        :type s: str
        :type t: str
        :rtype: bool
        """
        return map(s.find,s) == map(t.find,t)

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.