threeal / leetspace

A dedicated workspace and archive for my LeetCode submissions
https://leetcode.com/threeal
MIT License
1 stars 1 forks source link

Solve Problem 947. Most Stones Removed with Same Row or Column #1804

Closed threeal closed 1 week ago

threeal commented 2 weeks ago

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.