Skip to content

What is DSA? CP vs DSA?

Course: Intro Class - DSA - chapter 1

DSA stands for Data Structures and Algorithms.

Data Structures means the way some data is stored. For example, we can store data as lists or in a stack or as a tree. All of these are examples of data structures.

Algorithms is a set of steps you need to follow to solve some problem. Either the set of steps is known (example, sorting, DFS etc) or you derive the set of steps using first principles and logical thinking.

**CP **stands for **Competitive Programming. **It is a sport where competitors solve DSA problems. They are either online or onsite. CodeChef, Codeforces are examples of online platforms where CP contests are organised. You can participate in these sitting from home. ICPC, IOI, CodeJam, local contests in tech fests etc are example of onsite contests.

How is CP and DSA different?

Technically, CP is a sport version of DSA.

However, we often use “DSA” to refer to the action of people learning DSA for interview preparation or college exams whereas the term “CP” is used to refer to the action of people participating in the coding competitions / sport.

So what will we be focussing on in this Cohort?

Our main focus will be “Interview preparation”. However this does not mean mugging up Leetcode or solving 1000s of problems there. Rather, we will be learning the basics and trying to master the art of problem solving. Also, we will be covering the popular data structures and algorithms as well. However, as of now, we will not be focussing on advanced concepts that are generally used in competitive programming and not super relevant for interviews.