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: This PR improves the documentation for the `pancake_sort.py` file to address issue #13948 about documentation inconsistencies. **Changes made:** - Added comprehensive module-level docstring explaining the Pancake...

## What This PR Does This PR adds a new file called `division.py` to the maths folder. The file has a function called `divide_numbers()` that divides two numbers and prevents...

tests are failing

Add Rabin–Karp String Matching Algorithm (Fixes #13918) This pull request adds the Rabin–Karp String Matching Algorithm to the strings/ directory. Rabin–Karp is an important string-searching technique that uses rolling hash...

awaiting reviews

…3840) Refactored binary_search function to use bisect_left for improved efficiency. ### Describe your change: * [x] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm?...

awaiting reviews

This doctest demonstrates that exponential_search correctly handles empty arrays by returning -1. ### Describe your change: * [ ] Add an algorithm? * [ ] Fix a bug or typo...

enhancement
awaiting reviews

This PR improves the docstring for the `fib_recursive` function in `maths/fibonacci.py`. - Clarified summary description - Added properly formatted Args and Returns sections - Fixed example test cases with correct...

enhancement
awaiting reviews

### Feature description Hey maintainers, I've been going through the repository over the past few weeks to learn algorithms, and I have to say this project is incredible. However, I've...

enhancement

### Describe your change: CPU Algorithm with User input , Gantt chart display process working second by second, Calculations of Waiting Time, Turn around Time, Completion Time, Response time and...

awaiting reviews

This function performs matrix multiplication on two valid matrices, raising ValueErrors for invalid structures or incompatible sizes. ### Describe your change: * [ ] Add an algorithm? * [ ]...

tests are failing