We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d11c92 commit 9646f7fCopy full SHA for 9646f7f
Union-Find/WeightedQuickUnionUF.java renamed to Union-Find/WeightedQuickUF.java
@@ -1,11 +1,11 @@
1
-public class WeightedQuickUnionUF{
+public class WeightedQuickUF{
2
// Union - find algorith that uses extra space propotional to the graphs neumber
3
// of nodes but keeps union and find at O(logN).
4
5
int[] id;
6
int[] sz;
7
8
- public WeightedQuickUnionUF(int num_nodes) {
+ public WeightedQuickUF(int num_nodes) {
9
id = new int[num_nodes];
10
sz = new int[num_nodes];
11
for (int i = 0; i < num_nodes; i++){
@@ -50,4 +50,4 @@ public int connected_comps(){
50
count++;
51
return count;
52
}
53
-}
+}
0 commit comments