6317f2bea7
Feat: Project Euler Problem 25 |
||
---|---|---|
.. | ||
problem_001 | ||
problem_002 | ||
problem_003 | ||
problem_004 | ||
problem_005 | ||
problem_006 | ||
problem_007 | ||
problem_010 | ||
problem_014 | ||
problem_020 | ||
problem_021 | ||
problem_022 | ||
problem_025 | ||
README.md |
Project Euler
Problems are taken from https://projecteuler.net/, the Project Euler. Problems are licensed under CC BY-NC-SA 4.0.
Project Euler is a series of challenging mathematical/computer programming problems that require more than just mathematical insights to solve. Project Euler is ideal for mathematicians who are learning to code.
Solution Guidelines
Welcome to TheAlgorithms/Ruby! Before reading the solution guidelines, make sure you read the whole Contributing Guidelines as it won't be repeated in here. If you have any doubt on the guidelines, please feel free to state it clearly in an issue or ask the community in Gitter. Be sure to read the Coding Style before starting solution.
Coding Style
-
Please maintain consistency in project directory and solution file names. Keep the following points in mind:
- Create a new directory only for the problems which do not exist yet.
- Please name the project directory as
problem_<problem_number>
whereproblem_number
should be filled with 0s so as to occupy 3 digits. Example:problem_001
,problem_002
,problem_067
,problem_145
, and so on.
-
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:- It should contain positional argument(s) whose default value is the question input. Example: Please take a look at 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 = 1000)
. - When the
solution
function is called without any arguments like so:solution()
, it should return the answer to the problem.
- It should contain positional argument(s) whose default value is the question input. Example: Please take a look at 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