Skip to content

Commit c68f0e2

Browse files
Update valid-anagram.java
1 parent 31f7aff commit c68f0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Java/valid-anagram.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ else if(s.isEmpty()){ // empty string check
7272
// Time: O(n) | Space: O(1) [because the table's size stays constant no matter how large n is]
7373
public boolean isAnagram(String s, String t) {
7474

75-
int [] charCount = new int[128]; // take 256 in case of unicode characters.
75+
int [] charCount = new int[128];
7676

7777
for (int i=0; i<s.length(); i++){
7878
charCount[s.charAt(i)]++;

0 commit comments

Comments
 (0)