TheAlgorithms-Ruby/project_euler
Stepfen Shawn 6317f2bea7
Merge pull request #204 from domix80/problem_025
Feat: Project Euler Problem 25
2023-02-24 07:36:58 +08:00
..
problem_001 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_002 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_003 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_004 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_005 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_006 Update project_euler/problem_006/sol1.rb 2023-02-21 18:36:46 +01:00
problem_007 Update project_euler/problem_007/sol1.rb 2023-02-23 16:02:42 +01:00
problem_010 Update project_euler/problem_010/sol1.rb 2023-02-23 16:01:44 +01:00
problem_014 Update project_euler/problem_014/sol1.rb 2023-02-23 16:01:09 +01:00
problem_020 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_021 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_022 rename project_euler problem directory names to match the README 2022-09-23 15:08:43 -07:00
problem_025 Update sol1.rb 2023-02-21 18:42:34 +01:00
README.md Revert "remove project_euler" 2021-05-11 18:41:11 +02:00

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> 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.
  • 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.