Competitive Programming 🔆🔆
Hello Programmers💻, A one-stop destination for all your Competitive Programming Resources.
📌📌 What is Competitive Programming? 📌📌
According to me, competitive programming is a sport. A sport based on problem-solving skills, thinking ability, speed testing, regularity and to be precise. Competitive Programming will help you build logic and implement that logic to find solutions to a real-world problem. Brainstorming upon your code will increase your coding skills as well as it will help to expand your thinking capacity. Thus practicing Competitive Programming on day to day basis helps you in mastering that particular language. And believe us, if you are playing this sport regularly, you are already prepared for the technical rounds of the Interviews. So now let's dive into the ocean of Competitive Programming.
Platform to practice Competitive Programming 🔭🔭
-
HackerRank (Must do for a Beginner)
-
CodeChef
-
CodeForces
-
HackerEarth
-
Project Euler(For Mathematics)
-
GeeksForGeeks
-
LeetCode (For Data-Structures and Algos)
-
AtCoder
-
interviewBit
-
Sphere Online Judge(SPOJ)
-
TopCoder
-
Leetcode (for monthly challenges)
-
CSES
-
binarysearch
BENEFITS OF COMPETITIVE PROGRAMMING
The skills needed for competitive programming have long-lasting benefits to your career as a developer. There are numerous benefits to participating in competitive programming, including:
Getting hired: Participating in competitive programming can make you a desirable candidate for companies. When you participate in large competitions like the ACM International Collegiate Programming Contest, you have a good chance of being on the radar of companies like Apple, Facebook, IBM, Google, and more. Tech companies track competitions and events to find potential employees. Large competitive programming events are extremely prestigious and difficult to succeed in, so if you do well, that is an indicator of your technical talent and abilities. That’s why many companies have sponsored programming competitions.
Teamwork skills: When you participate in these competitions, you will often work in teams, meaning that you learn how to interact with teammates during high-pressure moments. This is an incredibly important skill. When you are working as a software engineer, you will almost always work with other individuals, meaning that companies care a lot about your communication and team skills. Also, most teams will have a leader. If you are the leader of the team, this demonstrates management skills, making you even more of a desirable candidate. Companies want to know that you can work effectively and comfortably with your teammates.
Interview prep: When you are trying to get an engineering job, companies will test you for your knowledge of data structures and algorithms. When you participate in competitive programming, you work to develop an advanced understanding of these concepts. Furthermore, the environment for the coding interview and competitive programming is quite similar. They are both high-pressure environments, in which you have to engage in problem-solving. While many others may not be able to adjust to this environment, your competition experience gives you an advantage.
Most Famous Programming Contests 👑 👑
Upcomming contests schedule - https://clist.by/
- Google KickStart🏆
- ACM ICPC (Olympics of Programming)🏆
- Google CodeJam🏆
- FaceBook Hacker Cup🏆
- TCS CodeVita🏆
- Google HashCode🏆
- CodeChef's SnackDown🏆
- Coding Block's CodeSule🏆
- Codechef Long Challenge🏆
- Codechef Cook-Off 🏆
- Codechef Lunchtime🏆
- Codeforces Rounds Div1 & Div2 & Div3 & Educational Codeforces Round🏆
Books 🔆🔆
- Competitive Programming 3📚
- Data Structures and Algorithms Made Easy📚 - by Narasimha Karumanchi
- Cracking the Coding Interview📚 - by Gayle Laakmann McDowell
- CP Handbook By Antti Laaksonen
- USACO Guide by the Competitive Programming Initiative
Algorithms 🔆🔆
Code Visualisation 🔆🔆
- C++ Code Visualisation
- JAVA Code Visualisation
- PYTHON Code Visualisation
- VisuAlgo - visualising data structures and algorithms through animation
Learning Resources (Topic Wise) 🏁🏁🏁
Big O Notations
- CS Dojo - Introduction to Big O Notation and Time Complexity
- Simple Snippets - Asymptotic Analysis of Algorithms with Example
- Big-O CheatSheet https://www.bigocheatsheet.com/
STL in C++
-
Codealittle - https://www.youtube.com/watch?v=PCahjLFtlbY&list=PL1oKdRlSbldPUXbtWctRz14C1f8R78MVZ
-
Takeyouforward - https://www.youtube.com/watch?v=zBhVZzi5RdU&t=1s
-
CppNuts - https://www.youtube.com/watch?v=LyGlTmaWEPs&list=PLk6CEY9XxSIA-xo3HRYC3M0Aitzdut7AA
-
STL SUMMARY https://codeforces.com/blog/entry/6058
Binary Search
Problems
- Allocate Minimum No of pages(GFG)
- Aggressive Cows(SPOJ)
- Prata(SPOJ)
- Painters Partion(GFG)
- EKO(SPOJ)
- Square Root using BS (GFG)
- Floor And Ceil in a Sorted Array(GFG)
- First And Last occurence of an element(GFG)
- Count of element in a sorted array(GFG)
- Search in a rotated Sorted Array(leetcode)
- Logs(Atcoder)
- Search in A 2D Matrix (Leetcode)
- First bad version(Leetcode)
- Heaters(Leetcode)
Number Theory (Mathematics)
Recursion and BackTracking
- Aditya Verma - https://www.youtube.com/watch?v=kHi1DUhp9kM&list=PL_z_8CaSLPWeT1ffjiImo0sYTcnLzo-wY
- Codealittle - https://www.youtube.com/watch?v=-9FinR1AVys&list=PL1oKdRlSbldN8ffk23nuYQZwO0HSIPy9F
Bit Manipulations
- Codealittle - https://www.youtube.com/watch?v=5upadP-hWXQ&list=PL1oKdRlSbldNz2p_xrBMf2GhCKRm-cH2A
- codencode - https://www.youtube.com/watch?v=efL86JCONH0&list=PL2q4fbVm1Ik7ip1VkWwe5U_CEb93vw6Iu
Graph Theory
- CodeNcode - https://www.youtube.com/watch?v=VW85xQ6GJP4&list=PL2q4fbVm1Ik6DCzm9XZJbNwyHtHGclcEh
- Hitesh Tripathi - https://www.youtube.com/watch?v=1BPQYzCYDx4&list=PLJOYB9TDUqmlnn9mu11qHxxQK_ioX9Wdm
Dynamic Programing
- Tushar Roy - https://www.youtube.com/watch?v=8LusJS5-AGo&list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr
- GeeksforGeeks - https://www.youtube.com/watch?v=mmjDZGSr7EA&list=PLqM7alHXFySGbXhWx7sBJEwY2DnhDjmxm
- Aditya Verma - https://www.youtube.com/watch?v=mmjDZGSr7EA&list=PLqM7alHXFySGbXhWx7sBJEwY2DnhDjmxm
- TakeYouForward - https://www.youtube.com/watch?v=PPi3326JhGc&list=PLgUwDviBIf0pmD4Eur6Cl5XfBO4EtgKGe
Coding Platforms
- Beginners - Practice @ GeeksForGeeks
- Beginners - HackerRank (Must do for a Beginner)
- Beginners - HackerEarth
- Long Challenge and Short Contest - CodeChef
- Short Contest - CodeForces
- Mathematics - Project Euler
- Data Structures and Algorithms - LeetCode (For Data-Structures and Algos)
Important Data Structures:
-
Queue
-
Sets
-
Map
-
[Policy based Data Structures] (https://codeforces.com/blog/entry/11080)
Searching
- Linear Search
- Binary Search
- Ternary Search
Sorting
- Selection Sort
- Bubble Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
- Radix Sort
- Count Sort
- bucket sort
Mathematics:
Playlists
Number Theory
- Prime Number Generation (Sieve, Segmented Sieve)
- Euler Totient Theorem
- Fermat’s Theorem
- HCF & LCM (Euclid)
- Extended Euclid Algorithm
- Fibonacci
- Chinese Remainder Theorem
- Linear Diophantine Equations (Extended Euclid)
- Binary Exponentiation
- Modulus Arithmetic (addition,multiplication,subtraction,modular Inverse)
Probability
- Basic Probability and Conditional Probability
- Random Variables
- Probability Generating Functions
- Expectation
- Probability Distribution [Binomial, Poisson, Normal,Bernoulli]
Linear Algebra
- Multiplication ( Strassen's algorithm ), Logarithmic exponentiation
- Matrix Transformations [ Transpose, Rotation Of Matrix, Representing Linear Transformations Using Matrix ]
- Determinant, Rank and Inverse Of Matrix [ Gaussian Elimination, Gauss Jordan Elimination]
- Solving System Of Linear Equations
- Matrix Exponentiation To Solve Recurrences
https://www.youtube.com/watch?v=_thN1Rp_FRA
Game Theory -Greedy
Problems
- BUSY MAN(SPOJ)
- BIASED STANDINGS(SPOJ)
- life(SPOJ)
- Defense of a kingdom (SPOJ)
- Chopsticks(Codechef)
- EXPEDI(SPOJ)
- Fractional Knapsack(GFG)
- DIE HARD(SPOJ)
- GREGOVIA(SPOJ)
- SOLDIER(SPOJ)
- CHOCOLA(SPOJ)
- CMIYC(SPOJ)
- Station Balance(UVA)
- Huffman CodIng(GFG)
- Maximun Unique Segments(Codechef)
- Egyptian Fraction(GFG)
- Job Sequencing(GFG)
- Maximum Circles(HackerBlocks)
- Codeforces Subsequences(Codeforces)
- Good Strings(Codeforces)
- Palindromic Paths(Codeforces)
- Gas Pipeline(Codeforces)
Graphs:
Playlists
Graph Representation
- Adjacency Matrix
- Adjacency List
Graph Types
- Directed
- Undirected
- Weighted
- Unweighted
- Euler
Graph Concepts
- DFS
- BFS
- Strongly Connected Component
- Connected Component
- Cycle Detection
- Articulation Points
- Bridges
- Topological Sorting
- Bipartite Checking
- Flood-fill algorithm
Graph/Tree Algorithms
- Prim’s Algorithm
- Kruskal Algorithm
- Dijkstra
- Bellman-Ford
- Floyd Warshall’s Algorithm
- Euler Tour
Dynamic Programming
Playlists
- Tushar Roy - https://www.youtube.com/watch?v=8LusJS5-AGo&list=PLrmLmBdmIlpsHaNTPP_jHHDx_os9ItYXr
- GeeksforGeeks - https://www.youtube.com/watch?v=mmjDZGSr7EA&list=PLqM7alHXFySGbXhWx7sBJEwY2DnhDjmxm
- Aditiya verma- https://www.youtube.com/watch?v=nqowUJzG-iM&list=PL_z_8CaSLPWekqhdCPmFohncHwz8TY2Go
Classical Problems
- Fibonacci Series
- Longest Common Substring
- Longest Increasing Subsequence
- Longest Palindromic Substring
- Edit Distance
- Egg Dropping Puzzle
- 0-1 Knapsack
- Unbounded Knapsack
- Subset Sum
- Coin Change Combinations
- Coin Change Permutation
- Longest Common Subsequence
- Longest Substring Without Repeating Character
- Matrix Chain Multiplication
- Max Size Square Submatrix With One
- Maximum Length Chain
- Catalan Number And its Applications