Skip to content

Commit 9646f7f

Browse files
committedNov 16, 2015
.
1 parent 7d11c92 commit 9646f7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎Union-Find/WeightedQuickUnionUF.java renamed to ‎Union-Find/WeightedQuickUF.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
public class WeightedQuickUnionUF{
1+
public class WeightedQuickUF{
22
// Union - find algorith that uses extra space propotional to the graphs neumber
33
// of nodes but keeps union and find at O(logN).
44

55
int[] id;
66
int[] sz;
77

8-
public WeightedQuickUnionUF(int num_nodes) {
8+
public WeightedQuickUF(int num_nodes) {
99
id = new int[num_nodes];
1010
sz = new int[num_nodes];
1111
for (int i = 0; i < num_nodes; i++){
@@ -50,4 +50,4 @@ public int connected_comps(){
5050
count++;
5151
return count;
5252
}
53-
}
53+
}

0 commit comments

Comments
 (0)