Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (1 vote)
351 views

Competitive Programming Guide

The document introduces competitive programming (CP), discussing why it should be done, how to start, common websites for practice and competitions, basic programming skills needed, how to set up a programming environment, example problems and questions, and resources for studying. The key topics covered are an overview of CP, how it helps with problem solving and can lead to world competitions, how to get started by making accounts on CodeChef and CodeForces and participating in challenges, and setting up a programming environment with an OS, text editor, compiler and way to run files.

Uploaded by

kishore rabha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
351 views

Competitive Programming Guide

The document introduces competitive programming (CP), discussing why it should be done, how to start, common websites for practice and competitions, basic programming skills needed, how to set up a programming environment, example problems and questions, and resources for studying. The key topics covered are an overview of CP, how it helps with problem solving and can lead to world competitions, how to get started by making accounts on CodeChef and CodeForces and participating in challenges, and setting up a programming environment with an OS, text editor, compiler and way to run files.

Uploaded by

kishore rabha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

INTRODUCTION TO

COMPETITIVE PROGRAMMING
TOPICS OF DISCUSSION

• Why Should I do CP?


• How do I start doing Competitive Programming?
• Websites for Practice and Competitions
• Basic Programming skills
• Programming Environment Setup
• Example Questions
• Resources to Study from
• Discord and CF Groups
WHY SHOULD I DO CP?

• Job Interviews expect you to solve Algorithmic Problems


• Development of Problem solving skills
• Major Competitions – ACM ICPC, Google Code Jam, FB Hacker Cup
• You can reach WORLD FINALS if you’re determined enough ;-)
• Also do CP because “It’s FUN!”
• WARNING: IT’S ADDICTIVE TOO :D
ACM ICPC
CAN YOU BEAT THIS GUY?
HOW DO I START DOING CP?

• 1. Setup a Programming Environment


• 2. Make an account on CodeChef and CodeForces
• 3. Solve basic questions on CodeForces, learn how to implement an algorithm
• 4. Start regularly taking part in Long Challenges on CodeChef
• 5. Also Participate in Short Challenges for Speed and Accuracy
• 6. Practice Questions
• 7. Learn What you don’t Know
• 8. Compete
• 9. GOTO STEP 6
CP WEBSITES

• CODEFORCES
• CODECHEF
BASIC PROGRAMMING SKILLS

To solve a problem you need to:


• Know a Programming Language
• Design an Algorithm for the Problem
• Implement the algorithm in a programming language
• Run the program and test it locally
• Run it on the Online Judge
• Debug it if it doesn’t work
• Write readable code
BASIC PROGRAMMING SKILLS

• What Programming Language should I Know?


• How do I make an algorithm? - LATER
• How do I write a simple program to implement the algorithm?
• How do I run a program?
• How do Online Judges work?
• How do I write a good readable program so that it can be debugged
easily?
PROGRAMMING ENVIRONMENT SETUP

• YOU NEED:
• AN OPERATING SYSTEM
• A TEXT EDITOR
• A COMPILER
• A WAY TO RUN THE EXECUTABLE FILES
EXAMPLE PROGRAMMING ENVIRONMENT - 1
EXAMPLE PROGRAMMING ENVIRONMENT - 2
EXAMPLE PROBLEMS ON CF
RESOURCES TO STUDY FROM

• Blogs – TOPCODER, CodeForces


• Common Lounge
• BOOKS:
• CP Handbook
• Algorithm Design Manual – Prof Skiena
• WEBSITES:
• CP-ALGORITHMS
DISCORD AND CF GROUPS
ANY QUESTIONS?
THANKS

You might also like