8000 refactor 242 · pcm5566/Leetcode@be4cabc · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit be4cabc

Browse files
refactor 242
1 parent 7b5bd29 commit be4cabc

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_242.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
public class _242 {
2121

22-
public static class SortingSolution {
< 7E09 /td>22+
public static class Solution1 {
2323
public boolean isAnagram(String s, String t) {
2424
char[] schar = s.toCharArray();
2525
char[] tchar = t.toCharArray();
@@ -29,7 +29,7 @@ public boolean isAnagram(String s, String t) {
2929
}
3030
}
3131

32-
public static class CountingSolution {
32+
public static class Solution2 {
3333
public boolean isAnagram(String s, String t) {
3434
if (s == null || t == null || s.length() != t.length()) {
3535
return false;

0 commit comments

Comments
 (0)
0