This repository contains some useful codes, techniques, algorithms, data structures and problem solutions helpful in Competitive Coding. Additionally, we have a blog explaining some of the concepts or problem solutions, whose source code is in the gh-pages-source branch.
The algorithms list is available in this wiki page. The folder Algorithms contains all the implementations.
The data structures list is available in this wiki page. The folder Data Structures contains all the implementations.
The solutions to various problems in different contests or practice problems on the following sites are available:
- Codeforces
- Code Chef
- Google Code Jam
- Hacker Earth
- Hacker Rank
- Top Coder
- UVa Online Judge
- CS Academy
- SPOJ
Some tricks and templates are available in Templates folder.
-
- Choose a algorithm of that you wish to implement.
- In the Algorithms folder, if you don't find a suitable folder in which category this algorithm belongs, then create that folder, otherwise go to the existing one.
- Create a separate folder inside it with the name of the Algorithm.
- Add your file, commit and send a pull request.
-
- Choose a Data Structure that you wish to implement.
- In the Data Structures folder, if there is already a folder for this DS then go to that, otherwise create the folder.
- Add your file, commit and send a pull request.
-
- Similarly, find the right folder in Problem Solutions folder where this solution should belong to, if doesn't exist, then create it and add the solution. Commit and send a pull request.
- To write a blog post explaining this, head to the gh-pages-source branch and refer to the README provided in that branch.