How I prepared for Google — Solving 200 leetcode questions.
The journey has been somewhat unbelievable. If someone would ask me 1 year back why don’t you try for Google, I would have said not possible. I am not that good at DS/Algo. I had solved 0 questions on leetcode a year back. I solved 200 Questions until my final interview and got selected. Sharing my experience and some tips here.
I graduated from Engineering College Bikaner in 2015.
In July, I got an opportunity to interview at Google India. That’s when I started preparing seriously.
Before that, I only had basic knowledge from solving simple problems and reading Code Monk articles on HackerEarth.
Most of my preparation was done using three platforms:
I especially liked articles on HackerEarth about Heap, Union Find, and Dynamic Programming.
For any topic, I would first read the basics and common problems. Then I’d switch to Leetcode to practice.
I had 1 phone interview and 5 on-site interviews (4 Algorithm + 1 Behavioral). The on-site rounds were held over two days.
Resources I used:
Focus is very important.
You need a space where you can concentrate for at least an hour at a time.
In today’s distracted world, focus was the key for me. Deep work matters.
A few hours of focused work are better than sitting for hours without focus.
Find out what time of day works best for you — morning or night.
I used to study from 1 AM to 4 AM because there were no distractions.
Give at least 1–2 hours per day (or 10–15 hours per week).
Put your phone on silent and avoid social media.
As a beginner, if you’re not giving at least 30 minutes of focused time per problem, you’re not trying hard enough.
How many questions should you solve?
Answer: As many as it takes. Focus more on quality than quantity.
If you're starting from scratch, aim for 100 Leetcode questions. Cover different topics and difficulty levels.
If you’re confident with some topics like DP or Graphs, reduce the number for those.
I solved 200 Leetcode questions in total.
Everyone's journey is different. Some solve 500+ questions and still don’t make it.
Some solve 300 and crack 20+ interviews. You have to find what works for you.
Leetcode tips:
Problem-solving strategy:
Track your progress:
Use Google Sheets or any tool to record:
This helps build motivation and consistency.
Consistency matters:
In running, cadence = steps per minute.
In coding, cadence = questions per day/week.
Even with a job or college, aim for 2 problems/day or 14/week.
If weekdays are busy, cover more on weekends.
It will take sacrifices — less social media and fewer outings.
If you get stuck on a problem:
It doesn’t mean you’re not good enough. It just means there’s something new to learn.
Don’t let your ego stop you from learning. Ask friends, read hints, check discussions.
Don’t spend more than 24 hours on a problem. If needed, look at hints or discussions.
Spending too long on one problem will reduce your confidence and break consistency.
Leetcode Premium helps in three ways:
Cost is around ₹12,000/year. Worth it if you're serious.
During the interview: