I use python and am currently an Expert on codeforces. I come across an unfair tle issue about once every months or so, when practicing. Didn’t really face any issues in a challenge till date. It’s honestly quite chill, if your algorithm’s right, it’ll pass 98% of the time. Answer from WubbaLubbaDubDub26 on reddit.com
🌐
Reddit
reddit.com › r/codeforces › python or cpp
r/codeforces on Reddit: Python or CPP
January 26, 2025 -

So i am starting my competative programming journey And i am also working as python developer in company should i use python or cpp for codeforces Like my all work is on python ml dl data science related things Should i stick to python or jump on cpp I will hardly take me 10-15 days to jump on cpp bcoz i have already done it in past

Everyone replies will be appreciated

🌐
Reddit
reddit.com › r/codeforces › python for cp
r/codeforces on Reddit: python for CP
December 13, 2025 -

A solved around 1000 problems with c++

I wana use python in CP and be good with py

So I want to know tricks of python in competitive programing

For ex :
if I need log(n) container like set and map in c++

If I Wana use lower/upper bound similar functions, nex_tpermutation

Useful optimization tricks like in c++ we don't do Str=Str+" cpp"; but we do str+="cpp" to avoid TLE I'M SURE that in py there are functions to avoid and use others for the TLE.

Like use pypy not python (idk if it's accurate advice)

....etc

I'm sure that there are alot of tricks and things to learn for py in CP

So..

recommend me some blogs youtube or any other resources for that

Thank you allllllllllllllllllll ♥️

NOTE : I WILL NOT FULLY SWITCH TO PYTHON BUT I WANT TO DO SOME PROBLEMS IN PYTHON

🌐
Reddit
reddit.com › r › codeforces
r/codeforces
September 22, 2014 - Codeforces is a website that hosts competitive programming contests. It is maintained by a group of competitive programmers from ITMO University led by Mikhail Mirzayanov. This subreddit is dedicated to discussions, updates, humor related to ...
🌐
Reddit
reddit.com › r/codeforces › best proven method to practice thousands of competitive programming problems?
r/codeforces on Reddit: Best Proven Method to Practice Thousands of Competitive Programming Problems?
July 11, 2024 -

Hello, fellow Redditors!

I’m looking to improve my competitive programming skills and want to practice thousands of questions in an effective and structured way. I’d love to hear from those who have a proven and foolproof method for doing this.

Some points I’d like advice on:

Choosing Problems: How do you select problems to ensure a balanced and comprehensive practice?

Difficulty Progression: What’s the best way to progress from easier to more challenging problems without getting stuck or overwhelmed?

Time Management: How do you manage your time effectively to practice regularly and consistently?

Learning Resources: What additional resources (books, websites, tutorials) do you use alongside solving problems to improve your understanding of algorithms and data structures?

Tracking Progress: How do you keep track of your progress and identify areas that need improvement?

I’d really appreciate any tips, resources, or personal experiences you can share to help me and others in the community practice more effectively.

Thanks in advance for your insights!

Find elsewhere
🌐
Reddit
reddit.com › r/codeforces › can you do the entire cses problem set using only python?
r/codeforces on Reddit: Can you do the entire CSES problem set using only python?
September 3, 2024 -

Some issues I have run into while trying to do this are: I need a data structure that does not have native support in Python (ex balanced binary search tree), I get a TLE with an algorithm that (I believe) has the right complexity to pass the test cases, etc.

I was just wondering if anyone has done most of them in Python and if they have any tips to get around some of the pitfalls of Python being slow and not always having the needed data structures.

Thank you for taking the time to read this!

🌐
Reddit
reddit.com › r/codeforces › need advice for competitive programming
r/codeforces on Reddit: Need advice for competitive programming
June 2, 2024 -

I've solved nearly 2500 LeetCode problems within a year. The first 700 took a lot of time, but I've become much faster since then. Now that I've nearly completed all the LeetCode problems, I'm looking to transition into competitive programming. However, I'm struggling with problems rated above 2000 on Codeforces.

How can I improve? Codeforces problems are taking significantly more time for me compared to LeetCode. Any advice, strategies, or resources that could help me get better would be greatly appreciated. Thank you all!

Top answer
1 of 5
15
You do not have to learn advanced techniques (like Mobius Inversion, FFT, Aho Corasick mentioned in another answer). By far the #1 thing that trips up Codeforces beginners is the increased focus on mathematical problems that you mentioned and not the advanced techniques. This means that they have to learn how to effectively do things like: Look at special cases of a problem (i.e. add additional conditions to simplify the problem) Make hypothesis and then try to prove/disprove them Find invariants "Play with the problem" in general My personal experience is that I trained using only online judges, and then joined Codeforces and made master in 8 contests, in which I solved 45 problems. The list of "standard algorithms" I implemented is as follows: BFS: 1x Modular exponentiation by squaring: 1x Prefix sums: 2x Z-algorithm/KMP: 1x DFS: 2x Binary search (even just using builtin methods) 3x This means that for the vast majority of the problems I solved required absolutely no standard technique. For these problems, the difficulty is making a mathematical observation that solves the problem, and then implementing it required only basic knowledge of STL (sorting, maps, etc.). EDIT: I noticed you're asking for techniques to improve, so my answer is to train the fundamentals of problem solving I mentioned above. For example, solve easier problems from national olympiads (like USACO), train with online judges instead of Codeforces, and do math contests. Here is a collection of contests for high schoolers in the US: https://artofproblemsolving.com/community/c3415_amc_12ahsme Even just solving problems 10-20 on all those contests will do a great deal to build your mathematical problem solving skills.
2 of 5
7
What's your leetcode rating
🌐
Reddit
reddit.com › r/learnpython › help with codeforces (rated 800 ) qs
r/learnpython on Reddit: help with codeforces (rated 800 ) qs
March 29, 2023 -

https://codeforces.com/problemset/problem/1619/A

this is the method i came up with, normally there wud be exception so i thought of parsing and checking if 1st parts equals the second remaining part of the string. i don't know what the errors. thanks 4 ur help guys.

for i in range(int(input())):
    st=input()
    for substring in range(len(st)):
        if st[0:sub] == st[sub:]:
            print("YES")
        else:
            print("NO")
🌐
Reddit
reddit.com › r/codeforces › how can i start codeforce
r/codeforces on Reddit: How can I start codeforce
March 26, 2025 -

Hello everyone, i hope u guys read this message in the best condition. I would like to have an advise,

Im currently 23 studying C++ in college but I really bad at that language because most of leetcode I did was in python but only took c++ in uni because they force me to, im a second year and currntly learning about DSA graph in both college and Neetcode. I also studied by myself about python from Neetcode and thats where I start to solve leetcode problems. i only practice in leetcode but just realized about this platform last month from Colin Galen, he really amazed me with his digusting solving skills. I really weak in math but I like solving algorithm, . Should I just finished all the neetcode algorithm lessons and jump right into codeforce or I need to get good at c++ first then start code force, Im currently reading competitive programming handbook c++ for the first few chapters also, should I just finished this book and jump in codeforce ?) or what? Please give me advise. Im trying to be data analys so codeforce has nothing much to do with my career but looking at algorithm and stress out is like a hobby to me and I want to be good at it.thanks

🌐
Reddit
reddit.com › r/leetcode › codeforces
r/leetcode on Reddit: Codeforces
June 5, 2023 -

I’ve done a ton of LeetCode problems, as well as some contests that I’ve done very well in. I’ve heard that Codeforces has more difficult and interesting problems so I went to check out Codeforces.

However, I immediately find the Codeforces user interface, problem descriptions, and the way that you’re supposed to take input very confusing and unwelcoming. Has anyone had a similar experience? Can anyone help me get started with Codeforces?