How I prepared for Google — Solving 200 leetcode questions.

Anonymous User
1951
May 15, 2025

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:

  • GeeksforGeeks – when I needed basic explanations.
  • Leetcode – for practicing questions.
  • HackerEarth – for reading up on data structure basics.

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:

  1. Leetcode, GeeksforGeeks, HackerEarth
  2. Cracking the Coding Interview book – https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850

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:

  • Pick one topic and stick with it.

  • Don’t switch topics before finishing.

  • Follow the 3:6:1 ratio for Easy:Medium:Hard problems. Or 3:5:2.

  • Sort Easy questions by:

    1. Acceptance rate – shows the question is actually easy.
    2. Frequency – how often the question was asked in interviews (premium feature).

Problem-solving strategy:

  • Understand the problem fully. Think of input/output examples.
  • Think aloud, write your approach on paper or whiteboard.
  • Know the time complexity before coding.
  • Even if you get the solution right, check discussions for better approaches.

Track your progress:
Use Google Sheets or any tool to record:

  • Question link
  • Topic and difficulty
  • Start and end time
  • Whether you passed all test cases

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:

  1. You can filter questions by company tag.
  2. You can sort questions by frequency (how often they were asked).
  3. Access to Top 50 questions for each company — good for last-minute prep.

Cost is around ₹12,000/year. Worth it if you're serious.

During the interview:

  • Understand the problem. Ask questions (e.g., can the array have negatives? Is the graph cyclic?).
  • Don’t assume anything. Clarify it.
  • Explain your approach aloud. Think and talk.
  • Practice on paper or whiteboard, not just the editor.
  • Once you and the interviewer agree on the approach, and you’ve dry-run it, then write the code.
  • If time allows, discuss edge cases too.
Comments (4)