Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: I added docstring documentation to this implementation of dijkstra. Also fixed a potential error source (calling a list). * [ ] Add an algorithm? * [x]...
This python code helps to extract data from Hokuyo UTM-30LX LRF. It also helps to find different dimensions of the object in front of it. ### Describe your change: I...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change? ### Checklist: * [x]...
### Describe your change: I changed the implementation of is_prime functions inside project_euler in order to have a unified implementation. There are some cases where the solution uses the Eratosthenes'...
### Describe your change: Add Project Euler problem 082 solution 1: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [...
Signed-off-by: Shivam Durgbuns ### Describe your change: * [ ] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change?...
### Describe your change: Improve Project Euler problem 203 solution 1 - the top 9 slowest solution on GitHub Actions logs (under `slowest 10 durations`: `3.46s call scripts/validate_solutions.py::test_project_euler[problem_203/sol1.py]`): * Improve...
### Describe your change: * [ ] Add an algorithm? * [x ] Fix a bug or typo in an existing algorithm? * [ ] Documentation change? ### Checklist: *...
### Describe your change: Add Project Euler problem 073 solution 1: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [...
We have a lot of `is_prime` (or similar) functions: https://github.com/TheAlgorithms/Python/search?p=4&q=is_prime, https://github.com/TheAlgorithms/Python/search?q=isPrime, [data_structures/hashing/number_theory/prime_numbers](https://github.com/TheAlgorithms/Python/blob/master/data_structures/hashing/number_theory/prime_numbers.py), etc. Shall we use one common function for that exactly identical `is_prime` calculation (which takes `O(sqrt(n))`)? Candidates include:...