目录

力扣205. 同构字符串

力扣205. Isomorphic Strings(同构字符串)

给定两个字符串 s 和 t,判断它们是否是同构的。

示例 1:

../posts/01_学习/87_LeetCode/0205_同构字符串/img/0205-1-description.png

输入:s = "egg", t = "add"
输出:true

提示:

  • 1 <= s.length <= 5 * 10^4
  • t.length == s.length
  • s 和 t 由任意有效的 ASCII 字符组成