author name added and minor documentation fixed

This commit is contained in:
Sagar Pandya 2021-01-14 20:10:17 +05:30
parent 46b5788298
commit 796c44f993

View File

@ -10,6 +10,9 @@
* 1. Depth first search
* 2. Disjoint union
* 1st option is inefficient, Disjoint union is the most optimal way to find this.
*
* @author Unknown author
* @author [Sagar Pandya](https://github.com/sagarpandyansit)
*/
#include <iostream> /// for IO operations
#include <set> /// for std::set
@ -81,6 +84,7 @@ uint32_t no_of_connected_components() {
}
} // namespace disjoint_union
} // namespace graph
/**
* @brief Test Implementations
* @returns void
@ -100,6 +104,7 @@ static void test() {
}
std::cout << dsu::no_of_connected_components() << std::endl;
}
/**
* @brief Main function
* @returns 0 on exit