This post took $$$4$$$ years to make. And this is the most significant thing that I have ever shared in my whole life.
Story
Hi, I have been doing CP for like $$$4$$$ years and from the very beginning what I have been feeling is a need for a comprehensive topic list that will contain all sorts of topics from easy to advanced with corresponding tutorials, problem lists and templates so that I wouldn't have to look at different sites, from here to there. So what do you do when you think something is missing from the world? Yeah, you create that thing! So here I am, sharing the ultimate topic list that you will need in CP.
When I say that it took me $$$4$$$ years to make it, I genuinely mean it. I have been collecting them from the inception of my CP journey and yesterday I thought that it got its almost complete shape. You may not imagine the sheer excitement hidden under each of the characters of this post.
Payment
You can pay me just by upvoting this blog and by being a better programmer and human being than what you are right now.
About the Topic List
I have added a few tutorials for each topic. You can also find more of them by just using your best companion — Google.
Added few problems for each topic. But you may notice that some of the topics don't have any problem attached. That's because under the attached tutorial section you will find lots of problems with that topic. If you want more problems, then you can do it just by using Google.
I have attached my template for each topic. You may not call it a template because some of them don't support the generalized use of the topic. But you can use them easily if you understand the topic and solve problems using that template.
Lastly, I tried to state the difficulty of each topic by numbers from $$$1$$$ to $$$3$$$ so that people can understand what are the best topics for them. The distribution is as follows:
- $$$1$$$ — If your rating is $$$1600 - 1899$$$
- $$$2$$$ — If your rating is $$$1900 - 2399$$$
- $$$3$$$ — If your rating is $$$2400+$$$
If you are a beginner then just learn basic topics and solve problems.
Topic List
Link: smash me
Contribute
You can comment the topic names that you think are missing right now and I am pretty sure some links are broken, do point those out if you find some.
Additional Comments
I really wanted to post this blog before I die. Seems like I managed to do that. It's funny that I had this constant fear of what if I die before sharing this blog with the world given that the amount of work I have given to create this is monstrous. But now I am so happy that I am alive at this moment.
Conclusion
The whole purpose of this project is to help you with this astounding journey of you trying to be better, trying to achieve the best of what you can imagine. Hope that my efforts won't go in vain. I am waiting to see you at the top of the building that you made by the bricks of your expectations. I am waiting to see you smile and to be happy. Don't forget to enjoy the journey and have fun while riding the boat.
Great blog vai
What is vai ?
vai means 'brother'
brother
Its bhai, vai kya hota hai
In bengali the pronunciation is more like 'vai'. 'Bhai' is more likely hindi or urdu pronunciation.
You are right, In bengali the pronunciation for bhai is 'vai'.
sanuk2540 It will be "It's", not "Its".
thik vai
You sir are a hero we don't deserve. Thank you very much for your amazing contributions to the community.
Why you don't deserve it, did you eat sand?
orz
Orz , One of the best blog ever with all the details cleanly presented
It's currently the 3rd most upvoted blog on codeforces!
Which is first?
https://codeforces.com/blog/entry/86174
Now it is the highest-rated blog ever.....
It can't Waite to be the first!!
It is first now
Bhallagse!!!!
just awesome
You did a splendid job brother!!
thanks
This is amazing!!!! Thank you for all your efforts. But would you like to discuss, which ones we actually need? Being a cyan, I certainly don't need all of them, at least not now. Same goes for the greens and below.
I have mentioned the difficulties of each topic.
Thanks YouKn0wWho!!
nice brothe ..its amazing , please pray for me that i want to a good cp .i always of you.
thanks a lot brother... may Allah help you for helping us <3
Very good job bro. This is really good.
I hope I'd be able to cover most of the topics in this list before I die.
Many Top coders of Bangladesh are scared to share their resources templates, etc..... Great to finally get someone like YouKn0wWho who shares without any hesitations. Take love bro.
Well, many of them gathered and or created their library bit by bit and learnt throughout the whole process. For the perfect code sometimes several trials are needed. When you just get a full library you can't actually realize how much effort is needed for that. What Shohag vai did is really amazing. But if he didn't you couldn't blame him for that.
This blog is life saver. You deserve unlimited upvotes for all your effort.
insane!
This is going to be at the top of my bookmark lists. Very well organized resources. Thanks a lot!
would be better if you could also add the order in which these topics should be studied
Great work bhai
Thanks a lot vai. ❤️❤️❤️
Bravo!!I am really proud that you are a man of my nation.
Great creation!!! bhaiya. Take dua from heart.
YouKn0wWho ?? Yes, i know! You're the best. Thank you brother!
This makes me think about his efforts, discipline and most importantly PASSION for problem solving since last 4 years. Thank you for this bhaiya ^_^
LOVE IT BHAI >> <<
Take love Bhai ^_^
Great vhai
This blog should get the highest number of upvotes. Kudos! to your great efforts.
serra vai
Jajakallahu khairan, vai.
Gonna pin this tab for the rest of my cp career. Thanks a lot bhai<3 You are the best.
Thanks, brother!
insane vaiya.
What a next-level blog this is:-0 Very helpful for everyone! <3
contribution += 4. Boom!! top ten contributor. Advance congratulation. And yes i copied your name. I don't know why but i did.
This blog deserves constantly 4 years upvoting.
"From the very beginning what I have been feeling is a need for a comprehensive topic list that will contain all sorts of topics from easy to advanced with corresponding tutorials, problem lists and templates."
Every Competitive Programmer Ever: "Highly relatable."
Thanks a lot vai. May Allah reward you.
Assalamualikum .I've been following you since the day I saw you set up problem's on codechef. I just thought how I would be like you. After seeing your post on codeforces, I thought I should have to work harder. Thank you for giving us such a library. The only regret is that you have not now accepted my friend request on facebook.
great job dada
This is just gold! Thanks a lot!! Not all heroes wear capes.
Really bro it is great work you have done I can't express in words my happiness after seeing this I just pray to god that he gives more power to you to make such content
Outstanding blog bhya.. So,glad to know you. You are our pride & also pride of SUST. Go ahed..
Good job my friend!
This is called the real contribution
It is just awesome. Thanks for helping us...
What a blog it is ! All in one. Can't imagine, how much dedication behind this !
Epic✨✨
Well ,now I am confirmed that you are an alien!!!!!!!!!!
Thanks a lot brother ! love you. You did a great job . It will be very much helpful for the people like me who just entered into CP world and don't know how start and from where to start ! I love you and huge respect for your great work.
Advance congratulations for becoming one of the top contributors in codeforces!!!! <3 <3
And congratulations again!!!!
I don't know how can I thank you. Best Wishes to you bhai.❤️
Let's push him to the top 10 contributor's list. This blog is a real gem.
Update: It's been done. They're now 3rd (and rising) top contributor!
Great job vai
This deserves to be the most upvoted post ever.
It is now
Insha Allah, Allah will give you the best reward for your work.
This is going to be one of the top 10 upvoted blogs on Codeforces!!
*top 1
Respect ++ for u!!! thanks a ton
This is a competitive programmer's paradise. Really appreciate the time and effort put to build the whole compilation of blogs and most importantly codes to reference!
Amazing, Great Contribution!!
Thanks very much.
Nice!Thank you!
JazakAllah Khairan Vai❤️
OP
YouKn0wWho orz
This will help a lot of people. May god bless you.
I think using spoiler might be a good idea :|
This deserves to be Pinned on the Home Page.
U just nailed it bro..Thnx for this :)
I have found the best blog ever. This is really amazing, hats off man, thanks for this amazing contribution.
Guess who is going to be the 1st contributor on Codeforces in the next few hours? Respect!
Should learn topics difficulty wise? All type of topics difficulty-1 then 2 and so on?
Masha Allah
This is awesome. Thanks a lot for your efforts and contribution.
I wish MikeMirzayanov would allow this post to show on the CF home page!
The best Blog I have ever seen.Kudos to you,bro!!
Thanks bhai
Good work Shohag. But I think it will be much better if the problems are sorted according to their difficulty into all categories. Carry on brother.
Actually I thought about this but lets say there are 5 variations of Segment tree of varying difficulties. So I wanted to state them at one place so that if someone wants to master Segment tree he doesn't have to check the whole blog to know of the existence of other variations.
Yeah,got your point.It's just my opinion.
Simply brilliant !
Thank u so much
121 LCA in O(1) has broken code link
Actually, In between URL If there is a parameter ex: (')(")(+) then the link will be broken. Because it's a kind of SQL Injection threat. You can check YouKn0wWho's personal Blog post here
Thank you so much!!
Orz
Thank you Bhai. You have saved my time and I going to bookmark your post.
Thanks for such a detailed and helpful blog.
Great job indeed!!
I don't know what can I say. I really appreciate and respect the tremondous effort that you put into this. I am sure this blog will become the first blog that any cp newcomer must know. Thank you !!!
some blogs should be pinned in blogs list, and this is one of them
thank you
RESPECT
now I am excited and depressed at the same time
Great job bhai! It’s a great contribution for the community :D
thanks for sharing
You have everyone respect Mr. YouKn0wWho
Khoob Bhaalo/ Bahut badhiya/ Very nice
Thanks a lot, was in a great need of this
Great blog.
Great blog. One question though. Do you know all these topics? If not then how did you decide their difficulty?
Awesome bro, great work. Thanks for putting a lot of time and efforts for making this post. Also btw congo on making in top contributor's list. :-D
I am commenting as an attempt to push this blog to recent actions for others to know/utilise this blog
Thanks for sharing the Gem!. Thanks you so much for compiling all the topics. Did you imported the project from github or manually added each links, it is quite huge! Huge Thanks YouKn0wWho!
Amazing work brother!
i upvoted you with 12 accounts of mine :D thnx a lot and congrats youknowwho( didnt want to ping him unnecessarily) to make to the top 10 contributors
simply orz!
This deserves a million upvotes.
thanks a lot <3
Really good collection of questions.
Wow
Thank you so much brother
GOD EXISTS IN REAL LIFE
Now this is REAL contribution.
I wish I could do more than 1 upvote thank you so much
great blog !!!!! thank you for sharing this !!!!!!!!
Is this the list of stuff that I do not know
<3 Take love
really appreciate your work. this collection of problems really helps me to improve my self in CP. Thanks a lot. I feel kind of lucky that I have this kind of collection to study.
Are you even human?
This blog deserves to be on the home page.
so many things to learn orz
YouKn0wWho Please add fracturing search to the list. There is a nice problem of this topic at the last educational round 1574D - The Strongest Build.
what's "fracturing search"?
It's something that @Resende knows and you don't:)
Suppose you want to find the k-the best configuration of some object. Fracturing search allows you to visit all k best configurations, even if your search space is huge as k is in the complexity. Fracturing Search Tutorial
Amazing contribution brother, but I've one concern.
I'm certainly a beginner to CP so I decided to follow your list completely, I had requested access yesterday morning but haven't received any access updates till now.
Do I have to wait till they provide access or what??
EDIT: It's been two days, I still haven't received any shared access on my Gmail. Can someone help me out??
The real power of CF community.
Thanks YouKn0wWho
Great Work Vai <3
Thanks a lot brother ,now this blog is going to be bookmark for most of us.
Sum of The Number of Divisors in cbrt(n) link of code is not working
btw thanks a lot .
Check it on his personal blog here :)
in what order do you recommend us to learn?.
Congrats brother for being top contributor <3 and thanks for the list <3
I think it would be useful to add AtCoder DP contest https://atcoder.jp/contests/dp/tasks
The problems there are very helpful.
This will take:
time...
If it isn't too much of a hassle, could you please put the lists into separate 'spoiler' tabs? i think it would greatly improve navigability! The long lists (for which i am very thankful) are quite tedious to travel..
Thanks a lot for your effort!!
Done
I think koderkushy meant something like
...
...
instead of one big spoiler.
I did the appropriate changes for this but when I try to post the blog it shows
504 gateway time-out
(I tried 5 times). Maybe that's because the raw HTML file contains almost 200k characters.That's a pity.
But then I think there is no reason to hide everything in one big spoiler. That's the main part of the blog.
(also, amazing job!)
I think finally I did it but not here :(.
Indebted to you a lot brother. Take love.
You included Resources! I had only seen people giving question sets thanks!
orz
We could definitely see how much effort you have put in YouKn0wWho and I couldn't explain how much impactful this is gonna be. Thanks a lot for this. We are grateful to you and gonna share it with all my programmer friends.
I really have to say that this is some real good work.Thanks.
I haven't ever seen such a big list of CP topics.
orz.
🆃 🅷 🅰 🅽 🅺 🆈 🅾 🆄
You really deserve a 🏅 .
orz, bookmarking
An excellent blog. Much appreciation to you.
I suggest adding Konig Theorem in Graph Theory section, here is a good resource about it.
It's awesome!Thanks!
useless trash
What should be the order in which we should do these topics as I am going for placement in 2 years so There is not much time for me to learn all these topivd....though I find competitive very interesting and I m not gonna leave this throughout my career but for sake of practical thinking...please guide me to reach up to 1600 rating
For $$$1600$$$ I don't think you will need to learn more than the basic stuffs.
Thank you so much sir
please drop a payment option.! it is more thn expensive! X|
I agree, a donation option should be available, considering the huge work.
Thank you so much, Vaiya.
Excellent material for cp.
thank bro
I also wanted to point out that the link for matrix exponentiation problem is taking me to FTT problem. maybe you put a wrong link there by mistake. It is a little misleading so I would recommend removing that.
Thanx for this amazing blog.It is really helpful
Is this the most upvoted blog ever on codeforces?
Nah, rng_58's retirement blog is still on top I guess, and by a huge margin.
You are right. But this blog is on 6th place right now and is raising up: it's really worth to be the most upvoted one
It is now!
Mama tumi kamal kortaso
Great blog Brother. At first, I thought these are all very advanced topics and I really should not learn new topics, as I already learned and practiced so many algorithms that I never used, or could use/implement, or even need at the level/rank I am currently in. But then again, while scrolling through the blog, some topic names caught my attention, which I could not resist learning. I tried to know more about Matrix Exponentiation, range BIT, and today while solving random problems, I even got the chance to implement range BIT!
(BTW pls suggest to me some more interesting topics from the list, that I will face more frequently in the future)
This is super helpful for beginner and intermediate coders, many topics look unfamiliar. Great post sir!!
Curious if this blog is the most upvoted thing on codeforces?
Not yet. Source
For the Basic Topics : 1 2 3 and 4 , Which links to the codechef page, requires additional permission as depicted in the image below when we try to access the links present in the codechef : https://ibb.co/FhxBBgN
I am trying to access the topic links from the link : https://www.codechef.com/ioi/basics
Great job vai I loved it
YouKn0wWho vai, 147 — Johnsons Algorithm, Code template is not working. Can you please fix it?
Thanks a lot for soo much of efforts bruv. BTW , the thing I am the most curious about is how your college's name is the same as your name. Any chance that it's your own college?
it's just a coincident. BTW i feel, why there is no haha react in cf? after i saw your cmnt.
It's a name of famous Islamic religious teacher from hundreds of years ago. The Institute is named after him.
Thanks a lot for this blog. I have made a resolution to complete this list in next few months (7-8 months).
That's a bad idea. This is a huge list and many topics are very advanced.
Practicing CP is about understanding algorithms and applying them yourself, not just about reading an article. It takes time.
Really, in that case you should stop the Twitch and Youtube Channel!
Then I will just practice questions according to my current level (as you suggested in YT videos) and study these topics as I encounter them. BTW thanks for guidance.
So,I want to becoming a good at problem solving and want to reach at atleast Expert in next 5-6 months then which of these tags and difficulty i have to focus more. Currently I have decent level of DSA Skill (Solved A Lot LeetCode) but struggling with speed in contest. Thankyou if you Reply it would be great Help Errichto.
GREAT!
If you are too lazy like me to come to this great blog every time you want to learn something, you can refer to this PAGE visually sorted by color too. Have a great learning!
Links doesn't seem to work!
It seems to work for me just fine. You can copy the code and save it in your local machine too.
Great Blog,** thank you**
You can also check out — https://quriosity.tech/
Thank you very much , i want to ask that is the link is in sequence, I mean would you recommend me going through topics in a sequence ?? and one more time, thanks a lot , this is very helpful.
great work in this question I used your hashing code and according to me time n^2 * log(n) but still getting tle in 76 test case question link :- https://codeforces.com/contest/113/problem/B
solution :- https://codeforces.com/contest/113/submission/130230945
Thank you so much! I’m elated because this is what I was finding. I decided to make a checklist from this topic. You can see it here: https://github.com/quocdat-le-insacvl/cp-roadmap-checklist Hopefully it helps somebody. Thanks!
This is what I am looking for for long days. Thank you so much
Thanks YouKn0wWho. I know you.
You a pro bro
You have done a great job sir it will help many CP lovers.
But, no one talks about beginners when we all know beginners get more difficulties in finding proper materials and all. Due to this i am stuck at 1200 since 2 years after doing more than 1800 questions on 'codeforces'. you can feel my pain from every character of this post.
You had solved lot of problems and you are consistent too. Good luck you will reach expert very soon :)
How helpful this man is!!
that's great!
Great list of all topics. But I think difficulty is wrong for many entries. 1 is set for those which is hard for me (I had 2200 maximum rating, and now I have 2066). And there are other cases.
This is literally amazing. The efforts are enormous. Thank you very much. orz
apnake jotoi dekhteci totoi obak hocci. great work vai
commenting so that i can visit later
vai this is diamond!
This blog has been made awesome. Thank you bhai.
Thank you.
This is a gem. Thanks for providing with all such resources.
YouKn0wWho Can You please include Difference Array (https://codeforces.com/blog/entry/78762) in the list. Even though those problems can be solved by BIT. It might be helpful for beginners.
Vai this is so amazing.
Thanks guys, this is now the most upvoted Codeforces blog ever!
The click here link in Topic list section is not working
Yeah, it's not working:/
It's just me or the topic list is empty ? (well I will just see this as a chance to visit your great blog)
The list is not visible to me too
His blog is worth a (many) visit so this is actually good, if there is a list above people won't check his post in blog that will be updated
You are the best!
Ghê
ultimate overflow
Awesome
HOW DO I GET ACCESS TO PROTECTED PORTIONS OF THE LIST???? PLEASE REPLY SIR !!
This is going to be at the top of my bookmark lists. Very well organized resources. Thanks a lot!
loved it vai, thank you so much for all the efforts just to make us better
i have accessed to the blog few times ago but yesterday i've been noticed that "this page isn't working right now". Anybody like me ?
Yes. Please YouKn0wWho look into it.
Its fixed now, thanks.
ORZ
Thanks for the list. Only one problem IMO, a lot of the topics are way too hard relative to the rating that they're assigned. For example, who needs to learn about prefix automation or dinic's algorithm as an expert?
this site is not working ..
Sorry for the inconvenience. Seems like my email verification was pending and I have just done it, so the site will automatically be activated within 24h.
The blog said if you are a beginner to solve problems and learn topics can someone tell some topics for beginners, like I want to be able to solve A and B confidently of which I am suffering. any help would be much appreciated and a prayer from me.
@YouKn0wWho, How do you used to practice in codeforces as a beginner ? Should I solve 200-300+ rating above my rating or should I practice solving by topic wise?
Thanks for sharing this with us, I'm a beginner and i was looking for something like this.
Excellent resources. Thanks!
Sorry but it is possible to make the site available without running JS?
bhai ki obostha? ei post ta Bangladesh er ekjon korse dekhtei koto vallagtecge. BTW apnar profile er backgound ta joss koi eta?
Nice bhai !
great blog! i think it will help me more!
respect for you
great
Great brother.GOD bless you
দাদা আমি just শুরু করলাম ৪০ তার মতো করেছি কি করা যায় কিভাবে questions করবো একটু হেল্প করলে হতো
can you please order the topics in each section in order in which a beginner should learn
orz
Orz
You Are Amazing
Very helpful
Thanks to MikeMirzayanov for polygon platform and CodeForces team!
Bro Awsme blog... helped a lot!!
There is nothing called
HDLT
;) in data structure section. Please compile content of the stuff you are writing.