Read More257 views2 minute read LeetCode547. Number of ProvincesByWayne15/08/2023 The idea to solve this problem is to group connected nodes. The first thought is that we can use Union Find to group nodes. Read More 0 0 0 0
Read More293 views1 minute read AlgorithmUnion FindByWayne12/08/2023 Union Find data structure is also known as disjoint set data structure. It is a data structure which stores a collection of disjoint sets. It provides two operations, one for merging two sets and one for finding the set with a given element. Read More 0 0 0 0