Skip to content

Commit 6b38e8e

Browse files
add MergeAccounts utility for merging user accounts by shared emails
1 parent 6dd4f90 commit 6b38e8e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/thealgorithms/graph/MergeAccounts.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class MergeAccounts {
1616
*/
1717

1818
private static List<Integer> Unneeded = new ArrayList<Integer>();
19-
2019
private static List<List<String>> originalAccounts;
2120
public static List<List<String>> mergeAccounts(List<List<String>> inputAccounts){
2221
originalAccounts = inputAccounts;
@@ -29,8 +28,8 @@ public static List<List<String>> mergeAccounts(List<List<String>> inputAccounts)
2928

3029

3130
}
32-
}
33-
31+
}
32+
3433
}
3534
removeUnneeded();
3635
return originalAccounts;

0 commit comments

Comments
 (0)