๐ ๐
Competitive Programming Hello Programmers
๐ ๐ 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
-
Coderbyte
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
- Competitive Programmer's Handbook - by Antti Laaksonen
๐ ๐
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++
Binary Search
- Aditya Verma Video
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 occurrence 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)
- CodeNCode - Video
Recursion and BackTracking
Bit Manipulations
Graph Theory
Dynamic Programing
Coding Platforms
- Beginners - Practice @ Codecademy
- 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
Searching
- Linear Search
- Binary Search
- Ternary Search
- Jump Search
- Interpolation Search
- Exponential 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
Video
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
- CodeNCode - Video
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
- Lowest Common Ancestor using Binary Lifting
- Kruskal's Minimum Spanning Tree Algorithm
Dynamic Programming
Playlists
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
- Snake and Ladder Problem
- Word Break Problem
- NโQueens Problem