로딩
요청 처리 중입니다...

JAVA_Isomorphic Strings_LeetCode 205

 JAVA_Isomorphic Strings_LeetCode 205

JAVA_Isomorphic Strings_LeetCode 205 풀이 class Solution { public boolean isIsomorphic(String s, String t) { if(s.length() != t.length()) return false; int[] map1 = new int[256]; int[] map2 = new int[256]; for(int idx = 0; idx < s.length(); idx++){ if(map1[s.charAt(idx)] !

= map2[t.charAt(idx)]) return false; map1[s.charAt(idx)] = idx + 1; map2[t.charAt(idx)] = idx + 1; } return true; } } * 출처 Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and ge...

# IsomorphicStrings_LeetCode205 # JAVA # JAVA_IsomorphicStrings # JAVA_IsomorphicStrings_LeetCode205 # JAVA_LeetCode205