r/leetcode • • Oct 01 '22

How much leetcode is enough for a google interview?

https://devhubby.com/thread/how-much-leetcode-is-enough-for-a-google-interview
25 Upvotes

26 comments sorted by

53

u/royboypoly Oct 01 '22

Instead of worrying about a specific number, exhaust the main DS&A concepts until you can hit shuffle and crack medium problems you haven’t seen before. To get to that point it may take you 50, 100… 1000 leetcode questions.

I’m like 160 in and I feel like most things are starting to click. I’m starting to get thru never before seen mediums. Everyone is different.

8

u/ZealousidealTable1 Oct 01 '22

This comment, everyone should follow this advice. I'm at 300 odd problems and finally getting the grip. We need to understand how we are, and what we need to master this thing.

2

u/papayon10 Oct 01 '22

how long did it take you to get from zero exp to that point

6

u/royboypoly Oct 01 '22

I had zero exposure to node-based data structures prior to doing LC. I started my grind in June.

1

u/[deleted] Oct 01 '22

trees and LL ?

6

u/royboypoly Oct 01 '22

Yeah I come from Mechanical Engineering where I took 1 coding class where the only DS I learned were arrays and hashmaps.

I had no idea about Linked Lists, Trees, or graphs.

Had to learn those first before jumping into LC fully.

2

u/WildAlcoholic Oct 01 '22

Curious to hear how you went about learning those if you don't mind sharing.

2

u/royboypoly Oct 01 '22

The easiest way (IMO), is to start with the basic node class and try to do simple operations on it. Some examples: count the nodes in a LL, count only odd values in BT nodes… etc. and slowly increment the difficulty.

Once you get comfortable with basic operations on LL and trees. Start doing LL and tree problems on LC. Ramp up from easy to medium. Once you feel good about LL and trees, it’s time to graduate to graphs. Repeat the same process.

1

u/[deleted] Oct 02 '22

Hayy.. same kinda background.. no cs in college..but LC on my own. Are you targeting FAANGs then ?

1

u/royboypoly Oct 02 '22

I’m targeting anywhere that does LC style interviews and offers higher TC than my current SWE role

2

u/[deleted] Oct 02 '22

Same boat. Using cutshort platform to look for roles. Give it a try. Feels like faster response than linkedin

2

u/bert_cj Oct 01 '22

How are learning DSA? Book? Online sources? Are you implementing data structures from scratch?

1

u/AnyDistribution8074 Nov 25 '22

What is your strategy for covering those 160 questions. I've started to feel like as much as it is about Practise that much it is also about revision. While you need to keep moving forward with next questions, you need a strategy to retain what you've already covered.

2

u/royboypoly Nov 25 '22

Just change it up on your own terms! For ex, you could focus on mostly just graph problems/concepts for a week… but every once in a while throw in a review problem/concept during the same week. Say you do 3 graph problems on Monday, before you end your practice for the day you could throw in a Linked List problem you might’ve worked on before that you think is important to review.

8

u/fancierfootwork Oct 01 '22

It’s not about how many it’s about how well you understand the concepts. I would suggest trying to do problems in very dumb ways that implement other DS.

Like idk try doing 2sum as an array, as a hash, as a queue/stack, just to show yourself you get what’s being asked. Like traversing a tree recursively vs iteratively etc.

7

u/Pitiful_Jellyfish185 Oct 01 '22

Even tho the comments saying not to focus on the number are correct, they aren’t properly answering your question. If you have only basic dsa knowledge and are learning from leetcode then probably at least 80-100, because that would mean going through at least blind 75. But the more practice the better. A lot of people who get into these companies have like 300-500 but leetcode is a studying tool for self studying so don’t use it as a dick measuring content.

5

u/[deleted] Oct 01 '22

I did 40 . Still not good .

9

u/ML_gang Oct 01 '22

I did 250. Still not good (got asked a hard) - not even swe role LOL

3

u/throwaway2492872 Oct 01 '22

Is there a similar problem to it on leetcode?

2

u/ML_gang Oct 01 '22

It was an intervals question

5

u/Emergency_Style4515 Oct 01 '22

When you can consistently solve a medium under 20 minutes, you are ready for the technical round.

Leadership and googliness is a separate and actually more important part, especially if you are higher than L5.

4

u/PZYCLON369 Oct 01 '22

Depends on country ... If it's Asia then gg If it's west or EU I would recommend 250-400 emphasis on medium and hards

2

u/ItsYaBoyChipsAhoy Oct 01 '22

I hate that kind of answer format. Why are they explaining what leetcode is?

1

u/new_reditor Oct 02 '22

atleast 1000 LCs

1

u/[deleted] Oct 01 '22

[removed] — view removed comment

1

u/Ocean_0073 Oct 20 '22

1500 at min