You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_205.java
+3-18
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,11 @@
2
2
3
3
importjava.util.HashMap;
4
4
importjava.util.Map;
5
-
/**
6
-
* 205. Isomorphic Strings
7
-
*
8
-
* Given two strings s and t, determine if they are isomorphic.
9
5
10
-
Two strings are isomorphic if the characters in s can be replaced to get t.
11
-
12
-
All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character but a character may map to itself.
13
-
14
-
For example,
15
-
Given "egg", "add", return true.
16
-
17
-
Given "foo", "bar", return false.
18
-
19
-
Given "paper", "title", return true.
20
-
21
-
Note:
22
-
You may assume both s and t have the same length.*/
23
6
publicclass_205 {
24
-
/**space should be O(1) since it only has alphabetic letters which are capped at 52.*/
7
+
/**
8
+
* space should be O(1) since it only has alphabetic letters which are capped at 52.
0 commit comments