Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×
Useful Algorithms Beginners Should Learn
Разница между en1 и en2, 1108 символ(ов) изменены
Hi everyone!↵
I
 just wanted to’m shareing a simple list of algorithms and topics that beginners (including me) should focus on when starting competitive programming. These are the basics that help a lot in early contests like Div3 and Educational Roundsand 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↵
↵
Iif/else, ↵
↵
loops, ↵
↵
arrays↵
↵
Sstring handlingoperations↵
Helps with Div.3 A/B problems.
↵
↵
2. Simulation pProblems↵
These are the easiest and help you solve A/B problems regularly↵
Follow the process step-by-step↵
Very common in 800–1000 rated tasks
.↵
↵
 23. Sorting↵
↵
Using bBuilt-in sort↵
↵
Understanding how sorting helps in greedy problems↵
Many 800–1000 rated
Sorting + greedy idea↵
Many
 problems depend only on sorting + simple + logic.↵
↵
34. Two Pointers↵
↵
Using left/right pointers↵
↵
Ssliding window↵
Very uUseful in array, /string, and subarray problems around questions (1000–1200 rating).↵
↵
 45. Prefix Sum↵
↵
Pprefix sum array↵
↵
Ddifference array↵
HelpfulGood for range queries or cumulative calculations.↵
↵
 5
.↵
↵
6
. Binary Search↵
↵
Ssearching on sorted array↵
↵
Ssearching on answer↵
One of the most useful toolsExtremely important as difficulty increases.↵
↵
67. Basic Math↵
↵
GCD / LCM↵
↵
Pprime checking↵
↵
Mmodular arithmetic↵
Math
-based problems appears in almost every contest.↵
↵
 78. Greedy Algorithms↵
↵
Making decisions step-by-stepstep-by-step decision making↵
↵
Ssorting + choosinge best option↵
Most Div2 A/B/C problems use greedy ideas.↵
↵
 8. Simple
Used a lot in Div2 A/B/C.↵
↵
9. Beginner
 Graph BasicsTheory↵
↵
BFS↵
↵
DFS↵
Just knowing these two will helpEnough to solve many 1100–1300 rated problems.↵
↵
 910. Beginner Level Dynamic Programming↵
↵
1D DP↵
↵
Simple DP
DP↵
↵
simple 1D DP↵
↵
classic problems
 like “stairs”, “basic knapsack basics”↵
Not advanced DP — just the idea of
↵
Just understanding
 memorization is enough for starting.↵
↵
Goal for Beginners↵
↵
SolvPractice a few problems from each category and try to use these techniques inside contests.↵
The more problems you solve, the easier it becomes to recognize which algorithm fits a problem.↵
↵
That’s all for now!
topic.↵
Over time, you’ll recognize which technique fits a problem — and that’s the key to improving.↵
↵
Suggestions?↵
↵
If you 
haveknow more beginner-friendly algorithm suggestiontopics, feel free to comment !

История

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