Giter Club home page Giter Club logo

projecteuler_1_100's Introduction

ProjectEuler_1_100

Solutions to the first 100 Project Euler problems.

Build System

  • From the project root, run:
    • cmake -Bbuild
    • cmake --build build
  • Now, all binaries should be in build/bin
  • Benchmarks for the Problems will be at build/bin/ProjectEulerBenchmarks
  • Tests for solved Problems will be at build/bin/ProjectEulerTests
  • Each problem will have an associated binary file at build/bin/px_main, where x is the problem number.

Structure

  • There is a folder for each project, px where, x is the problem number
  • Every problem has the following folder structure:
    • include/ : contains the headers related to solving the problem.
    • src/ : contains the implentations, test, main, benchmark, and any other files needed.
    • README.md contains the problem prompt.
    • CmakeLists.txt tells cmake how to build this problem.
  • Each problem is build into three shared libraries where the name of the library is the same as the source file.
    • px is the library for the solution implementation. px is linked to px_test, px_benchmark, px_main, and is linked to the CMake target project_problems
    • px_test contains the GTest for the problem. It is linked to the CMake target, ProjectEulerTests.
    • px_benchmark contains the Google Benchmark for the problem. it is linked to the CMake Target ProjectEulerBenchmarks
  • There will also always be a px_main, which is used to run a specific problem.

Libraries

  • math_lib
    • gen_math
    • primes

Solved Problems

  • Problem 1
  • Problem 2
  • Problem 3
  • Problem 4
  • Problem 5

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.