Git Product home page Git Product logo

algos's Introduction

Algos

Implementation of well-known (and some rare) algorithms, mostly in C++.

Contents

Check out the Wiki for a complete list of contents.

My goal

Add atleast 1 algorithm to the repo every week.

Want to contribute to open-source and help me achieve the goal?

  1. Fork the repo ๐Ÿด (and don't forget to star!)
  2. Add your implementation of an algorithm that is not already in the repo (preferably in C++, but others would do just fine)
  3. Submit a pull request (click here to learn how)

Want to suggest some algorithms to add?

Just create a new issue and I'll handle it from there ๐Ÿ˜„

C++ coding guidelines

If you are contributing C++ code to this repo, make sure to read the C++ coding guidelines.

Compiling C++ code

Since many of the C++ programs in this repo use new features of C++11 (like range-based for-loops and more), you will need to use the -std=c++11 flag if you are compiling using the CLI. If you use an IDE, make sure to set the standard as C++11 in your compiler settings.

Also make sure there are no warnings during compilation by setting the -Wall flag and checking that nothing gets reported, if using the CLI. If using an IDE, make sure to check the "Enable all warnings" option for your compiler.

An example

If you are in the Sorting directory, and want to compile the code for merge sort, run the following command:

g++ -std=c++11 -Wall -o MergeSort.out MergeSort.cpp

Instead of g++, you may use other compilers like gcc, clang, clang++, MinGW (Windows) or Visual C++ (Windows). Just make sure that they support C++11 features.

algos's People

Contributors

faheel avatar himanshu14263 avatar ilayaraja97 avatar quantum-pie avatar rushyendher avatar

Watchers

 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.