From 6158db21aac6409775a20ffb117ab4c8a39801e7 Mon Sep 17 00:00:00 2001 From: jerryfishcode <91447694+jerryfishcode@users.noreply.github.com> Date: Mon, 27 Sep 2021 20:57:26 +0800 Subject: [PATCH] =?UTF-8?q?js=E7=89=88=E6=9C=AC=E7=AC=94=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E7=A8=8D=E4=BD=9C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0205.同构字符串.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems/0205.同构字符串.md b/problems/0205.同构字符串.md index 1b4d0e32..478b5290 100644 --- a/problems/0205.同构字符串.md +++ b/problems/0205.同构字符串.md @@ -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