Competitive Programming for Beginners
Resources:
1. Competitive Programming Playlist (Luv) :
Detailed explanations of C++ concepts, data structures and algorithms. Great for
beginners who want strong fundamentals.
Link:
https://www.youtube.com/playlist?list=PLauivoElc3ggagradg8MfOZreCMmXMmJ2. Striver’s CP Guiding Video:
A roadmap-style guide from one of the best CP mentors. Helps beginners understand
how to start, what topics to learn and how to practice effectively.
Link:
https://www.youtube.com/watch?v=lm5EiwiGtw0&pp=ygULY3AgcGxheWxpc3Q%3D .
Topic wise questions for practice:
C++ Basics 1:
• Constants and datatypes
• Input/Output
• Different types of operators
• Conditional statements
These problems are carefully chosen by our seniors to build a strong foundation in
C++. They focus on constants, data types, operators, and conditional statements.
Solving them will help you write simple yet correct programs.
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/J
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/T
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/F
https://codeforces.com/group/MWSDmqGsZm/contest/326907/problem/D
https://codeforces.com/problemset/problem/4/A
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/G
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/I
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/K
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/L
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/N
https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/Y
C++ Basics 2:
• Loops
• Arrays
• Functions
• Range of datatypes
• Headers and Namespaces
• Competitive Programming tricks
• Basic C++ Template for CP
These questions are selected to make you confident with loops, arrays, functions and
basic C++ templates used in CP. They also include tricks every competitive
programmer should know in the beginning.
https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/K
https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/H
https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/C
https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/Z
https://codeforces.com/group/MWSDmqGsZm/contest/219432/problem/J
https://codeforces.com/group/MWSDmqGsZm/contest/219774/problem/O
https://codeforces.com/problemset/problem/1/A
https://codeforces.com/problemset/problem/630/A
https://codeforces.com/group/MWSDmqGsZm/contest/329103/problem/G
https://atcoder.jp/contests/abc258/tasks/abc258_a
https://codeforces.com/problemset/problem/271/A
Time and Space Complexity:
These problems are hand-picked to help you understand how to measure efficiency.
They are perfect for beginners to practice writing optimized solutions and learn why
some approaches are faster than others.
https://codeforces.com/problemset/problem/1535/A
https://codeforces.com/problemset/problem/214/A
https://codeforces.com/problemset/problem/320/A
https://www.hackerrank.com/challenges/summing-the-n-series/problem
https://www.hackerrank.com/challenges/number-groups/problem
https://codeforces.com/problemset/problem/758/A
https://codeforces.com/problemset/problem/1374/A
https://codeforces.com/problemset/problem/1512/A
https://codeforces.com/problemset/problem/199/A
https://codeforces.com/problemset/problem/1269/A
https://codeforces.com/problemset/problem/1496/A
Problem Solving(General)+Strings :
This section strengthens your logical thinking and problem breakdown skills. String
problems, in particular, are a great way to practice handling input, substrings and
character manipulations. These patterns often appear in real contests .
https://cses.fi/problemset/task/1083 https://cses.fi/problemset/task/1094
https://cses.fi/problemset/task/1713 https://leetcode.com/problems/find-thedistance-value-between-two-arrays/
https://codeforces.com/problemset/problem/1335/C
https://codeforces.com/problemset/problem/1374/B
https://cses.fi/problemset/task/1071 https://cses.fi/problemset/task/1755
https://codeforces.com/problemset/problem/1343/C
https://codeforces.com/problemset/problem/1327/A
Number theory :
• Binary Exponentiation
• Greatest Common Divisor(GCD)
• Euclidean Algorithm
• LCM
• Prime Numbers
These problems cover GCD, LCM, primes, and modular arithmetic. They were
specially chosen to give beginners a smooth introduction to number theory, which is
one of the most used topics in CP.
https://codeforces.com/contest/1549/problem/A
https://codeforces.com/problemset/problem/1475/A
https://codeforces.com/problemset/problem/1165/D
https://codeforces.com/problemset/problem/17/A
https://www.hackerrank.com/challenges/sherlock-and-divisors/problem
https://codeforces.com/problemset/problem/1474/B
https://codeforces.com/problemset/problem/1143/B
https://codeforces.com/problemset/problem/797/A
https://codeforces.com/problemset/problem/682/A
https://codeforces.com/problemset/problem/1521/A
https://www.codechef.com/problems/STRNO
Searching and Sorting :
• Searching
• Prefix sums and Frequency arrays
• Sorting
• Binary search
Searching and sorting are very important in competitive programming. In this part,
you will learn about linear search, binary search, prefix sums, frequency arrays and
sorting methods. Knowing these basics will help you solve problems faster and more
easily.
https://leetcode.com/problems/sum-of-all-odd-length-subarrays/
https://leetcode.com/problems/find-pivot-index/
https://leetcode.com/problems/sqrtx/ https://leetcode.com/problems/search-insertposition/ https://leetcode.com/problems/product-of-array-except-self/
https://leetcode.com/problems/peak-index-in-a-mountain-array/
https://leetcode.com/problems/missing-number/
https://codeforces.com/problemset/problem/1675/B
https://codeforces.com/group/c3FDl9EUi9/contest/262795/problem/B
https://codeforces.com/group/c3FDl9EUi9/contest/262795/problem/C
https://codeforces.com/group/c3FDl9EUi9/contest/262795/problem/D