Data Structure to find the connection between two objects
Dec 29, 2022 · 5 min read · Introduction Union find is a data structure that can be used to efficiently keep track of whether two objects are connected or not. It allows you to quickly merge two subsets into a single subset, and efficiently determine whether two elements belong...
Join discussion




