mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-11 21:10:58 +08:00
js版本笔误,稍作修改
This commit is contained in:
@ -128,7 +128,7 @@ var isIsomorphic = function(s, t) {
|
||||
if(!maps.has(s[i])){
|
||||
maps.set(s[i],t[j]);// maps保存 s[i] 到 t[j]的映射
|
||||
}
|
||||
if(!mapt.has(t[i])){
|
||||
if(!mapt.has(t[j])){
|
||||
mapt.set(t[j],s[i]);// mapt保存 t[j] 到 s[i]的映射
|
||||
}
|
||||
// 无法映射,返回 false
|
||||
|
Reference in New Issue
Block a user