Professional Documents
Culture Documents
Algos Study Material:: Language
Algos Study Material:: Language
1 ) Language
3 ) C++ STL
7 ) Dynamic programing
8 ) Range Query
9 ) String Algos
10 ) Tree
11 ) Graphs
12 ) Geometry
<=======================================================================>
Language :
We do not have any preference over a language but we suggest you to choose C++ as it is used
by most of the competitive programers and it has a very vast Standard Template Library ( STL )
For most of languages you can easily found the courses on YouTube ranging from 4 - 10 hours.
https://youtu.be/vLnPwxZdW4Y
And you never learn something really if you haven’t practiced it.
https://www.hackerrank.com/domains/cpp
There are questions for every language on hacker rank. Do as per your choice.
<=======================================================================>
1 ) modulo arithmetic :
https://en.wikipedia.org/wiki/Modulo_operation
- Binary Exponentiation
- Fibonacci Numbers
- Sieve of Eratosthenes
- Modular Inverse
- Factorial modulo
<=======================================================================>
C++ STL :
Watch the playlist :
https://www.youtube.com/watch?v=LyGlTmaWEPs&list=PLk6CEY9XxSIA-
xo3HRYC3M0Aitzdut7AA
<=======================================================================>
3 ) https://www.youtube.com/watch?v=le2enQgQ7Ws
4 ) Expected values :
https://codeforces.com/blog/entry/62690
https://codeforces.com/blog/entry/62792
<=======================================================================>
2) Read https://www.geeksforgeeks.org/recursion/
3) And https://www.geeksforgeeks.org/divide-and-conquer/
<=====================================================================>
fi
Binary Search :
https://www.youtube.com/watch?v=GU7DpgHINWQ
Read : https://leetcode.com/problems/median-of-two-sorted-arrays/discuss/2481/Share-
my-O(log(min(mn)))-solution-with-explanation
And https://www.youtube.com/watch?v=S9oUiVYEq7E
Practice rst 10 question from sorting and searching section from https://cses. /
problemset/
<================================================================>
Dynamic programing :
Watch
https://www.youtube.com/watch?v=YBSt1jYwVfU&list=PLl0KD3g-
oDOGJUdmhFk19LaPgrfmAGQfo
<===============================================================>
Range Query :
Read Segment Tree , Fenwick Tree .
Practice problems from above links and do rst 9 question from Range Queries section from
https://cses. /problemset/
<===================================================================>
fi
fi
fi
fi
fi
String Algos :
Read the articles String Processing section on cp-algorithm : http://cp-algorithms.com
- String Hashing
- Z-function
Read https://www.geeksforgeeks.org/trie-insert-and-search/
Practice on problems in links and do rst 4-5 problems on https://cses. /problemset/ String
Algorithms.
<=====================================================================>
Graph Algorithm :
Here is a playlist for theory : https://www.youtube.com/list=PLDV1Zeh2NRsDGO4--
qE8yH72HFL1Km93P
And https://www.youtube.com/watch?
v=VW85xQ6GJP4&list=PL2q4fbVm1Ik6DCzm9XZJbNwyHtHGclcEh
- Distances :
- 0-1 BFS
- Topological Sorting
<====================================================================>
Tree :
Check out the problems on trees on https://cses. /problemset/ and do only the problems that are
explained in https://codeforces.com/blog/entry/79857 .
<====================================================================>
fi
fi
fi
fi
fi
fi
fi
fi
Geometry :
Read on http://cp-algorithms.com .
<====================================================================>
Misc :
For various other topics you can follow
https://usaco.guide/general/using-this-guide?lang=cpp
fi
fi