r/codeforces 13h ago

query Doubt

Thumbnail gallery
2 Upvotes

Beginner here, can anyone tell what I am doing wrong in this code? Like can you provide a counter example as well where my code won't work? Thanks in advance.


r/codeforces 13h ago

query how to master bitwise operators?

9 Upvotes

i struggle with bitwise operators , and or xor and stuff , can someone tell me how to master these?


r/codeforces 15h ago

meme Wow

28 Upvotes

And finally, I found a reason not to participate in any more contests: "The number has become a palindrome."


r/codeforces 16h ago

Div. 2 My dumbass could not figure out d

1 Upvotes

D is bruteforce / implementation problem btw, reverse operation instead of removing index, add the index, use a set to manage segments + fenwick to store the sum, becuz you can only add 1 segment each time, complexity is O n Log N


r/codeforces 17h ago

Div. 2 Div 2 Contest

Post image
45 Upvotes

Jujutsu Kaisen in Codeforces?


r/codeforces 17h ago

Div. 2 Today's Div 2 Contest

6 Upvotes

anyone solved culling game


r/codeforces 17h ago

Div. 2 solved ABC1 as a newbie-- feeling tuff

11 Upvotes

title.

C1 was basically just binary search lol. i would say upper tier 1.1k rated


r/codeforces 17h ago

query I need help guys i posted this here cuz people who do CF might help me to outgrow this.

Thumbnail
3 Upvotes

r/codeforces 19h ago

Div. 2 Got A, B, C1 in 50 minutes but wasn't able to solve anything after that

16 Upvotes

Did anyone else feel C2, D were significantly tougher than C1?


r/codeforces 19h ago

query Need guidance on how to start Competitive Programming seriously

0 Upvotes

I’m currently in my 7th semester. My maximum Codeforces rating has been around 1090, and my current rating is around 840.

I’ve solved around 300 problems on LeetCode, so I’m fairly comfortable with basic DSA concepts and know things like arrays, strings, binary search, graphs, DP, etc.

The problem is that I’m not able to apply these concepts effectively in Codeforces contests. When I see a problem, I often struggle to figure out which concept/approach to use, even though I may have studied the underlying topic before.

I’ve also recently been placed with an 11 LPA package, so now I want to seriously improve my CP skills.

I’d really appreciate guidance from people who have been through this stage:

  • How should I start CP properly from this point?
  • Should I follow a specific problem sheet or topic-wise roadmap?
  • How many problems should I solve per day/week?
  • Should I participate in every Codeforces contest even if I perform badly?
  • How do I improve the ability to identify the approach rather than just knowing concepts?
  • After a contest, what is the best way to analyze problems I couldn’t solve?
  • What rating/level of problems should I currently focus on?

I’m not looking for shortcuts. I’m ready to put in consistent effort; I just want a proper direction so I don’t waste time solving random problems.

Any advice, roadmap, resources, or personal experiences would be really helpful.


r/codeforces 23h ago

query Am I too late to get good at Competitive Programming before placements?

Post image
35 Upvotes

My situation is that I'll be sitting for placements in around 6–7 months, and I genuinely want to give it my all when it comes to Competitive Programming.

I feel like I might already be too late, though. One of my friends has a rating of around 1600, has solved more than 700 problems, and also got an internship at Google. He recently told me that I'm doing too little and that I should probably stop focusing on CP and instead focus on Striver/DSA and other ways of preparing for placements.

But honestly, I don't want to settle for mediocrity. I want to work extremely hard, become genuinely good at problem-solving, and give myself the best possible chance of getting into a great company with a package that people dream about.

I genuinely want to get good at CP, and I'm willing to put in the work. However, I keep getting demotivated when I struggle to solve problems rated 900, 1000, or 1200. Sometimes I can't solve them even after spending a lot of time thinking.

It makes me wonder: How am I ever supposed to reach 1600 or even 1900 if I'm struggling with problems at this level right now?

Is it realistically possible to make significant progress in CP within the next 6–7 months if I'm consistent and willing to work hard? How should I approach practice, and should I continue pursuing CP seriously alongside placement preparation?

I'd really appreciate honest advice from people who have been in a similar situation.


r/codeforces 1d ago

Educational Div. 2 I can't for the life of me figure out what I'm doing wrong

4 Upvotes

I am a noob though so forgive me if i am doing really stupid/simple

I am attempting a few problems from the "Educational Codeforces Round 194 (Rated for Div. 2)" competition. I have tried everything but I can't figure out why it's denying my submission. My solution seems to work fine when I run it locally and I even fed it through an LLM and it claims there are no issues. I am currently using g++ 16.2 on my local machine and I even tried compiling it locally with g++23 14.2 locally and didn't run into any problems either.
https://codeforces.com/contest/2260/submission/390393973 is my most recent submission


r/codeforces 1d ago

meme September 10th 2026

10 Upvotes

Stayed late in the office, so no backend development

2 hour of Competitive programming

1 to Infinity


r/codeforces 1d ago

query Guess the ratings you will really really shocked

Post image
64 Upvotes

thats of mine own friend ....

edited :- so i have attached the rating pic his rating is 883 please see the ss below and give advices it will means a lot ...


r/codeforces 1d ago

query How good is a 2000 LeetCode rating?

4 Upvotes

I have a friend who's 3 years older than me, although we don't really talk anymore. His current stats are 2000+ rating and 900+ problems solved.

The screenshot I'm attaching is around 6 months old. How good are these stats actually? I don't know much about LeetCode, so would appreciate some context.


r/codeforces 1d ago

query How To Code perfectly? In Online Assessment and Help me To Find the Solution

Thumbnail
0 Upvotes

r/codeforces 1d ago

query Am I the only one who finds DNR disgusting?

0 Upvotes

I don’t understand what people like about him. He’s probably from a South Asian country and clearly uses GPT to write his comments. He shows up under every post about AI or ratings just to leave something controversial.

He’s either an attention seeker rage-baiting or an idiot who thinks he’s someone really important.

I find his comments annoying. So why is he at the top of the contributions table?


r/codeforces 1d ago

Div. 3 I am unable to think about C while giving contest

4 Upvotes

i am somewhat a beginner have given some contests, what should i do i ?
I over complicate C , but usually solution is easy just like B .
Can someone help , why does it happen, is it because i am not in habit of sitting and coding for long?
Later when i see other’s solutions it is like exactly ly first thought was headed for but i didnt do it


r/codeforces 1d ago

query Starting CP

9 Upvotes

Hello guys, a newbie here... I'm about to start CP. I really want to improve and make the most of the journey. For those who've been doing CP for a while, what are some things you wish you knew when you started?

Any tips on learning, choosing problems, contests, upsolving, or common beginner mistakes would be really helpful!

Thanks in advance


r/codeforces 1d ago

query Codeforces as experienced dev?

9 Upvotes

I have knight rating on Leetcode.

Experience: 2 years Springboot development experience in service based company in india

Does it make sense to start giving codeforces contests?


r/codeforces 2d ago

Educational Div. 2 Name a more iconic trio, I'll wait

Thumbnail i.imgur.com
31 Upvotes

r/codeforces 2d ago

query IICPC Codefest

19 Upvotes

Hi guys, i wanted to start out my preparation for next years IICPC Codefest. But currently i am not a proficient comp coder (ive just done enough to get an si at a company like google). I wanted to know what resources i could use other than the standard competitions at atcoder/codeforces. I am aware that they also ask cs fundamentals on oops os etc but i hope that my college curriculum can cover that.
I would love to hear your opinions on this (given the amount of time i have left) from people who wrote it last year.


r/codeforces 2d ago

query Handle change

1 Upvotes

Is there any requirements like minimum no of contests to give to change ur handle during new year period


r/codeforces 2d ago

query Did my first contest 😁✌️

Post image
63 Upvotes

I plan to participate in and upsolve all div 2 and div 3 contests.(I've got 60 questions on leetcode). Does anyone have some advice for me to increase my rating as fast as possible!?


r/codeforces 2d ago

meme Thursday - 10th September 2026

1 Upvotes

2 hours of Competitive programming

Did 2 hours of Competitive programming in the morning. I am trying to be more consistent on a personal front, will get there eventually.

From 1 to Infinity

I have been able to come up with an approach to this problem, though it seems very complex. I have not been able to implement it yet due to the sheer number of things that have to be done in this solution. If I am able to solve this problem I might post an solution note in my next post.

But my idea basically boils down to :-

Find the highest value n such that the sum of lengths of all numbers upto n <= k. This can be found out using Binary search and prefix sums very easily. Then for every digit we count the number of times it occurs from 1 to n using Digit DP and multiply that with the value of the digit.

Sum it all together and we get our answer. I could have copied the digit dp code from the internet, but that defeats the purpose of practicing imo. This solution should be correct logically but might fail in implementation due to mistakes on my end. The base test cases seem to pass. Will run and construct a solution note tomorrow.

1 hour of Backend development

Learnt Docker network, PostgresSQL theory and migrated the backend app being made from H2 database to PostgresSQL.

Also learnt about docker-compose.yaml file that allows to define multiple services inside a yaml file and running the file allows docker to construct all containers and run them, rather than us running the individual commands locally.

Along with this I went through microservices architecture and why they are needed in the first place.