Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: * [X] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Describe your change: - This PR Add Ordinary Least Squares Regression (OLSR) Algorithm without using any external libraries. - [source](https://en.wikipedia.org/wiki/Ordinary_least_squares) * [x] Add an algorithm? * [ ] Fix...
### Describe your change: * [X] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### What would you like to share? Firstly, i think there is apparently a typo in line 107: https://github.com/TheAlgorithms/Python/blob/17059b7ece0e9b2aa0f6e1789d635d6c3eef93ca/divide_and_conquer/closest_pair_of_points.py#L103-L109 The first argument should be `points_sorted_on_x` rather than `points_sorted_on_y`. Then, IMHO,...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change? ### Checklist: * [x]...
### Describe your change: Added docstring to create_all_combinations.py. contributes to #9943 : "If a function doesn't have a docstring, add one." * [ ] Add an algorithm? * [ ]...
### Describe your change: * [x] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [x] Add or change doctests? -- Note: Please avoid...
### Describe your change: * [x] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [x] Add or change doctests? -- Note: Please avoid...
### Repository commit Doesn't matter ### Python version (python --version) Python 3.12.0, the current version used in builds ### Dependencies version (pip freeze) Doesn't matter ### Expected behavior `pytest` runs...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change? ### Checklist: * [x]...