Skip to content

Commit 2f45d2a

Browse files
poyeagithub-actions
authored andcommitted
Fix Project Euler Readme (TheAlgorithms#3754)
* Fix Project Euler Readme * updating DIRECTORY.md * Update CONTRIBUTING.md * spacing Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 0693247 commit 2f45d2a

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ We want your work to be readable by others; therefore, we encourage you to note
148148
- If you need a third party module that is not in the file __requirements.txt__, please add it to that file as part of your submission.
149149

150150
#### Other Requirements for Submissions
151-
151+
- If you are submitting code in the `project_euler/` directory, please also read [the dedicated Guideline](https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md) before contributing to our Project Euler library.
152152
- The file extension for code files should be `.py`. Jupyter Notebooks should be submitted to [TheAlgorithms/Jupyter](https://github.com/TheAlgorithms/Jupyter).
153153
- Strictly use snake_case (underscore_separated) in your file_name, as it will be easy to parse in future using scripts.
154154
- Please avoid creating new directories if at all possible. Try to fit your work into the existing directory structure.

DIRECTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* [Binary And Operator](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/binary_and_operator.py)
2929
* [Binary Or Operator](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/binary_or_operator.py)
3030
* [Binary Xor Operator](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/binary_xor_operator.py)
31+
* [Single Bit Manipulation Operations](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/single_bit_manipulation_operations.py)
3132

3233
## Blockchain
3334
* [Chinese Remainder Theorem](https://github.com/TheAlgorithms/Python/blob/master/blockchain/chinese_remainder_theorem.py)
@@ -265,6 +266,7 @@
265266
* [Basic Graphs](https://github.com/TheAlgorithms/Python/blob/master/graphs/basic_graphs.py)
266267
* [Bellman Ford](https://github.com/TheAlgorithms/Python/blob/master/graphs/bellman_ford.py)
267268
* [Bfs Shortest Path](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs_shortest_path.py)
269+
* [Bfs Zero One Shortest Path](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs_zero_one_shortest_path.py)
268270
* [Bidirectional A Star](https://github.com/TheAlgorithms/Python/blob/master/graphs/bidirectional_a_star.py)
269271
* [Bidirectional Breadth First Search](https://github.com/TheAlgorithms/Python/blob/master/graphs/bidirectional_breadth_first_search.py)
270272
* [Breadth First Search](https://github.com/TheAlgorithms/Python/blob/master/graphs/breadth_first_search.py)
@@ -694,6 +696,8 @@
694696
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_076/sol1.py)
695697
* Problem 080
696698
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_080/sol1.py)
699+
* Problem 081
700+
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_081/sol1.py)
697701
* Problem 091
698702
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_091/sol1.py)
699703
* Problem 097

project_euler/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Project Euler
22

3-
Problems are taken from https://projecteuler.net/.
3+
Problems are taken from https://projecteuler.net/, the Project Euler. [Problems are licensed under CC BY-NC-SA 4.0](https://projecteuler.net/copyright).
44

5-
Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical
5+
Project Euler is a series of challenging mathematical/computer programming problems that require more than just mathematical
66
insights to solve. Project Euler is ideal for mathematicians who are learning to code.
77

8-
The solutions will be checked by our [automated testing on Travis CI](https://travis-ci.com/github/TheAlgorithms/Python/pull_requests) with the help of [this script](https://github.com/TheAlgorithms/Python/blob/master/project_euler/validate_solutions.py). The efficiency of your code is also checked. You can view the top 10 slowest solutions on Travis CI logs and open a pull request to improve those solutions.
8+
The solutions will be checked by our [automated testing on Travis CI](https://travis-ci.com/github/TheAlgorithms/Python/pull_requests) with the help of [this script](https://github.com/TheAlgorithms/Python/blob/master/scripts/validate_solutions.py). The efficiency of your code is also checked. You can view the top 10 slowest solutions on Travis CI logs (under `slowest 10 durations`) and open a pull request to improve those solutions.
99

1010

1111
## Solution Guidelines
@@ -17,18 +17,18 @@ Welcome to [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python)! Befo
1717
* Please maintain consistency in project directory and solution file names. Keep the following points in mind:
1818
* Create a new directory only for the problems which do not exist yet.
1919
* If you create a new directory, please create an empty `__init__.py` file inside it as well.
20-
* Please name the project directory as `problem_<problem_number>` where `problem_number` should be filled with 0s so as to occupy 3 digits. Example: `problem_001`, `problem_002`, `problem_067`, `problem_145`, and so on.
20+
* Please name the project **directory** as `problem_<problem_number>` where `problem_number` should be filled with 0s so as to occupy 3 digits. Example: `problem_001`, `problem_002`, `problem_067`, `problem_145`, and so on.
2121

22-
* Please provide a link to the problem and other references, if used, in the module-level docstring.
22+
* Please provide a link to the problem and other references, if used, in the **module-level docstring**.
2323

2424
* All imports should come ***after*** the module-level docstring.
2525

2626
* You can have as many helper functions as you want but there should be one main function called `solution` which should satisfy the conditions as stated below:
27-
* It should contain positional argument(s) whose default value is the question input. Example: Please take a look at [problem 1](https://projecteuler.net/problem=1) where the question is to *Find the sum of all the multiples of 3 or 5 below 1000.* In this case the main solution function will be `solution(limit: int = 1000)`.
27+
* It should contain positional argument(s) whose default value is the question input. Example: Please take a look at [Problem 1](https://projecteuler.net/problem=1) where the question is to *Find the sum of all the multiples of 3 or 5 below 1000.* In this case the main solution function will be `solution(limit: int = 1000)`.
2828
* When the `solution` function is called without any arguments like so: `solution()`, it should return the answer to the problem.
2929

3030
* Every function, which includes all the helper functions, if any, and the main solution function, should have `doctest` in the function docstring along with a brief statement mentioning what the function is about.
31-
* There should not be a `doctest` for testing the answer as that is done by our Travis CI build using this [script](https://github.com/TheAlgorithms/Python/blob/master/project_euler/validate_solutions.py). Keeping in mind the above example of [problem 1](https://projecteuler.net/problem=1):
31+
* There should not be a `doctest` for testing the answer as that is done by our Travis CI build using this [script](https://github.com/TheAlgorithms/Python/blob/master/project_euler/validate_solutions.py). Keeping in mind the above example of [Problem 1](https://projecteuler.net/problem=1):
3232

3333
```python
3434
def solution(limit: int = 1000):

0 commit comments

Comments
 (0)