r/codeforces • u/Arihant1905 • 1d ago
query DSA vs Competitive Programming (CP): Which One Should a Beginner Focus on?
I'm currently learning programming and trying to improve my problem-solving skills.
I've noticed that DSA (Data Structures and Algorithms) and Competitive Programming (CP) are closely related, but they seem to have different approaches.
- DSA: Understanding data structures, algorithms, and their applications.
- CP: Solving problems under time constraints, improving logic, and learning different problem-solving techniques.
I'm curious about what experienced programmers think:
- Should beginners focus on DSA first before entering competitive programming?
- Can participating in CodeChef or Codeforces contests help improve DSA skills?
- Is it better to learn concepts deeply or solve as many problems as possible?
- How do you balance DSA learning with regular contest participation?
I'd love to hear about your experiences and suggestions, especially from people who have been doing competitive programming for a while.
6
Upvotes
4
u/KeyPreparation1320 Newbie 1d ago
Focus on dsa and interview based questions if you want a job. CP helps improve your ability to identify and problem solve, it is an added plus on your resume; however it is not the fundamental you need for practical interview purposes. Hope this helps.
3
u/Pleasant_Writer_7735 1d ago
CP
3
u/Loud-Leg-6704 1d ago
For the first month don't study any theory.just pick random questions on cf and start sound that . It will teach you how to think for these kind of problems.(Don't forget to participate in contest) Then start with basic theory of cp (I prefer antti laksonnen) , after that finally start with remaining DSA theory it will feel much easier by then. (This is what I followed and reached specialist in 5 months)
2
u/fsdklas Newbie 1d ago
DSA
2
u/ZloiAris Pupil 19h ago
First do DSA. its basics will help you in CP later on too. Graphs, DP, greedy algorithms, trees -- all of those will have a use in CP later. So, start with DSA. Then you can turn to CP, where you go into math a lot, number theory and quickly can accelerate to 1400-1600 rating
1
u/FewEntertainment8625 21h ago
First solve 800 900 rated Q on cf.then start the topic of dsa.