Giter VIP home page Giter VIP logo

competitive-programming-algorithms's Introduction

Competitive Programming Algorithms

Build Status Last commit License

This repository contains algorithms for competitive programming. It was created in order to fix wrong codes on E-maxx.

Testing

For now we use googletest (gtest) v1.8.1 as an automatic test system.

Also we use Travis CI to provide automatic testing of all branches (see tests badge on top).

More info: cpp/tests/README.md

Coding Style Convention

We use Google C++ Style Guide with some exceptions:

  1. Source files have .cpp extension rather than .cc
    As this code can be used by beginners and .cpp extension is the most popular we don't want to create additional difficulties in understanding where the code is placed (and why do we use .cc extension).
  2. No need to create header (.h) files.
    We want to keep structure as simple as possible. One source file with implementation and one with tests. It should be possible to copy an implementation and paste it anywhere.
  3. Possibility of including source (.cpp) files
    This is due to previous exception.
    As the wording is complicated we provide an example:
    #include "../binary_power/binary_power_tests.cpp"
  4. Identation is 4 spaces instead of 2 spaces
    Code in this repository shouldn't have big nesting inside it.
    4 spaces is more often used by beginners than 2 spaces.
    Also you can see much clearer where each block of code goes (this is created out of thin air).

competitive-programming-algorithms's People

Contributors

crafterkolyan avatar

Stargazers

 avatar

Watchers

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