Skip to content

Commit 250ce7d

Browse files
committed
add docs now
1 parent f708280 commit 250ce7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/dsu/dsu_weighted.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
//! @code
33
//! dsu_weighted dsu(n);
44
//! dsu.join(u, v, w);
5-
//! // we now know a[u] == a[v] +
6-
//! wdflasndoasdinvoasdiinfasd
5+
//! // we now know a[u] = a[v] + w
6+
//! ll w = dsu.diff(u, v)
7+
//! // satisfies a[u] = a[v] + w based on prior joins
78
//! @endcode
89
//! @time O(n + q * \alpha(n))
910
//! @space O(n)

0 commit comments

Comments
 (0)