r/DSALeetCode • • 4d ago

Google L4 Interview Experience

Hi Everyone, the candidate is writing this post as they want to give back to the community, they have no hope of getting an offer because their onsite last round did not go as expected.

After completing the OA, they were invited to the virtual rounds

Virtual Round 1:

It was a question related to printing the messages based on the timestamps. You should not print a message if you've see it in the last 10 seconds. Leetcode should already have it.

self assessment: Hire

Virtual Round 2:

This was a googlyness round, nothing remarkable to say here. Just prepare your stories and tell them in the STAR format.

self assessment: Strong Hire

They were inviited to the Google Office to give the next 2 rounds.

Onsite Round 1:

This problem was closely related to Russian Dolls but was wrapped up in a story. They gave multiple approaches and coded the the O(N^2) solution. There were some follow ups to this question, what would happens if we can rotate the Dolls.

Self assessment: Hire/Strong Hire

Onsite Round 2:

Writing about this round is a painful flashback for them. It was a 2d knapsack kind of question, where they gave a O(N^3) solution. They kept trying to reduce the TC to O(N^2) soln. In the end, they wrote the code on the paper as the shared doc was not present.

They missed one of the edge case also while writing the code on the papere. Overall, it was a bad experience for them as they felt they could've answered it better if they just brainstormed on paper instead of whiteboard.

Question was closely relate to Knapsack.

Self assessment: LNH/NH

They didn't want to write this post initially because it is not a positive outcome for them. But then they realized that LC has given them so much guidance that it feels unfair if they don't pass on.

Advice to any future interviewees: practice DP a little more. They were strong in all the other areas while DP being their achilees heel. In the end their fate was such that they were asked DP in both of their onsites.

For readers practising DP, choose a coding prompt from PracHub's Google Interview Questions and explain the recurrence and edge cases. LandOffer can autofill repeated fields if you're continuing applications elsewhere. I work on both.

Feel free to drop any questions related to the interview process.

29 Upvotes

7 comments sorted by

3

u/QuirkyGeneral6370 4d ago

Don't worry its an achievement itself, you were able to clear some major rounds. Keep giving interviews there are 100+ faang level companies. BTW thanks for sharing Experience

2

u/GetALife_00 4d ago

better luck my friend, what was the edge case in last question you missed?

1

u/FinishRich7081 4d ago

Thanks for sharing

1

u/lostsoul_io 4d ago

dp is a hit or miss. a gamble. hardwork wont help you there unless its a common question.

many cannot get on the spot answers. the only reason big tech uses it is because they can objectively shoo you away without legal consequences. since many are out its cheap on the hiring cost.

you did more than good/well.

1

u/god_is_love_44 4d ago

First of all thanks for posting

I found this interview pattern pretty similarly to what I attempted. Only thing is I wasn’t able to proceed further after behavioural round.

If you can add your thoughts on Which LC questions helped you the most during those coding rounds then it would be great.

Kudos for sharing and best luck 🍀

1

u/Interesting-Cat3788 4d ago

Generally the top hierarchy of fortune 100 companies prefer more: 2dDP, BST, BS and Segment tree questions.

Best of luck OP.

1

u/Interesting-Cat3788 4d ago

well keep us posted OP.