Git Product home page Git Product logo

project-euler's Introduction

What is Project Euler?

Project Euler is a collection of math problems that people solve for fun. For each problem, you get a description and an input. Your job is to come up with the answer and submit it.

Important: You only have to submit the answer! So you have a lot of flexibility when solving a problem. Solve it by hand, on a calculator, with Wolfram Alpha, write a program, whatever -- as long as your answer is correct.

To prevent cheating (e.g. looking up the solution), Project Euler occasionally changes the input to their problems.

How you can contribute

  • We need your help to solve as many problems as possible!

  • The list of problems is ever-growing as Project Euler is always adding new problems

  • When adding your solution here, make sure it's a method of finding the solution and not the solution itself

  • You can submit your solutions to previously solved problems, but don't ignore the unsolved ones :)

  • Visit http://brockcsc.github.io/project-euler for an overview of which problems have been solved

Contribution guidelines

  1. Do not edit the work of others (such commits will be reverted)
  2. You can leave comments on commits to suggest improvements to solutions
  3. Do not submit solutions found by the work of others as your own (i.e. do not plagiarize)
  4. Follow naming conventions
  • Solutions are named after the problem # and your username
    E.g. My solution to problem #1 would be located at /project-euler/001/1-dideler.cpp

Getting started

Example based on a command line interface (e.g. Bash on Linux, Git Bash on Windows, etc.) There are many ways to get started, this is one way:

$ git clone [email protected]:BrockCSC/project-euler.git
$ cd project-euler
$ git remote add upstream git://github.com/BrockCSC/project-euler.git
$ git fetch upstream
* Let's work on problem 10 *
$ mkdir 010  # Create the directory for problem 10 if it doesn't exist yet
$ cd 010
* Work on your solution. Go to the next step when you're done *
$ git add .
$ git commit -m 'Add my solution for problem 10'
$ git push  # Your solution is now on GitHub!

Helpful resources

Have fun!

Challenge yourself in any way you like. Your solution can be:

  • efficient or slow (there are no time constraints)
  • long or short
  • a dirty hack or the most elegant piece of code
  • obfuscated code or coded using your favourite style guide
  • crazily complex or super simple
  • instructions for a person or instructions for a computer
  • ... whatever!

No matter how you choose to solve a problem, try to have fun and learn something new ๐Ÿ˜‰

โœŒ๏ธ

project-euler's People

Contributors

dideler avatar katbow avatar kewleus avatar chippers255 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.