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

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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy