Skip to content

Commit 20b5e9c

Browse files
refactor 609
1 parent d5db4c5 commit 20b5e9c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If the file content is very large (GB level), how will you modify your solution?
5353
public class _609 {
5454

5555
public List<List<String>> findDuplicate(String[] paths) {
56-
Map<String, List<String>> map = new HashMap<>();//key is the file, value is the list of directories that has this file/content
56+
Map<String, List<String>> map = new HashMap<>();//key is the file content, value is the list of directories that has this directory/file
5757
for (String path : paths) {
5858
String[] dirAndFiles = path.split(" ");
5959
for (int i = 1; i < dirAndFiles.length; i++) {

src/test/java/com/fishercoder/_609Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
import java.util.List;
99

10-
/**
11-
* Created by stevesun on 6/4/17.
12-
*/
1310
public class _609Test {
1411
private static _609 test;
1512
private static String[] paths;

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