Skip to content

Commit 6dd4f90

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

1818
private static List<Integer> Unneeded = new ArrayList<Integer>();
19-
19+
2020
private static List<List<String>> originalAccounts;
2121
public static List<List<String>> mergeAccounts(List<List<String>> inputAccounts){
2222
originalAccounts = inputAccounts;
@@ -29,8 +29,8 @@ public static List<List<String>> mergeAccounts(List<List<String>> inputAccounts)
2929

3030

3131
}
32-
}
33-
32+
}
33+
3434
}
3535
removeUnneeded();
3636
return originalAccounts;

0 commit comments

Comments
 (0)