Python icon indicating copy to clipboard operation
Python copied to clipboard

All Algorithms implemented in Python

Results 1352 Python issues
Sort by recently updated
recently updated
newest added

### Describe your change: * [x] Add an algorithm * [ ] Fix a bug or typo in an existing algorithm * [x] Add or change doctests — Note: Please...

awaiting reviews

### Describe your change: Add Dynamic Programming solution for the Egg Dropping Problem. * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm?...

### Describe your change: This pull request introduces a new implementation of the AO* (And-Or Star) search algorithm for solving AND-OR graphs in the `machine_learning/ao_star.py` file. The AO* algorithm is...

### What would you like to share? I was going through the repo, and i didnt find any implementation for Splay Trees, which is a very practical algorithm used in...

awaiting triage

### Describe your change: * [x ] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? --...

awaiting reviews
tests are failing
require tests

Fixed bug in bubble_sort_recursive docstring where the doctest was calling bubble_sort_iterative([]) instead of bubble_sort_recursive([]). This was a copy-paste error that would cause the doctest to pass even if bubble_sort_recursive had...

Fix factorial() input validation to use isinstance(number, int) instead of value comparison Changes: - Replace 'number != int(number)' with 'not isinstance(number, int)' in factorial() - Fix doctests in factorial_recursive() to...

### Describe your change: Added a new **Usage Example** section to the bottom of the README file. This section explains how users can clone the repository, run algorithms locally, use...

awaiting reviews
tests are failing
require tests
require type hints
documentation
require descriptive names

### Describe your change: Added an implementation of the **Splay Tree** data structure in Python, located at `data_structures/binary_tree/splay_tree.py`. A **Splay Tree** is a self-adjusting binary search tree that moves recently...

tests are failing

This PR adds Splay Tree implementation for issue #13760. Marking for Hacktoberfest participation. ### Splay Tree Implementation Added Splay Tree (Self Adjusting BST) algorithm in tree/ directory. Solves issue #13760....

awaiting reviews
tests are failing
require tests
require type hints
require descriptive names