**Striver’s CP Sheet (Solely for preparing for Coding Rounds of Top Product Based Companies and to do well in Coding Sites and Competitions)**

**Also Check Out:**

All of the below questions have been answered in this video -> https://youtu.be/QtTPohzfxA8

- What does the CP Sheet primarily focus on ?
- How have the problems been selected ?
- How many problems do you need to do in order to get concepts required for coding rounds ?
- What apart from the CP list do we need to do?

Pre-requisites: Point 1 and Point 2

- Before starting off CP, make sure you know one language, which means you how to take an input, print something, run for loops, snd STL/Collection for the language you are using, these things are more than enough to start, just don’t think you need everything in place to start, so just start.
- At first make sure your constructive algorithms are good, which means you can solve simple story line problems. For that my suggestion will be to do A2OJ ladder(alternative: https://a2oj.herokuapp.com/), 50 A problems and 50 B level problems to start off with.
- Next I will be giving you the algorithms name you need to know and 5-10 problems on each of them. These problems will help you to understand the concept of the algorithm, and will help you to understand how we can tweak the algorithms to solve given problems. Even after this you don’t feel comfortable with the Algorithm, my suggestion will be to google some more problems and solve. To reach an expert level at Codeforces, you just need to solve A, B and C problems at quick succession and on a constant basis. There are very few chances that you will be encountering an algorithmic problem on Codeforces unless and until its the D level problem or beyond. So you need to do as many algorithmic problems as you can, which will help you during your coding rounds.

**Note**: The Algorithmic Problems might require a mixture of Algorithms in order to be solved, so be careful while you think, just don’t think on a particular algo only.

Special thanks to Raj Singh for compiling the entire CP Sheet, he has been into Competitive Programming for 3 years, participated in nearly 300 contests at Codeforces. He is a Candidate Master, and is currently interning at Amazon.

**Disclaimer**: If you feel it’s getting tough, I will suggest doing SDE sheet as well as you can, and taking the concepts as properly as you can!!**Recommended Way of Doing**: Solve Easy of all topics, come back solve mediums of all topics, and at the end solve hard of all topics.

**Implementation / Constructive: (10*5=50)**

- https://codeforces.com/problemset/problem/282/A
- https://codeforces.com/contest/514/problem/A
- https://codeforces.com/problemset/problem/263/A
- https://codeforces.com/problemset/problem/151/A
- https://codeforces.com/problemset/problem/723/A
- https://codeforces.com/problemset/problem/1352/A
- https://codeforces.com/problemset/problem/510/A
- https://codeforces.com/problemset/problem/785/A
- https://codeforces.com/problemset/problem/144/A
- https://codeforces.com/problemset/problem/1030/A
- https://codeforces.com/problemset/problem/136/A
- https://codeforces.com/problemset/problem/110/A
- https://codeforces.com/problemset/problem/116/A
- https://codeforces.com/problemset/problem/977/A
- https://codeforces.com/problemset/problem/546/A
- https://codeforces.com/problemset/problem/791/A
- https://codeforces.com/problemset/problem/236/A
- https://codeforces.com/problemset/problem/281/A
- https://codeforces.com/problemset/problem/339/A
- https://codeforces.com/problemset/problem/1368/A
- https://codeforces.com/problemset/problem/702/A
- https://codeforces.com/problemset/problem/1097/A
- https://codeforces.com/problemset/problem/492/A
- https://codeforces.com/problemset/problem/1433/A
- https://codeforces.com/problemset/problem/1303/A
- https://codeforces.com/problemset/problem/1095/A
- https://codeforces.com/problemset/problem/1391/B
- https://codeforces.com/problemset/problem/118/A
- https://codeforces.com/problemset/problem/1300/B
- https://codeforces.com/problemset/problem/1430/C
- https://codeforces.com/contest/139/problem/A
- https://codeforces.com/problemset/problem/219/A
- https://codeforces.com/problemset/problem/1141/A
- https://codeforces.com/problemset/problem/118/B
- https://codeforces.com/problemset/problem/1373/A
- https://codeforces.com/problemset/problem/268/B
- https://codeforces.com/problemset/problem/476/A
- https://codeforces.com/problemset/problem/500/A
- https://codeforces.com/problemset/problem/131/A
- https://codeforces.com/problemset/problem/1139/B
- https://codeforces.com/problemset/problem/1199/A
- https://codeforces.com/problemset/problem/1073/A
- https://codeforces.com/problemset/problem/109/A
- https://codeforces.com/problemset/problem/1244/B
- https://codeforces.com/problemset/problem/1027/A
- https://codeforces.com/problemset/problem/1278/A
- https://codeforces.com/problemset/problem/1133/A
- https://codeforces.com/problemset/problem/507/A
- https://codeforces.com/problemset/problem/1237/A
- https://codeforces.com/problemset/problem/486/B

**Maths: (10*5=50)**

- https://codeforces.com/problemset/problem/1337/A
- https://codeforces.com/problemset/problem/1389/A
- https://codeforces.com/problemset/problem/959/A
- https://codeforces.com/problemset/problem/1426/A
- https://codeforces.com/problemset/problem/1296/A
- https://codeforces.com/problemset/problem/1385/A
- https://codeforces.com/problemset/problem/1358/A
- https://codeforces.com/problemset/problem/1294/A
- https://codeforces.com/problemset/problem/1353/A
- https://codeforces.com/problemset/problem/1371/A
- https://codeforces.com/problemset/problem/1360/A
- https://codeforces.com/problemset/problem/1367/B
- https://codeforces.com/problemset/problem/1374/A
- https://codeforces.com/problemset/problem/1343/B
- https://codeforces.com/problemset/problem/732/A
- https://codeforces.com/problemset/problem/1154/A
- https://codeforces.com/problemset/problem/1409/A
- https://codeforces.com/problemset/problem/1335/A
- https://codeforces.com/problemset/problem/1328/A
- https://codeforces.com/problemset/problem/617/A
- https://codeforces.com/problemset/problem/50/A
- https://codeforces.com/problemset/problem/1117/B
- https://codeforces.com/problemset/problem/1195/A
- https://codeforces.com/problemset/problem/1181/A
- https://codeforces.com/problemset/problem/1266/B
- https://codeforces.com/problemset/problem/1107/B
- https://codeforces.com/problemset/problem/1260/A
- https://codeforces.com/problemset/problem/1266/A
- https://codeforces.com/problemset/problem/1620/B
- https://codeforces.com/problemset/problem/610/A
- https://codeforces.com/problemset/problem/69/A
- https://codeforces.com/problemset/problem/1/A
- https://codeforces.com/problemset/problem/1199/B
- https://codeforces.com/problemset/problem/1257/B
- https://codeforces.com/problemset/problem/1204/A
- https://codeforces.com/problemset/problem/515/A
- https://codeforces.com/problemset/problem/1395/A
- https://codeforces.com/problemset/problem/688/B
- https://codeforces.com/problemset/problem/1473/B
- https://codeforces.com/problemset/problem/1476/A
- https://codeforces.com/problemset/problem/1359/A
- https://codeforces.com/problemset/problem/1342/A
- https://codeforces.com/problemset/problem/1463/A
- https://codeforces.com/problemset/problem/463/B
- https://codeforces.com/problemset/problem/1511/B
- https://codeforces.com/problemset/problem/630/C
- https://codeforces.com/problemset/problem/1189/B
- https://codeforces.com/problemset/problem/1038/B
- https://codeforces.com/problemset/problem/630/D
- https://codeforces.com/problemset/problem/1355/A

**Binary Search: **

**Binary Search:**

**Easy**:

- https://codeforces.com/contest/371/problem/C
- https://codeforces.com/contest/670/problem/D1
- https://codeforces.com/contest/287/problem/B
- https://codeforces.com/problemset/problem/1613/C

**Med**:

- https://codeforces.com/contest/689 /problem/C
- https://codeforces.com/contest/1169/problem/C
- https://codeforces.com/contest/1073/problem/C
- https://codeforces.com/contest/448/problem/D

**Hard**:

**Prime, Sieve, Prime Factorisation:**

**Prime, Sieve, Prime Factorisation:**

**Easy**:

- https://www.spoj.com/problems/PRIME1/cstart=10
- https://www.spoj.com/problems/TDPRIMES/
- https://www.spoj.com/problems/TDKPRIME/

**Med**:

- https://codeforces.com/contest/264/problem/B
- https://codeforces.com/contest/735/problem/D
- https://codeforces.com/contest/546/problem/D
- https://codeforces.com/contest/222/problem/C

**Hard**:

**Bit Manipulation/Power Set:**

**Easy**:

- https://codeforces.com/problemset/problem/912/B
- https://codeforces.com/problemset/problem/1594/B
- https://codeforces.com/problemset/problem/1097/B
- https://codeforces.com/contest/1602/problem/C

**Med**:

- https://codeforces.com/problemset/problem/1095/C
- https://codeforces.com/problemset/problem/1494/B
- https://codeforces.com/problemset/problem/1151/B
- https://codeforces.com/problemset/problem/1225/C

**Hard**:

**Stack/Queues/PriorityQueues: **

**Easy**:

- https://codeforces.com/contest/343/problem/B
- https://codeforces.com/contest/158/problem/C
- https://codeforces.com/contest/5/problem/C

**Med**:

- https://codeforces.com/contest/359/problem/D
- https://codeforces.com/contest/1092/problem/D1
- https://codeforces.com/contest/1313/problem/C2
- https://codeforces.com/contest/1515/problem/C (priority queue)

**Hard**:

**String Algorithms:**

**String hashing:**

- https://codeforces.com/problemset/problem/271/D
- https://codeforces.com/contest/1326/problem/D2
- https://codeforces.com/contest/514/problem/C
- https://codeforces.com/contest/7/problem/D
- https://codeforces.com/contest/514/problem/C
- https://codeforces.com/contest/633/problem/C

**Kmp / Z-function**

- https://codeforces.com/contest/1016/problem/B
- https://codeforces.com/contest/471/problem/D
- https://codeforces.com/problemset/problem/126/B
- https://codeforces.com/contest/346/problem/B
- https://codeforces.com/contest/1138/problem/D
- https://codeforces.com/contest/126/problem/B
- https://codeforces.com/contest/432/problem/D
- https://codeforces.com/contest/1537/problem/E2

**Manacher**

**Tree’s:**

**Easy:**

- https://cses.fi/problemset/task/1674
- https://cses.fi/problemset/task/1130
- https://codeforces.com/gym/102694/problem/A (depth)
- https://codeforces.com/gym/102694/problem/B (diameter)

**Med – Hard:**

**LCA**

**Easy:**

**Medium:**

- https://codeforces.com/contest/1328/problem/E
- https://codeforces.com/contest/1304/problem/E
- https://codeforces.com/contest/208/problem/E
- https://codeforces.com/contest/191/problem/C

**Hard:**

- https://codeforces.com/contest/519/problem/E
- https://codeforces.com/contest/587/problem/C
- https://codeforces.com/contest/609/problem/E
- https://codeforces.com/contest/466/problem/E

**Euler Tour:**

**Graph Algorithms **

(DFS, BFS, Dijsktra, Floyd Washall, Bellman Ford, Bridges, 0-1 BFS, Bipartite, Topo-sort …) :

**Easy**:

- https://codeforces.com/problemset/problem/520/B
- https://codeforces.com/problemset/problem/115/A
- https://codeforces.com/problemset/problem/580/C
- https://codeforces.com/problemset/problem/977/E
- https://codeforces.com/contest/1144/problem/F (simple dfs)
- https://codeforces.com/contest/510/problem/C (topo sort)
- https://codeforces.com/contest/20/problem/C (dijsktra)
- https://codeforces.com/problemset/problem/475/B (SCC)

**Med**:

- https://codeforces.com/contest/986/problem/A (djstra)
- https://codeforces.com/contest/242/problem/C (bfs)
- https://codeforces.com/contest/1345/problem/D (flood fill)
- https://codeforces.com/contest/229/problem/B (dijsktra)
- https://codeforces.com/contest/1385/problem/E (topo sort)
- https://codeforces.com/contest/295/problem/B (floyd warshal)
- https://codeforces.com/contest/1213/problem/F (SCC)
- https://codeforces.com/contest/1343/problem/E (djstra)
- https://codeforces.com/contest/1296/problem/E1 (biparthite)

**Hard**:

**Matrix Exponentiation: (basic to hard sorted)**

**Trie:**

- https://codeforces.com/contest/706/problem/D
- https://codeforces.com/contest/948/problem/D
- https://codeforces.com/contest/665/problem/E
- https://codeforces.com/contest/1285/problem/D
- https://codeforces.com/contest/858/problem/D
- https://codeforces.com/contest/455/problem/B
- https://codeforces.com/contest/113/problem/B
- https://codeforces.com/contest/282/problem/E

**Dynamic Programming: **

**Easy**:

- https://codeforces.com/problemset/problem/702/A
- https://codeforces.com/problemset/problem/894/A
- https://codeforces.com/problemset/problem/1501/B
- https://codeforces.com/problemset/problem/1469/B
- https://codeforces.com/problemset/problem/363/B
- https://codeforces.com/problemset/problem/313/B
- https://codeforces.com/problemset/problem/327/A
- https://codeforces.com/problemset/problem/961/B
- https://codeforces.com/problemset/problem/522/A
- https://codeforces.com/problemset/problem/1042/B
- https://codeforces.com/problemset/problem/189/A
- https://codeforces.com/problemset/problem/1420/C1
- https://codeforces.com/problemset/problem/414/B
- https://codeforces.com/problemset/problem/1195/C
- https://codeforces.com/problemset/problem/1350/B

**Med**:

- https://codeforces.com/contest/505/problem/C
- https://codeforces.com/contest/577/problem/B
- https://codeforces.com/contest/204/problem/A
- https://codeforces.com/contest/448/problem/C
- https://codeforces.com/contest/479/problem/E
- https://codeforces.com/contest/401/problem/D
- https://codeforces.com/contest/777/problem/E
- https://codeforces.com/contest/1036/problem/C
- https://codeforces.com/contest/219/problem/D
- https://codeforces.com/contest/337/problem/D

**Hard**:

- https://codeforces.com/contest/165/problem/E
- https://codeforces.com/contest/687/problem/C
- https://codeforces.com/contest/1132/problem/F
- https://codeforces.com/contest/1253/problem/E
- https://codeforces.com/contest/1216/problem/F
- https://codeforces.com/contest/461/problem/B
- https://codeforces.com/contest/319/problem/C
- https://codeforces.com/contest/1083/problem/E
- https://codeforces.com/contest/507/problem/D
- https://codeforces.com/contest/540/problem/D

**Disjoint Set: **

**Easy**:

- https://codeforces.com/problemset/problem/1534/C
- https://codeforces.com/problemset/problem/217/A
- https://codeforces.com/contest/277/problem/A

**Med**:

- https://codeforces.com/contest/884/problem/C
- https://codeforces.com/contest/1332/problem/C
- https://codeforces.com/contest/455/problem/C

**Hard**:

**Sqrt Decomposition/ MO’s algo:**

**Fenwick Tree:**

- https://codeforces.com/contest/61/problem/E
- https://codeforces.com/contest/1311/problem/F
- https://codeforces.com/contest/283/problem/A
- https://codeforces.com/contest/459/problem/D
- https://codeforces.com/contest/340/problem/D
- https://codeforces.com/contest/1076/problem/E
- https://codeforces.com/contest/1354/problem/D
- https://codeforces.com/contest/1405/problem/E
- https://codeforces.com/contest/383/problem/C
- https://codeforces.com/contest/1526/problem/D
- https://codeforces.com/contest/276/problem/E
- https://codeforces.com/contest/375/problem/D

**Segment Tree(lazy also included):**

- https://codeforces.com/contest/339/problem/D
- https://codeforces.com/contest/914/problem/D
- https://codeforces.com/contest/459/problem/D
- https://codeforces.com/contest/61/problem/E
- https://codeforces.com/contest/380/problem/C
- https://codeforces.com/contest/474/problem/F
- https://codeforces.com/contest/1237/problem/D
- https://codeforces.com/contest/292/problem/E
- https://codeforces.com/contest/482/problem/B
- https://codeforces.com/contest/1187/problem/D
- https://codeforces.com/contest/920/problem/F
- https://codeforces.com/contest/1535/problem/D?locale=en
- https://codeforces.com/contest/438/problem/D?locale=en
- https://codeforces.com/contest/1556/problem/E
- https://codeforces.com/contest/1567/problem/E