1 of 24

Introduction to Competitive Programming

2 of 24

CONTENTS

1.

2.

3.

4.

5.

6.

CODING PLATFORMS

STARTING WITH CP

RESOURCES

OPPORTUNITIES

ANNOUNCEMENT

DOUBTS SESSION

3 of 24

CODING PLATFORMS

1

4 of 24

MAJOR PLATFORMS

CODECHEF

CODEFORCES

HACKERRANK

5 of 24

HACKERRANK

HackerRank is one of the best platforms to start coding. It contains a lot of problem ranging from Basic to Intermediate level.

It is generally preferred for beginners as its UI is quite friendly, and has some good questions to start with.

You can also filter questions by topics/tags.��Special Mention:

  • Project Euler (good for Number Theory)

Important Links:Languages: C++, Python

Problem Solving: Algorithms

6 of 24

TAGS

Brute-force, but you build your answer

BRUTE-FORCE

Try all possible solutions and then pick the best one

GREEDY

IMPLEMENTATION

NUMBER THEORY

WQSIWYC :p�What question says is what you code.

Missing JEE Maths?�Here it is!

7 of 24

BASIC TEMPLATE

Includes all possible�Header files, so you don’t have to take care of that.

}

Just mention these three lines to optimize the code.�Helps in fast Input/Output.

8 of 24

CODEFORCES

Rating is a measure of your performance. Each time, you participate in a Rated contest, your rating either increases or decreases, based upon your performance.

Your initial rating is 0. As you gain rating points, you get promoted to different ranks. When you give your first contest, you become a Newbie. It can fall below 0 as well.

Newbie

0 - 1199

Pupil

1200 - 1399

Specialist

1400 - 1599

Expert

1600 - 1899

Candidate Master

1900 - 2099

Master

2100 - 2399

Grand Master

2400+

9 of 24

CODEFORCES CONTESTS

There are 3 main divisions in codeforces : Division 1, 2 and 3. Based on these divisions, there are several type of contests as well. A Rated contest affects your ratings. Unrated contests don’t affect your ratings.

Division 3 contests rated for participants having rating < 1600.

Division 2 contests and Educational rounds are rated for participants having rating < 2100.

Division 2 contests often take place with Division 1 rounds as well. In this case, Division 2 round is rated for participants having rating < 1900 and Division 1 is rated for participants having rating >= 1900

Global rounds and Division (1 + 2) contests are rated for all.

Besides this, you can give contests virtually as well. A Virtual contest is basically a real time contest, the server simulates the events just like they occured in the real time contest, but again your rating won’t change.

10 of 24

CODECHEF

Long Challenge

Duration: 10 days

No. of Questions: 10

- Starts on the 1st friday of every month

CookOff

Duration: 2.5 hrs

No. of Questions: 5-6

- Held once in a month

Lunchtime

Duration: 3 hrs

No. of Questions: 5-6

- Held once in a month

CodeChef is a competitive programming community set up by the Indian company, Directi that hosts 3 official contests per month, along with various external contests.

11 of 24

0-1399

★★

1400-1599

★★★

1600-1799

★★★★

1800-1999

★★★★★

2000-2199

★★★★★★

2200-2499

★★★★★★★

>=2500

The initial rating for a user is 1500 and it has some ranks based on your rating which will be discussed further. The rating increases or decreases according to the performance in rated contests and isn’t based on the no. of questions solved during practice.

12 of 24

HOW TO START WITH CP??

2

13 of 24

ROADMAP

Set up your environment and learn Basic C++/C.

STEP 3

Begin with A20J ladder A, thus get familiar with CodeForces.

STEP 1

STEP 5

Try some contests and ask doubts from mentors.

Start solving easy problems from HackerRank.

STEP 2

Learn basic concepts from COPS YouTube Channel.

STEP 4

14 of 24

IMPORTANT RESOURCES

3

15 of 24

MAJOR RESOURCES

Complete beginner playlist. Doc attached in the video description has additional resources and practice problems.

Any kind of doubt - just google it and write gfg

Best content for any algorithm and topic.

Collection of resources of various topics with problems made by seniors.

Best book for those who really love to read. Given all techniques and methods in amazing way

16 of 24

OPPORTUNITIES FOR GIRLS

4

17 of 24

Intern Opportunities for girls after 2nd year

Adobe She Codes

Google STEP intern

Microsoft Codess

Uber SHE++

18 of 24

Adobe She Codes

-- Registrations start in October.

-- Shortlisting is done on the basis of your Resume.

-- This is followed by a coding round.

-- It is also based on DSA (Data Structures and Algorithms).

-- Finally there’s an interview only if selected in the coding round.

19 of 24

Google STEP Intern

-- Registrations generally start in December.

-- Shortlisting is done on the basis of your Resume.

-- If shortlisted the you are eligible for an interview which is mainly based on DSA.

-- Generally there are two interviews but it is not necessary.

20 of 24

Microsoft Codess

-- Registrations generally start in March.

-- Shortlisting is done on the basis of a coding test again based on DSA.

-- It is followed by an ideathon which is like a group discussion and solutions have to be found out for a problem statement.

-- Finally there’s an interview round.

21 of 24

Uber SHE++

-- Registrations generally start in March.

-- Shortlisting is done on the basis of a coding test again based on DSA.

-- If selected in the coding test then you’re eligible for a camp but there’s no internship after 2nd year plus you need not sit for the coding round during on campus internship tests as you’re eligible for interviews.

22 of 24

FUTURE PLANS

5

23 of 24

NP COMPETE

  • First contest for freshers organised by second yearite of CPG.

  • Tentative date is around 25th January. The final date will be announced soon.

  • It will be at least 24 hrs long contest (can be even more than that).

  • There is no defined syllabus, just implementation and some basic concepts are more than sufficient. (Refer COPS youtube beginner playlist)

  • The participation in NP Compete will be mandatory to be in the CPG group. The details will be shared later.

24 of 24

THANKS!

copsiitbhu.co.in

Club of Programmers,

IIT BHU Varanasi

DO YOU HAVE ANY QUESTION?