Skip to content

Commit 344186b

Browse files
author
MeghaSharma21
authored
Updated README.md
1 parent ac07d11 commit 344186b

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# CPP_Competitive_Programming_Sublime_Snippets
2-
Sublime Snippets for improving the coding experience while doing competitive programming in C++.
1+
A collection of code snippets for competitive programmers, written in C++ for sublime editor.
2+
3+
Many times this happens in competitive programming competitions that you've figured out an algorithm for the solution of the problem, which happens to be a standard algorithm. How helpful would it be to have snippets for commonly used concepts/algorithms in competitive programming in that situation, to provide you an edge over fellow competitors as using snippets will improve your accuracy, speed and hence rank!
4+
5+
This repository provides extension for sublime-text editor which enables sublime users to use c++ coding snippets of algorithms while doing competitive programming.
6+
7+
## Installation
8+
9+
Install using Package Control : Sublime Package manager:
10+
11+
- Ctrl + Shift + P will open command palette
12+
- Type and Select Package Control : Install Package
13+
- Search for Competitive programming sublime snippets and hit enter
14+
15+
## Usage
16+
17+
Following table contains all the snippets available in this package. It gives information about the file containing the code of a particular snippet, prompt of the snippet, and when to use that particular snippet.
18+
19+
| **File Name** | **Prompt** | **When to use** |
20+
| --- | --- | --- |
21+
| codeChefStarter.cpp | codechef | Starting template for all the codechef problems |
22+
| codeJamStarter.cpp | codejam | Starting template for all the codejam problems |
23+
| codeChefStarterPython.py | codechef-py | Starting template for all the codechef problems in python |
24+
| time.cpp | time | To calculate time taken by a particular code to run |
25+
| basicGeometry.cpp | geometry-basic | In geometry problems, you'll need cartesian-points, distance between points and things like these. |
26+
| convexHull.cpp | convex-hull | To get vector of points belonging to hull in anti-clockwise order |
27+
| polygonArea.cpp | polygon-area | Find Area of a polygon whose points are given |
28+
| dfs.cpp | dfs | Depth First Search Algorithm |
29+
| dsu.cpp | dsu | Disjoint Set Union |
30+
| ewalk.cpp | ewalk | Euler Walk |
31+
| graphStarter.cpp | graph-starter | Starting template for all the graph problems |
32+
| minHeap.cpp | min-heap | min-heap using c++ stl |
33+
| maxHeap.cpp | max-heap | max-heap using c++ stl |
34+
| bigInt.cpp | bigint | BigInt in c++ |
35+
| binomialBigMod.cpp | binomial-big-mod | nCr % m:O(nlog(no. of digits in n)), n<m [finds nCr for all 0<=r<=n in fact vector] (m is large Prime) Modular Division - Euclid Extended theorem |
36+
| binomialSmallMod.cpp | binomial-small-mod | nCr % m:O(m^2logn), N is greater than m. (m is small) Lucas theorem |
37+
| 2dSegmentTree.cpp | 2d-segment-tree | 2-D Segment Tree for Range Queries in 2-D |
38+
| simpleSegmentTree.cpp | segment-tree | Classic Segment Tree |
39+
| splitString.cpp | split-string | Split a c++ string by a delimiter |
40+
| suffixArray.cpp | suffix-array | Suffix array and LCP array |
41+
| binarySearch.cpp | binary-search | Binary Search |

0 commit comments

Comments
 (0)