Coding · Medium · ProNumber of connected components using Union-FindCodingGraphsUnion-FindGraphSenior