abhaysinghr516 / Algorithms

This repository contains a collection of various algorithms implemented in C, C++, Go, Java, JavaScript, and Python. The goal of this repository is to help fellow programmers learn and understand algorithms more effectively by providing code examples and explanations in multiple programming languages.
MIT License
9 stars 26 forks source link

added python implementation of kruskal's algo #93

Closed samikshakale closed 10 months ago

samikshakale commented 10 months ago

Added Kruskal's Algorithm(Python).py file to the Kruskal's Algorithm folder This file implements Kruskal's algorithm using Union-Find in python. It includes 1 test case at the end commented out and has been thoroughly tested for edge cases. In addition, it handles the case when the input graph is not connected (i.e. MST cannot be found).

abhaysinghr516 commented 10 months ago

75