How to start Competitive Programming ? Guide for Beginners !

How to start Competitive Programming ? Guide for Beginners !


How to start Competitive Programming ? Guide for Beginners !

Check our Website: https://www.takeuforward.org/

In case you are thinking to buy courses, please check below:

Link to get 20% additional Discount at Coding Ninjas: https://bit.ly/3wE5aHx
Code “takeuforward” for 15% off at GFG: https://practice.geeksforgeeks.org/co
Code “takeuforward” for 20% off on sys-design: https://get.interviewready.io?_aff=takeuforward

Crypto, I use the Wazirx app: https://wazirx.com/invite/xexnpc4u
Take 750 rs free Amazon Stock from me: https://indmoney.onelink.me/RmHC/idje
Earn 100 rs by making a Grow Account for investing: https://app.groww.in/v3cO/8hu879t0

Linkedin/Instagram/Telegram: https://linktr.ee/takeUforward

---------------------------------------------------------------------------------------------------------------------------------------------------- Scholarship Page Link: https://bit.ly/3rs7wpM
---------------------------------------------------------------------------------------------------------------------------
Guide: https://docs.google.com/document/d/1i

Main Channel:    / takeuforward  

I teach here: https://unacademy.com/@TAKEUFORWARD
---------------------------------------------------------------------------------------------------------------------------
✅Use coupon-code “TAKEUFORWARD” for getting 15% for all CN courses: https://aff.codingninjas.com/click?o=
---------------------------------------------------------------------------------------------------------------------------
✅Use coupon-code “STRIVER” for getting 10% for all UNACADEMY subscriptions: https://unacademy.com/goal/competitiv

✅Use coupon-code “TAKEUFORWARD” for getting 10% for all GFG courses: http://bit.ly/tuf_gfgCourse​
---------------------------------------------------------------------------------------------------------------------------

If you appreciate the channel’s work, you can join the family: https://bit.ly/joinFamily​

✅Thumbnail Creator: https://www.linkedin.com/in/rikonakhuli
✅ Striver’s Linkedin Profile: https://www.linkedin.com/in/rajarvp/​
✅ Instagram: https://www.instagram.com/striver_79/​
✅Connect with us: http://bit.ly/tuftelegram​ (Use Link in Mobile only, if not works search “takeUforward” in telegram)..

--------------------------------------------------------------------------------------------------------------------------

✅Placement Series:    • Let’s give back to the community :)  
✅Placement Series (Arrays, Sorting..):    • Find the duplicate number | Leetcode …  
✅Hashing Playlist:    • Two Sum Problem | Leetcode’s First Ev…  
✅Greedy Playlist:    • N meetings In One Room | Greedy Algor…  
✅Recursion Playlist:    • L8. Combination Sum | Recursion | Lee…  
✅Graph Playlist:    • 3 MAJOR ANNOUNCEMENTS |  Strivers Gra…  
✅Two Pointer Playlist:    • 3 SUM | Brute | Better | Optimal | C+…  
✅Binary Search Playlist:    • Nth Root of a Number Using Binary Search  
✅LinkedList Playlist:    • Reverse a Linked List | Iterative  
✅Advanced DS playlist:    • Fenwick Tree Tutorial | Foolw-up prob…  
✅Stack\u0026Queue Playlist:    • Implementation of Stack using Arrays  
✅Greedy Algorithms:    • N meetings In One Room | Greedy Algor…  


#striver #placements


Content

0 -> I can gurantee you that after 2 years, you will be a very good competetive programmer.
6.289 -> Intro
10.614 -> Hey everyone, welcome back to the channel. I hope you guys are doing extremely well.
13.98 -> In today's video, I am going to answer very common questions which many of the first year students are asking me.
19.474 -> And the questions are how to start competetive programming, from where to do, for how long we have to do.
25.023 -> Which language we should learn to get started with CP.
26.658 -> When to start, either after doing DSA or we should do DSA side by side.
28.515 -> In how many contests I should participate. How to get maximum output of the contest.
32.158 -> These are the questions which students keep on asking me on instagram and telegram.
37.944 -> And these are really some genuine questions because many people don't know that I have already made a guide for CP.
44.367 -> Because "Take u forward" has so many videos that such videos do not have it's reach to a wider audience.(That's the reason this channel was made.)
47.677 -> So on this channel, I am again going to make a guide to explain to you that what you have to study and in which sequence you have to cover these topics.
59.213 -> I have already made this video but the production quality of that video was not so high.
62.672 -> But the production quality of this video is going to be high, just because my setup has bumped up.
67.303 -> I am going to explain the same thing again but with few more additional points.
72.731 -> The first question which every first year or second year student has.
77.231 -> Which language to choose if we want to start with CP. Should I start with Java or C++ or Python.
82.386 -> But I want to clarify this doubt that language doesn't matter if you are wanting to be a very good competetive programmer.
90.261 -> What matters is that you should have complete knowledge of syntax of a particular language. That is enough.
95.543 -> If you are good in C++ , it's absolutely fine.
99.249 -> If you are good in java, it's ok to start with.
102.003 -> If you are good in Python, it's ok.
103.517 -> But if haven't started with any language, then I will suggest you to start with C++.
108.937 -> Because execution time is really fast in C++ on programming contest website like Codechef, Codeforces, etc whereas you may get TLE in java.
119.1 -> You may need to optimize your code a lot if you code in java or python
122.785 -> whereas we need not to optimize C++ that much. It's execution time will be within the time limit.
127.621 -> And the most editorial/solutions are in C++.
132.101 -> So, if you haven't started with any language then I will suggest C++, but if you are already coding in java, it's completely ok.
140.212 -> So I think I have cleared your doubt about the programming language.
143.058 -> Second question, How to get started with CP?
145.07 -> Should you learn entire DSA before participating in any contest. No. The answer to that will be 'no'.
151.149 -> What you should do is, you should only learn C++ STL or java Collections before starting with CP.Only that much is required.
157.801 -> If you want to learn complete STL in C++ , then you can reach out to my another channel "Codeverse".
162.806 -> I have taught complete C++ STL live on that channel. Or you can watch my 45 min video of C++ STL on Take U Forwared channel.
170.218 -> You will have a good knowledge of C++ STL if you follow any of the mentioned videos.
173.386 -> For java collections, you can search on Youtube and study about it.
178.105 -> Make sure that you should have clarity of C++ STL or java Collections or Python Standard Library.
184.815 -> Once you have clarity of these, you can start participating in Contests.
189.984 -> You should know arrays,strings, for loop and you are good to start with programming contests.
197.901 -> Now I am going to tell you how you have to participate in contests.
199.971 -> To excel in CP, the most important thing is giving contests.
206.895 -> If you start giving contest in 1st year, or 2nd or 3rd, that doesn't matter. What matters is you have to give each and every contest.
212.829 -> If you are starting in first year, then you have to give each and every contest till your 4th year.
215.187 -> Even if you have exam or what, you should participate in every contests. Whether your rating rises or falls, that shouldn't matter at all.
223.656 -> You shouldn't be affected by your rating. No one will ask your rating if it is not increasing.
228.808 -> Your rating will not increase until you give your contests. And you should not cheat, no matter what.
232.187 -> You are going to face problems later if you will increase your rating with someone's help.
236.315 -> So you have to give each and every contest. Not the question is, how to give contests.
240.053 -> Let's say there are 5 questions in the contests and you are able to do only 1 question.
243.69 -> You have to make sure that after the contest you should upsolve question B and C before sleeping.
253.971 -> You don't have to do all B,C,D,E because you will not be able to do them. Generally you should try to solve one or two ladders up.
260.286 -> Like if you are able to do A, then make sure you try B and C.
263.673 -> You should be able to make B. If you are able to make C, it will be good, if not, still it's well and fine.
268.547 -> For the next,2 -3 years, you should make sure that you give every contest and upsolve after the contest.
273.837 -> Fine. This was all about contest participation. Practice as much as you can. Give every contest whether it's on codechef or codeforces.
282.479 -> Before moving ahead, I will tell you about the scholarship test which is being conducted by Coding Ninjas on 25th and 26th july at 8pm.
293.85 -> If you miss the test on 25th of july then you can appear for the test on 26th july at the same time i.e. 8pm.
299.438 -> Registration fee for scholarship is 99 rupees.
302.243 -> If you give this test, the maximum discount which you can get is 100%.
309.042 -> Whatever discount you get through this test can be applied over the discounts which are already available on their website.
318.057 -> Now lot of people would be thinking what is Coding Ninjas, so Coding Ninjas is basically an Ed-tech platform which gives you courses
324.13 -> related to data structures and algorithms,interview preparation, competetive programming, android developement and many more.
328.624 -> Till date, Coding Ninjas has taught over 50,000+ students.
331.796 -> And the course strucutre is amazingly well-built.
337.015 -> Their doubt solving support is really good. They provide one is to one doubt solving support and resolve your doubts within one hour.
342.77 -> You can crack any company with their guidance.
346.774 -> Courses are totally reliable because these are made by ex-Facebook,ex-Amazon people who have graduated from Stanford,IIT-Delhi.
354.544 -> Their goole and facebook reviews are around 4.9
358.687 -> So if you are planning to take any course on Coding Ninjas, then make sure that you use the coupon code TAKEUFORWARD to get an exculsive 15% discount.
365.872 -> This was all about practice. Now let's move on to practice. For learning you have to follow set of topics.
372.642 -> All the topics which you have to cover in a sequential manner, is mentioned in this pdf provided in the description below.
379.024 -> For eg. first you have to do pattern printing, then linear search, time complexity , Binary search , then hashing.
383.744 -> then number theory,bubble sort, merge sort, recursion,divide and conquer.
389.543 -> string algorithm, trees,graphs ,etc.
392.672 -> Every topic and their sub-topics are mentioned in the pdf provided in the description below.
398.99 -> In bracket, I will also write that from where you have to study these topics.
402.492 -> Everything will be available to you in the desciption box. You just have to learn in this way.
405.901 -> There is a procedure for learning also.
407.9 -> How you will learn all this.
409.144 -> For an example, you are studying binary search. First you should learn binary search from any resource.
414.83 -> I have a whole playlist on binary search on Take U Forward. You can watch that also.
417.658 -> You will get many set of probelms.
419.215 -> After that you have to go to codeforces, or you can directly type on google "Binary search practice problems codeforces"
426.855 -> You will get many blogs based on you search. You will get problem set in the blogs.
432.771 -> You can pick a problem set and solve it.
434.486 -> Now the question arises, how many questions you have to solve for a particular topic.
436.386 -> You should try to solve atleast 10-15 questions on any topic.
438.306 -> If you want dedicated Binary search questions then you can follow my CP sheet.
443.824 -> In that I have provided dedicated practice questions for each topic.
446.677 -> You have to make sure that you should solve atleast 10-15-20 questions on a particular algorithm as a part of your learning.
454.93 -> Many people do this mistakes like after doing Binary search, they shift to Dynamic programming.
457.787 -> No, you have to follow the same sequence in which I have metioned topics in the pdf given in the description.
462.238 -> So for next two years, follow the sequence , practice 10-20 questions on each topic
468.003 -> And give each and every contest for sure
473.047 -> And I can gurantee you that after two years, you will be a very good competitive programmer.
479.9 -> Till now I have told you which language to do, from where to learn and all the required topics which you have to study.
486.843 -> Now let's comes to the most important point which is must for every competitive programmer.
492.686 -> Whenever you are learning a new topic, make sure that you make a repo at Github.
497.987 -> Let's say you are learning segment tree, its code is this much lenghty.
502.671 -> Let's say you are learning Binary lifting, its code is also this much lenghty.
505.458 -> Whole tested code, by tested code I mean the code which you submitted on some website while you were doing practice,
513.601 -> keep the template of that whole code on your Github repo.
519.987 -> Now why I am telling this. Suppose you are giving a contest and you may have to use segment tree in one of the question
524.626 -> or you have to use Binary lifting in some particular question or some algorithm whose code is too lenghty
530.527 -> then will you write that much lenghty code again during your contest?
533.912 -> No, what you have to do is, you just have to go to your repo, pick up your code and paste it in the contest.
539.878 -> So that you can reuse your code in this way.
541.7 -> So make sure that, throughout the year, whatever you are learning, make up your github repo.
546.499 -> You need not to copy it from someone. Maintain your own repo from where you can copy and use it.
553.386 -> Make sure keep the tested code on Github repo.
559.915 -> Coming to the last thing, before ending this video. Can we do competitive programming without anyone's help.
565.333 -> Answer is no. Competitive programming can never be done on your own.
568.292 -> You need to form a group.
570.401 -> I will suggest one thing which I applied on myself.
574.539 -> Before you start CP, you know that you are of pupil level, then you may be knowing someone in your college who is talented.
584.917 -> You know who is talented as you and is of same level as yours, so you should make groups with them.
590.926 -> Don't make group with such people who are lazy. Make group with the people you think are talented and hardworking.
598.287 -> Make a very small group. Don't make a 10 people group. Make a group of 3-6 people max.Not more than that.
604.143 -> Make 3-6 people group on whatsapp. Not for sharing solutions during contest but for discussing solutions and approaches after the contest ends.
613.186 -> See the other people's approach to a solution. Even if you have solved a question, make sure that you read their solutions as well.
617.171 -> This helps a lot as your mind will be open to various approaches to a same problem.
619.115 -> Try to make friends from now only.
622.628 -> You should not do something like this that your rating is low and you are trying to make a candidate master as your friend.
627.472 -> This will never happen.
628.344 -> Make new friends of level similar as yours.
631.201 -> All of you work hard for two years. After two years, you will see that if you are at a good level, then they must be also at some good level.
636.871 -> So your friend circle will automatically become really good.
640.026 -> I hope you have understood the complete guide. If you are watching video till now then hit the like button
645.494 -> If you are new to the channel then do subscribe for sure.
648.94 -> Also subscribe my other channel. I am putting really good content over there.
652.63 -> Let's wrap up the video with this.
654.414 -> By By take care stay home.

Source: https://www.youtube.com/watch?v=lm5EiwiGtw0