# Competitive Programming

> Sharpen speed and depth through timed contests on Codeforces, CodeChef, AtCoder and LeetCode, and learn to upsolve effectively. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/cs-fundamentals/competitive-programming
Last updated: 2026-11-28

Sharpen speed and depth through timed contests on Codeforces, CodeChef, AtCoder and LeetCode, and learn to upsolve effectively.

Advanced · about 30 hours · difficulty 4/5

Learn first: [Pattern-Based Problem Solving](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/pattern-based-practice)

Competitive programming (CP) is timed problem solving against others. It is not required for internships, but a good Codeforces or CodeChef rating is a strong resume signal in India, and contests train speed and accuracy under pressure, which directly helps in online assessments.

### Where to compete

- **LeetCode weekly and biweekly contests**: closest to interview style.
- **Codeforces**: Div. 2/3/4 rounds, the main global platform. Ratings are widely recognised.
- **CodeChef**: Starters contests, popular in Indian colleges.
- **AtCoder Beginner Contests**: very clean problems, great for learning.
- **CSES problem set**: 300 classic problems organised by topic, excellent for fundamentals.

### How to improve

- **Upsolve**: after each contest, solve the next one or two problems you could not finish, using the editorial if needed. This is where most learning happens.
- Practise problems slightly above your rating (about +100 to +300).
- Keep a clean template (fast I/O, common helpers) but understand everything in it.
- Learn to debug quickly: print intermediate values, test edge cases, and stress test against brute force.

### Balance

CP rewards clever tricks and heavy math that interviews rarely need, and interviews reward communication and clean code that CP ignores. If placements are close, prioritise interview-style practice and keep CP as a weekly habit.

## Key concepts

- **LeetCode contests**
- **Codeforces rounds and ratings**
- **CodeChef and AtCoder**
- **CSES problem set**
- **Upsolving after contests**
- **Contest template and debugging**
- **Time management in contests**

## Mini project

Participate in 8 consecutive weekly contests (mix of LeetCode and Codeforces Div. 3/4), upsolve at least one extra problem after each, and track your rating and the topics of the problems you missed.

## Check yourself

Why is upsolving after a contest usually more valuable than the contest itself, and how do you choose which problems to upsolve?

## Free resources

- [Codeforces](https://codeforces.com/) (Codeforces)
- [AtCoder](https://atcoder.jp/) (AtCoder)
- [CSES Problem Set](https://cses.fi/problemset/) (CSES)
- [USACO Guide](https://usaco.guide/) (USACO Guide)

Previous: [Pattern-Based Problem Solving](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/pattern-based-practice) · Next: [OOP Principles](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/oop-principles)

## More in Deliberate Practice and Contests

- [Pattern-Based Problem Solving](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/pattern-based-practice)
- [Competitive Programming](https://www.internhack.in/roadmaps/tracks/cs-fundamentals/competitive-programming)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [CS Fundamentals and Placement Prep Roadmap](https://www.internhack.in/roadmaps/tracks/cs-fundamentals)
