205-Isomorphic-Strings

Sat 17 May 2025

https://leetcode.com/problems/isomorphic-strings

import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
  def isIsomorphic(self, s: str, t: str) -> bool:
    return [*map(s.index, s)] == [*map(t.index, t)]
new Solution().isIsomorphic()

Score: 5

Category: leetcode