Data Structure to find the connection between two objectsUnion Find algorithm tells you whether objects are connected or not with O(N) as worst complexity.Dec 29, 2022·5 min read·32