This pull request resolves #1803 by solving the problem 947. Most Stones Removed with Same Row or Column in C++. It treats the connection between stones as a disjoint union and uses the number of disjoint unions to count the maximum number of stones that can be removed.
This pull request resolves #1803 by solving the problem 947. Most Stones Removed with Same Row or Column in C++. It treats the connection between stones as a disjoint union and uses the number of disjoint unions to count the maximum number of stones that can be removed.