Coder Social home page Coder Social logo

project-euler-solution's Introduction

Project Euler Solutions

My attempt to keep myself fit by solving Project Euler problems.

Guidelines for solution

I am setting few soft guidelines for myself when creating solutions:

  • Separate package for each problem.
  • Name the first solution as Solution.java. For subsequent solutions, named them as Solution1.java, etc.
  • There should be main() method to help run from command-line. Have a solve() instance method that finds the actual solution.
  • Write unit-tests, and verify primary results.
  • Use Java 8 and functional approach as much as possible.

How to run locally

Prerequisite

  • Java 8
  • Gradle 3.1

To run:

  • $ ./gradlew wrapper # Optional

To run particular from command line:

  • $ ./gradlew clean jar && java -cp build/libs/project-euler-solutions.jar com.wsadik.euler.problem0001.Solution 10

project-euler-solution's People

Contributors

wahidsadik avatar

Watchers

 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.