Skip to content

Commit 517b25e

Browse files
update 249
1 parent 9979643 commit 517b25e

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

Diff for: src/main/java/com/fishercoder/solutions/_249.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public List<List<String>> groupStrings(String[] strings) {
1717
for (String word : strings) {
1818
//calculate the representative/key that's unique for the entire group
1919
//i.e. if the two string belong to the same group, after shifting n times, they all will end up having the same key
20-
// abc -> 2021
21-
// xyz -> 2021
22-
// acef -> 212324
20+
// abc -> "2021"
21+
// xyz -> "2021"
22+
// acef -> "212324"
2323
String key = "";
2424
int offset = word.charAt(0) - 'a';
2525
for (int i = 1; i < word.length(); i++) {

0 commit comments

Comments
 (0)