This is a question that has been asked a lot to me by many GATE aspirants. For reference, I do CP quite on a regular basis. I am rated as Candidate Master(2026 Rating) on Codeforces and 5🌟(2060 Rating) on Codechef. I am AIR 3 in GATE CSE 2019.
So, let me start with the timeline of my four years in BTech. In the first year, I only focused on my college subjects and did very little programming on the platforms. I started my Competitive Programming Journey from the third semester. I consistently did practice questions on various platforms like Codeforces, Codechef, Hackerrank, and HackerEarth. There are times when you might spend multiple days on a single question but that's ok because it's important to improve your CP skills. I took part in many Intra and inter-college competitions. One must understand that you should do CP only if it's your passion otherwise you can easily get fed up by the dedication it requires. After my fifth semester, I got qualified for ACM-ICPC Kolkata-Kanpur Regionals and went there which was an amazing experience. However, during all this I never compromised my studies of my BTech subjects. I regularly attend all the classes and maintains a good CGPA(9.6/10). This is the only reason why I am able to prepare easily for the GATE.
I started my GATE preparation in the sixth semester. Though my concepts were clear, I needed proper guidance and a timeline for the preparation. Therefore, I took an online course in BrainStorm Achiever, New Delhi. My reasons for the online course were flexibility in watching videos, the option to skip the videos, or fast forward them according to my comfort level and avoiding the commutation time for the coaching. During the preparation period, I went for an internship at HackerRank, Bangalore.
Finally, for those who want to manage both CP and GATE together I would suggest learning your BTech subjects well because your GATE syllabus comprises of these subjects only and keep practicing CP questions as consistently as possible.
P.S: I intend to keep this post short for an easy read. Comment your queries(if any) in the comment box below.