AllAlgorithms / cpp

Implementation of All ▲lgorithms in C++ Programming Language
https://github.com/AllAlgorithms/cpp
MIT License
690 stars 326 forks source link

Create disjointSet.cpp #340

Closed tyadav4268 closed 1 year ago

tyadav4268 commented 3 years ago

Program to show the implementation of Disjoint set and to find if two nodes are in same component or not.

I am creating a pull request for...