r/Btechtards
•
u/pyaracetamol_100mg
Graduated
•
Mar 25 '24
•
8
Serious Complete Competitive Programming & DSA guide that i followed during my placement
Hey, I (21M) am currently working as a Software Developer. I've been getting lots and lots of DMs regarding how do I get a job, how i prepared for it and queries regarding that. I'll try to cover maximum such questions here in this post.
A little about me -> I did my B-Tech from a Tier 1 college and i used to teach my juniors Competitive Programming and DSA there (completely free), and these all resources, list and advices are just a compilation of what all i learnt throughout my teaching journey.
My advice to everyone in their 1st/2nd year is become good at competitive programming(CP) rather than just focusing on basic DSA. DSA is just a small portion of questions/topics, CP trains your mind how to think when a certain problem arises, this is exactly what big IT companies look for, the ability to find effective and efficient solution to new problems quickly. DSA is just a some certain pattern of questions that are most frequently asked, but if you have a good grip on CP, solving DSA problems will not be a big deal for you.
My recommendation would be start with C++ language, as its the most preferred language in CP/DSA
So now coming to the topics/roadmap that i covered, i started CP from my 2nd semester of Btech.
You can start from
LUV C++ youtube channel -> The best resource for CP watch the entire video thoroughly and practice the questions given in description. Practice similar questions on HackerEarth, Codeforces, Codechef
Cover all the topics from his playlist, this is the bare minimum.
The following topics are very important with respect to placements and interviews, so along with LUV C++ playlist you need to cover them from a lot of other resources
Dynamic Programming -> In addition to Luv C++, go through ADITYA VERMA's DP PLAYLIST and practice a lot a lot of questions of Dynamic Programming
Graphs -> Go through CODE N CODE's Graph Playlist 1 & 2 (1 is a must do) and practice a lot a lot of questions of Graphs
Binary Search -> Go through CODEFORCES EDU videos and try to solve the practice questions yourself
Two Pointers -> Go through CODEFORCES EDU videos and try to solve the practice questions yourself
SegTree, Lazy Propagation, Binary Lifting, LCA (very advanced topics only asked in top companies) -> CODE N CODE
Fenwick Tree -> LUV C++ (old videos where he explained everything on the whiteboard)
DSU -> LUV C++ and STRIVER (TAKE U FORWARD)
Don't just focus on covering these topics, try to learn how to approach a new problem cause most big companies will be asking you questions that have never been asked before and you should know how to approach them.
THROUGHOUT THE JOURNEY OF LEARNING THESE CONCEPTS, TRY TO GIVE AS MUCH CONTESTS AS YOU CAN, ON CODEFORCES, CODECHEF wherever you can
THERE IS NO BETTER WAY OF LEARNING HOW TO THINK THAN TO GIVE CONTESTS, after each contest try to solve atleast one more question that you were not able to solve in the contest.(UP-SOLVING)
-------------------------- DSA ROUTE ------------------------------------
If you just want to go through DSA (3rd year) quickly, and dont want to follow the CP route, just go through these topics and do them thoroughly. But as it's just a shortcut, so don't expect the results to be same as the ones you ll be getting after following the CP route.
PREFER CP ROUTE IF YOU HAVE TIME
Those who have already gone through the CP route, these topics below will not take much time and you can quickly wrap up on them in 3 months. Just practice their questions on LEETCODE and you ll be a DSA GOD
- Arrays (Questions Practice)
Strings Algorithm (Striver + CodeNCode)
- KMP, Rabin Karp (must)
Maths (Questions Practice)
- Number Theory, Combinatorics
- Binary Search (Codeforces EDU + Luv C++ Yt)
- Bit Manipulation (Questions Practice)
- Two Pointers (Codeforces EDU)
- Linked List (Striver)
- Stack & Queues (Striver)
- Recursion & Backtracking (Striver)
- Hashing (Questions Practice)
- Heaps & Maps (Striver + Aditya Verma for Heaps)
- Binary Tree & BST (Striver)
- DP & dp with bitmasking (Aditya Verma + Striver DP playlist)
- Graphs (CodeNCode + Striver + Luv C++ Yt)
- DFS, BFS, TopoSort
- Shortest Path Algos (Dijkstra, Bellman Ford, Floyd Warshall)
- MST (Primβs & Kruskal)
- Articulation Points & Bridges (very rarely asked)
- Strongly Connected Components (Kosarajuβs Algo)
- LCA (Binary Lifting)
- Hamiltonian Path (directly asked in coding rounds)
- Trie (Striver)
- DSU (Striver + Luv C++ Yt )
- SegTree (CodeNCode), Lazy Propagation(CodeNCode), Fenwick Tree (Luv C++)
Along with DSA, practicing questions on LEETCODE is a must. Pick up a DSA sheet like STRIVER 450 DSA SHEET and solve it completely. Along with it you can complete the entire problem list of InterviewBIT.
------------------------------------------------------------------------
Try to reach an EXPERT ON CODEFORCES & 1900+ rating on LEETCODE. Boosts up the resume and once you are on this level, cracking a job in a big high paying MNC is not a big deal for you.
IF YOU WANT TO BECOME REALLY GOOD AT CP, GO THROUGH CSES QUESTIONS LIST
Some questions & answers -
Q1. Did i solve all of them myself?
A. Yes and Yes, i did both CP & DSA, i solved around 1500+ questions combined of both. I've personally gone through a lot of other resources as well, but the ones that i have put here are the finest ones.
Q2. Is doing all this worth it?
A. At the position I'm currently at, i can tell that every single minute that i dedicated to this is worth it. The salary that gets credited in my bank account at the end of every month is only cause I did all this hustle and hardwork.
Q3. Question i receive a lot in DMs -> Im from Tier 3/Private college, can i still get a good placement?
A. Yes you can, by believing that you cant grab a good placement you are actually finding excuses of not putting in efforts. I've seen Tier3 college students grabbing really good packages. You just have to work hard, you may not get the peer group that guys in Tier 1/2 colleges will get, but you can still work hard and get to their level by compensating the college drawback with good skills.
Q4. Am i doing all this just cause i want to sell a course or earn money ?
A. Haha, nah i already earn enough and I'm writing this post just to help you folks grab good placements and improve the lifestyle of you and your families. My sole aim is to help all my juniors in their journey, so i can contribute back to the society.
Q5. I have XYZ months left, what can i do now?
A. Just stop complaining and start practicing. Only you can help yourself. Noone is gonna come to save you once you are sitting in front of an interviewer.
Q6. How much do I earn?
A. Good enough to be proud, low enough to keep hustling for more.
So now you folks dont have any excuse of not putting in efforts, you have all the required resources and the complete roadmap. JUST START PRACTICING.
To all the experienced folks, i tried to mention everything in this post, but if i still missed out on something, add your advice in the comment section. I ll include that in the post.
If any of you still have any queries, feel free to use the comment section.
HAPPY CODING :)
β’
u/AutoModerator Mar 25 '24
Thank you for your submission to r/BTechtards.
If you are on Discord, please join our Discord server: https://discord.gg/Hg2H3TJJsd
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
32
u/[deleted] Mar 25 '24
Thank you. For someone in their 4th sem rn. I am already following the DSA route. Could you suggest a tangible way to inculcate CP route, I don't feel like leaving things in between. Or if you could suggest another approach.
54
u/[deleted] Mar 25 '24 edited May 09 '24
hobbies puzzled narrow many scandalous growth bake panicky station secretive
This post was mass deleted and anonymized with Redact
16
u/[deleted] Mar 25 '24
hey ! really appreciate you for posting this ...
I am in first year right now . so should I just follow the DSA path if I also want to try web dev myself ?
10
u/I_WasBornDead Mar 25 '24
Thank u sir. How is USACO route? I am currently doing USACO Gold, DP problems and they are pretty good.
12
u/stressedshelby Mar 25 '24
Thank you pyaracetamol vai, konse college se graduation kiya hai?(If you don't mind telling)
3
u/DragonGod_SKD Mar 25 '24
Appreciate the list.Thank you
Total comp?
3
u/[deleted] Mar 25 '24
Hi sir, for once somebody has given such a detailed response to queries, others just say vague things
one question i had was that these days people r shifting towards making projects and open source among other things however ur roadmap doesnt include these things, is there any specific reason for this. Also if possible please detail more on what projects, etc u did in ur college days
thanks
2
u/Reasonable_Treat_233 Mar 25 '24
I am currently in my 2nd sem of Btech . Currently I am following DSA path and have covered upto Binary Trees... My ques was that how can I switch to CP path from here on....If I want to
6
u/Comprehensive_Fee250 IITM [CS] Mar 26 '24
Expert on CF is not a good benchmark for being good in algos. You can reach expert just by doing ABC in div2 which are just greedy. So reaching expert on CF might not correspond to doing better in coding tests which are standard algos.
2
u/heheboi70 Mar 25 '24 edited Mar 25 '24
Hello bro and thank you so much for this much info ... 1)Actually I have a question that as you can see there's a lot of buzz on the ai thing now and it's growing exponentially ...so what's your take on that ...do you think that it will replace or eat jobs and if yes then how to be still relevant 2) I have been doing development and completed frontend projects so I explore dsa/cp or continue in development only ?
5
u/juggernaut-420 IIT [PETROLEUM] Mar 26 '24
CS50x or Striver/DSA related content available on youtube with CP which is more beneficial if I want to be intern ready.
I am currently facing the dilemma mentioned above. I am at the end of my 4th semester and have an internship season coming up at the beginning of August. What should be my plan ahead
8
u/HarryBarryGUY IIITian CSE Mar 25 '24
Aisa hi koi senior agar ML field me badhiya kiye haito pls post bna dijiye
4
u/Akshit69420 Mar 26 '24
i will start my college this year, so glad i found this , thank you bhaiyaaaa!
1
u/[deleted] Mar 25 '24
Hey, you recommended c++ but I already know the basics of java and want to continue with it but I'm really confused as to switch to c++ or stay with java. Should I switch or not and why. Thank you
1
u/majisto42 Mar 25 '24
Was your btech in CSE? Will they prefer me if i am from ECE
1
u/Royal_Television_594 Apr 20 '24
I amnt finding the codeforces videos for topics other than the binary search , where are they?
1
u/OkBathroom1037 Aug 24 '24
Hi I am a fresher with 0 coding knowledge... So shoudl I start with C++ or C?? If C then from whom??
1
u/Princeofthebow Oct 31 '24
Hey any suggestions for English based yt playlists/channels?
1
u/WhimsicalEngineer thak chuki hu bro, engineering karte karte πππ» Nov 06 '24
OP!! I HAVE LOT'S OF DOUBTS AND QUERIES..CAN I DM YOUUU?????
1
u/[deleted] Mar 01 '25
is 1600+ on cf and a moderate command on core CS subjects enough to secure a good paying job provided that I haven't done any sort of development or real life projects? (Tier 1.5 college)
1
u/LogicInLoop16 Apr 25 '25
thank you for the guide , plz just clarify wdym by luv cpp playlist ? I think you mistyped it for LUV competitive programming playlist .
he has two playlist one for c++ and one for CP plz clarify which one you mean , thank you again.
3
u/FincherEnergy Mar 26 '24
Saved. Bookmarked. Thank you.
3
u/Suspicious-Bag-5078 Mar 26 '24
Thanks
1
u/iluvcakesandfries Mar 25 '24
Isn't this kinda overkill given you only want 1600 cf and 1900 leetcode
One could easily become guardian on leetcode and 1800 on cf if all the topics are covered well enough.
I mean if you're gonna add binary lifting and niche graph algos then might as well go for fft
I agree with the sentiment of the post and most resources seem nice enough. But the rating range seems a bit off.
You can become 1600 on cf just by doing ABC fast enough in div 2.
1
u/Girl_inblac Mar 25 '24
thank u so much for this OP
2
u/Spare_Swing4605 Mar 26 '24
Thanks man Bookmarking for Future reference !!
2
u/-Harsh Mar 26 '24
Thank you brother
2
u/xocoping Mar 26 '24
Thank you
2
u/JihadWatcher IITR [Mech] Mar 26 '24
Im in 2nd year tier 1 college , anyone who wants to study together dm me . Weβll learn together
2
u/hiwassupiamfine Mar 26 '24
Thank you so much!!! This is amazing.
2
u/PlaceMyAss420 Mar 26 '24
Hey dude, I consider myself average in DSA i have practiced around 200+ questions on leetcode including all major topics, I am looking to get into Competitive Programming as I am still struggling in passing OAβs. My question is how would you suggest people like me who have got their feet wet in dsa quite a bit and are looking to get into CP?
2
u/[deleted] Mar 26 '24
Did you learn something else like full stack ?
2
u/Remarkable-Arm-2557 Mar 26 '24
u/pyaracetamol_100mg thanks brother
2
u/pawxn Oct 06 '24
1
u/[deleted] Mar 25 '24
Hey ! I'm in 2nd sem atm and struggling alot to solve and understand coding problems.
Any advice for me?
1
u/Aazish BTech Mar 26 '24
My college doesn't even have any placements :/
1
u/[deleted] Mar 26 '24
That's great , thanks for the info
1
u/Ramadhir-Singh Mar 26 '24
u should add cp-algorithms.com as the go to resource for any topic..
1
u/nisaral_3 Mar 26 '24
M doing ML rn in my first year.... I don't really wanna get it competitive programming and stuff... Will this effect my placements in near future
1
u/aarz03 GFTIian [AI&DS] Mar 26 '24
!remindme 1year
1
u/vk17wah Mar 26 '24
can i just use java for dsa ( last year bca student) , cf pe hai around 1400+ but abhi Nimcet dena hai ( nahi hua toh ek drop lunga for top 2 NIT) sath mein ek job ke liye dsa krna hai wapis jldi se.
1
u/[deleted] Mar 26 '24
thank u sooo much for this<3
1
u/Blithering_idiot1406 Mar 26 '24
Damm bro! I thought you were just another nalla like us on india social
1
u/Inevitable-Fox9127 IIT [chem eng] Mar 26 '24
Bhaiya i am in First year of Tier 1 college (IIT) Not CS branch, but my interest lies in data Science AI ML... I am quite comfortable in it.. Should i also do CP or just DSA is enough!! I am trying web development also
1
u/Artistic_Ad_5493 NIT Mar 26 '24
Which platform is better for cp,codechef or codeforces?
1
u/YouKnowMe_9 IIT [Elec] Mar 27 '24
This should be in the wiki of this sub. Or just pin it
1
u/KneeTrick8545 Mar 28 '24
Hey I've DMed you! Please reply back :)
1
u/[deleted] Mar 28 '24
I'm in second sem I'm doing aiml can I follow this path?? I am currently learning python should I start to learn c++ to follow this path
1
u/Cat_Of_Culture Apr 20 '24
I too, love CP π₯°
1
u/[deleted] May 08 '24
Also, what do you actually expect when you mention "Choose CP route if you have time", It would be great if you could clarify this "time" factor?
1
u/BJ-Blazko [GGSIPU USAR] [BTech in A&R 2024-28] Jul 07 '24
I'm gonna be entering BTech in Automation and Robotics this year in a tier 3+ college near me. Will this guide help me for competitive programming? I'm not looking for placements, I just want to earn some prizes by getting top places at the contests. What path should I follow?
1
u/[deleted] Jul 21 '24
That's a life saver.
1
u/ikansh-mahajan Thapar COE'27 Aug 20 '24 edited Aug 20 '24
Wdyt about Striver's A2Z sheet for studying DSA for CP, u/pyaracetamol_100mg ??? Also, do I need to completely do DSA before going into CP???
1
u/Haunting-Lunch-4983 Aug 25 '24
Is it possible to start and excel in cp by being in sde job? Is it worth it? If someone has done it, please suggest how you managed
1
u/your_momgeyAF Sep 07 '24
Hi.. Due to my incompetance and irresposible behaviour, I fkd up big time around my 4rth semester and ended up with 6 backlogs. Over the course of the next two semesters, I have cleared 4/6 of those backlogs.
I'm currently in my 7th semester and I'm feeling the real pain of my actions, when I see the people in my class get 10LPA jobs that grants them the financial independence and the ease of mind to enjoy their remaining campus days.
If everything goes right and by God's grace, I should be able to clear the remaining two backlogs by this semester and if I'm lucky, could start to attend placements during my 8th semester.
I am in dire need of some genuine advice, as its reached a point where I have to hold back my tears in public and in front of my family and friends, because of the hole I have dug for myself. Last year, around the same month as now, was when I turned 20, ans literally the next day the s4 results were announced and I got to know just how much I have ruined myself.
Even after how badly I fkd myself up in s4, instead of taking it as a real wake up call and making a comeback, changing my ways and improving myself, I have remained much the same, but with the only difference being that I thankfully passed all the subjects in s5 and s6, along with the before mentioned 4 backlogs. That too by sheer luck and from the prayers of my family. Yet my CGPA is at 5.67, where as my current SGPA is at 5.86.
I have no experience, knowledge, foundation or even the basic fundamental knowledge on anything CSE, because prior to joining this college, I had no idea what to do and I thought, well "B-tech CSE=High salary placements", and I didnt realize that CSE is not for everybody.
I dont know what to do regarding eveything that I have done and what my future is gonna be like because of my actions.
1
u/Katsu-and-Ramen Sep 10 '24
How did you find the time to solve many questions bro.. Idk ig I'm dumb but dsa problems would take away a lot of my time just trying to figure stuff out
1
u/CuriousSoulKtd Sep 19 '24
Summary of this big passage : practice hard, solve questions
1
u/BrainStorm_707 NITW [CSE] Sep 21 '24
This could possibly be life changing advice for me as a fresher, thank you!!
1
u/StatisticianNo5260 Sep 24 '24
Thank you high school freshman here , I want to get really good at cp my goal is to reach ioi.
1
u/Quiet-Brick-5729 Oct 05 '24
For a tier-2.5/3 colleges , the on-campus drives won't ask much high level questions and the normal DSA route is very sufficient.But the resume should be filtered , so we should focus more on resume building than this ,
This is my take as a tier 3 clg student , Am i wrong or do i have a point?
1
u/DirectorFunny9759 IIT [CSE] Oct 10 '24
how to search similar problems related to a topic in the website as he mentioned above can anyone tell me?
1
u/Unlikely-Round879 Nov 05 '24
Hi! I am in T3 college. Although the placement scene is decent. I am quite sure that I can't crack any. My 3rd year has started, my progress in doing CP or DSA is bare minimum. Should I do DSA only now or both ? Cause, I also need projects.
1
u/Prestigious_Face_112 Nov 10 '24
I just want to get a good grasp of DS and algorithms so that I could solve problems in interview in MAANG FAANG. Not for competitive programming contests. Pls suggest playlist for the same. Also have limited time of 1-2 months before college opens.
1
u/Rabi_t Nov 16 '24
I am a 2023 graduate student from 3 tier college. After graduation I instantly joined a java training program. Even though I am from IT baground, I didn't know how to do coding and other programming things, hence I decided to join the training. Due to corona I discovered how much I lack efforts when it comes to online classes that's why I didnt get any online classes in my clg days. My relative suggested the institution after graduation will help me.
Well after going to the institution I regreted my past choices of not taking any classes on coding and studying.. Yet I was giving my everything. On March, this year I realised that i have done enough coaching and now I have to give the time to myself. For practice and make projects of own. Coaching was continued till June. I didn't want to waste any more time. So I came back home.
After these things I don't know, I just felt bad for every choices I made. I started learning react, thought after graduation react would be easy to go into for a job. But my other friend who I met in the institution she continued doing dsa. We both got opportunities. But she got better package even being the fresher.
It's been 1 year and 4 months since my graduation, i am thinking of giving cdac next year and meanwhile dsa, I just don't have enough faith in me.. Can you suggest me what will good for me?
1
u/manly_trip Dec 01 '24
Which route should I follow as a fourth sem student with no experience.
1
u/ImpressiveBridge7041 Dec 02 '24
Thanks ππ»
1
u/idkblergh BE CSE '28 Dec 17 '24
I'm trying to setup sublime Acc to luv video but I cannot, can you please help me out
1
u/[deleted] Dec 18 '24
What about projects?
1
u/ZanduBhatija99 Dec 22 '24
Yo, did you prepare any notes while doing questions on LEETCODE or CODEFORCES. If yes, how did you structure them and what did you write in them?
1
u/[deleted] Jan 07 '25
thankyou!
1
u/Kanishq_Shirke Feb 24 '25
I'm in fy, 2nd sem, and just started dsa. Completed C++, patterns, stl, and basic math from Striver's A2Z, now starting arrays.
Is the CP route worth it, or should I stick to a2z?
Because I wasted my jee n mhtcet due to following and changing and getting confusing between multiple resources then understanding at the end all resources cover all topics just in different Order.
Don't want to repeat that mistake.
1
u/manly_trip Mar 15 '25
Brother how much math is needed can you guide how ,what and where to study maths please
1
u/WingSensitive7301 May 14 '25
Hi Bro , Any suggestion for 3yoe guy , can solve medium leetcode till trees , planning to switch after 1 year?
1
u/jee_aspirant_24 May 15 '25
Is CP important for smn targeting ML type role
1
u/DrSemiconductor May 16 '25
Remindme! In 2 days
1
u/darkdreammer Aug 24 '25
I also trying to switch in full stack developer role but I want to prepare for first mathematics and problem solving someone help me I need a buddy coder
1
u/ExampleInteresting43 Oct 05 '25
That's some really valuable advice
1
u/NewAnimal2672 [Tier-3] [CSE] Dec 20 '25
hey bro
This is probably the best roadmap on reddit
But as you said, you were from a Tier 1 college
What will you suggest to a Tier 3 student
I'm currently in the 1st sem from a tier 3 college
would you suggest the same route for tier 3
1
u/Resident-Dinner-9640 May 26 '26
what is codeforces EDU videos
1
u/Cheap-Object8640 Jul 27 '26
is it too late to start cp rn? For context I'm in my 3rd sem rn and it just started and all I have done till now is basics of c and cpp. C they taught in my college and cpp I learnt on my own (through learncpp. com)
So is it possible to go with the cp route or is it too late? I thought about doing dsa but I have realised cp is necessary especially if you're from a T3 and not many companies come to your college. please reply
1
u/Head-Reference-9434 Aug 07 '26
Well sir i am a fellow 1st year and i have some questions can i asl you in dm ?
1
u/Head-Reference-9434 Aug 09 '26
Bhaiya i have time but your cp route doesn't fit me so can i get the concepts through dsa route and then try for cf ?
0
u/[deleted] Mar 25 '24
[deleted] β view deleted comment
80
u/[deleted] Mar 25 '24
[removed] β view removed comment
1
u/[deleted] Sep 21 '24
[removed] β view removed comment
0
u/[deleted] Mar 26 '24
[deleted] β view deleted comment