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

''' remove can not change root ''' def test_self(): rb = [10, 11, 12, 6, 7, 8, 9, 2, 1, 18, 13, 14, 15, 16] tree = RedBlackTree(5) for d...

https://github.com/TheAlgorithms/Python/blob/master/maths/basic_maths.py Function number_of_divisors(n) returns wrong results, e.g., number_of_divisors(6) produces 2. Correct answer should be 4. After factorization, if n is not 1, this means it's a prime which has two...

In file "maths/newton_raphson.py", there is a error in function "newton_raphson()". It likes that variables "error" was not refreshed in for-iterator process。So we need to recalculate the "error" in for-loop block,...

### Describe your change: **added the 'digital_root' method to maths/sum_of_digits.py. a digital root is: https://en.wikipedia.org/wiki/Digital_root** * [x] Add an algorithm? * [ ] Fix a bug or typo in an...

enhancement
awaiting reviews
tests are failing

# import all required library Import xlrd Import csv Import pandas csv # open workbook by sheet index # optional_sheet_by_index() Sheet=xlrd.open_workbook("Test.xlsx").sheet_by_index(0) # writen object is created Col= csv.writen(open("Tcsv",'w',newline=" " ))...

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

stale
awaiting changes
tests are failing

### **Describe your change:** Solution to the algorithmic problem, **_search in a rotated sorted array in python_** is added, FIXES #5112 issue. * [x] Add an algorithm? * [ ]...

stale
awaiting reviews
tests are failing
require tests
require type hints

### **Describe your change:** Added snippet for finding the saddle points of a matrix * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing...

stale
awaiting reviews
tests are failing

### **Describe your change:** * [x] Add an algorithm? ### **Checklist:** * [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md). * [x] This pull request is all my own work -- I have...

stale

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

stale
awaiting reviews
tests are failing
require tests