Python
Python copied to clipboard
All Algorithms implemented in Python
In classic Knapsack Problem, repetition of items is not allowed, I have written a program in which we have to find the maximum value out of the given objects with...
### Describe your change: - Add single function to calculate sum of two positive numbers using bitwise operator * [x] Add an algorithm? * [ ] Fix a bug or...
### 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...
* Using `(g ** t) % N` is significantly slower than `pow(g, t, N)` as the values get larger. Replacing this allows even large examples to run nearly instantly. *...
### **Describe your change:** New implementation of the stack data structure ### **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 --...
Added large changes to web_programming/crawl_google_results.py with `documentations` and `doctests`. Modularized the script and made it more customizable. Fixed formatting using `black` and `flake8`. * [x] Add an algorithm? * [x]...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change? ### Checklist: * [x]...
### Describe your change: + Fixes the recursion exception bug in dpll. Removes a case where recursion is called with unmodified symbols. + Fixes recursion branch bug where both left...
### Describe your change: Add a method to the existing Polynomial class that returns the root of a degree 1 polynomial. * [x] Add an algorithm? * [ ] Fix...
### Describe your change: places where cleaner code is better (pylint identified) simplifying return (bools) replace type with isinstance ### Checklist: * [X] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md). * [ X]...