Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Useful Algorithms Beginners Should Learn

Правка en2, от Riyad_shamiul, 2025-12-05 17:10:20

Hi everyone! I’m sharing a simple and beginner-friendly roadmap that helped me understand what to learn in the early stage of competitive programming. If you are around 800–1200 rating, this list will guide you on what to practice.

  1. Basic Implementation

if/else

loops

arrays

string operations Helps with Div.3 A/B problems.

  1. Simulation Problems

Follow the process step-by-step Very common in 800–1000 rated tasks.

  1. Sorting

Built-in sort

Sorting + greedy idea Many problems depend only on sort + logic.

  1. Two Pointers

left/right pointer

sliding window Useful in array/string subarray questions (1000–1200).

  1. Prefix Sum

prefix sum array

difference array Good for range queries.

  1. Binary Search

search on sorted array

search on answer Extremely important as difficulty increases.

  1. Basic Math

GCD / LCM

prime checking

modular arithmetic Math appears in almost every contest.

  1. Greedy Algorithms

step-by-step decision making

sort + choose best option Used a lot in Div2 A/B/C.

  1. Beginner Graph Theory

BFS

DFS Enough to solve many 1100–1300 rated problems.

  1. Beginner DP

simple 1D DP

classic problems like stairs, basic knapsack Just understanding memoization is enough.

Goal for Beginners

Practice a few problems from each topic. Over time, you’ll recognize which technique fits a problem — and that’s the key to improving.

Suggestions?

If you know more beginner-friendly topics, feel free to comment!

Теги #beginners, #algorithms, #datastructures, #learning, #implementation, #competitiveprogramming, #practice, #tips

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Riyad_shamiul 2025-12-05 17:10:20 1108
en1 Английский Riyad_shamiul 2025-12-04 09:59:27 1853 Initial revision (published)