Most Stones Removed with Same Row or Column at Tekion
Medium62.7% acceptance
This problem has 75.0% frequency at Tekion.
Problem Description
On a 2D plane, we place `n` stones at some integer coordinate points. Each coordinate point may have at most one stone. A stone can be removed if it shares either **the same row or the same column** as another stone that has not been removed. Given an array `stones` of length `n` where `stones[i]...
Read full problem and hints