Myth: You should be really good at competitive programming
Reality:
Solving a bunch of 150-200 questions from GFG or Leetcode can get you stronger at Data Structures and Algorithms
Solving 150-200 questions gets your problem solving skills up
Because you are covering every Algorithm, you are covering Data Structure, you are covering every topic that could be possibly asked in the interview
So, once you are done with this 150 - 200 questions, what happens is, you are really good at your problem-solving skills or you are really good at your data structures and algorithms skills
And apparently, you are able to crack those interviews
This 150 - 200 questions helps you crack the majority of the product based companies in India
This 180 questions will take you 1 month (30 days) if you are already into programming.
For every day, you need to around 8 to 10 hours, a proper 8 to 10 hours.
You should be able to spend 8 to 10 hours because you are wanting to get into India's top most companies and for that you have to sacrifice 8 to 10 hours per day for around 30 to 60 days (1 - 2 months).
If you cannot do this, then product based companies do not deserve you, there might be someone else who is waiting for you.
So, if you spend 8 - 10 hours per day to solve 6 questions for 30 days without having any cheat days in between, You would have solved 180 questions at the end of the 30 days.
After that 30 days, you should be really good at DSA and you should be able to crack any of the product based companies' interviews.
You have the list, how will you solve the problems:
Let's say, you are solving the problem find the middle of Linked list
Search for "middle of Linked list leetcode" on google
Open the leetcode problem link, try to solve the problem
Now, for best solution go to the Discuss Section and search for Most Votes
Sometimes you can go to Solution section of Leetcode
If you are not satisfied with those places for solutions, search "middle of Linked list gfg" on google
Go to the GFG article and refer the best solutions
Source of questions:
Striver's interview Experience,
Leetcode premium (lists),
Striver's work experience at GFG
Note taking Tips from Striver
Take a notepad, whenever you are solving a problem and you have successfully solved the problem on Leetcode or GFG, do this:
Write a function snippet in your notepad
So, what eventually happens is that after 180 questions, all these questions function snippets will be in your notepad
Now, make sure that every morning you should revise it (Apply Active Recall study technique)
Doing this on the first day may take you 4 hours,
the next day it might take you 3 hours,
and the next day it will surely take you 2 hours,
on the next day it will take you 1 hour and
eventually a day will come where it will hardly take 10 - 15 minutes.
You will be just crawling thourgh the pages and you will totally get it
and everything will stay in your mind
Don't memorize it, instead:
remember the approaches for the solving the problems,
remember the best complextity
So, if you remember the approaches, you have your implementation skills, you can easily implement in the interview
So, you should keep revising in the notepad on a daily basis
Keep doing this till you are interviewing with companies