Skip to content

Commit 1789b2d

Browse files
committed
Runtime: 110 ms (Top 51.77%) | Memory: 45.5 MB (Top 30.12%)
1 parent 705f09c commit 1789b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/N/Number of Provinces/Number of Provinces.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 110 ms (Top 51.77%) | Memory: 45.5 MB (Top 30.12%)
12
function DisjointSet (size) {
23
this.root = []
34
this.rank = []
@@ -46,4 +47,4 @@ var findCircleNum = function(isConnected) {
4647
}
4748
}
4849
return disjointSet.size
49-
};
50+
};

0 commit comments

Comments
 (0)