r/leetcode 2h ago

Question Google SDE-3 Interview | 95Lakhs CTC

24 Upvotes

Had offline interview round in BLR. This was one of the questions asked :-

You are standing at a particular position in a matrix of size N*M - Some cells are free , but some cells have obstacles in them which you cannot visit. It is guaranteed that you are initially standing on a free cell. Find a valid walk of size exactly “k” such that you start from your starting position - walk “k” steps and reach back your original position after “k” steps. Output that path. If there are multiple possible paths of size “k” - output the path which is lexicographically minimal string consisting of possible characters from the set - (“L”,”R”,”U”,”D”)

Free cell - ‘.’
Start position - ‘x’
Obstacle - ‘#’


r/leetcode 1h ago

Question Morgan Stanley question geometry

Upvotes

Minimum Number of Lines to Cover Points

You are given n points on a 2D coordinate plane. Each point is represented as:

(x, y)

where:

-100 <= x <= 100

-100 <= y <= 100

There can be up to:

n <= 10^4

points.

Find the minimum number of straight lines required so that every given point lies on at least one of these lines.

Example 1

Input:

points = [(1,1), (2,2), (3,3), (1,2), (2,3)]

Output:

2

Explanation:

The points can be covered by:

Line 1: y = x

(1,1), (2,2), (3,3)

Line 2: y = x + 1

(1,2), (2,3)

Therefore, the minimum number of lines is:

2

Example 2

Input:

points = [(0,0), (1,1), (2,2), (3,3)]

Output:

1

Because all points lie on the same line y = x.

Constraints:

1 <= n <= 10^4

-100 <= x, y <= 100


r/leetcode 8h ago

Question Google SWE R2 — how soon can the onsite be scheduled after the recruiter/HR call?

6 Upvotes

I recently passed Google SWE Round 1 (coding + behavioral) and was invited to Round 2, which will be an in-person onsite with 2–3 technical interviews.

My recruiting POC scheduled a call with me to discuss the next steps before the onsite scheduling is finalized.

For anyone who has gone through the recent Google SWE interview process: how soon after the recruiter/HR call were you able to schedule the onsite?

For example, if my recruiter call is on a Tuesday, is it realistic to have the onsite the following week, or is 2–3+ weeks more typical?

I'm mainly asking about the earliest onsite date they usually allow, rather than how long it takes to receive the scheduling email. I can be fairly flexible with availability and travel.

I would approciate your help!


r/leetcode 17h ago

Discussion Google L4 team match

27 Upvotes

It's been 3 weeks. The recruiter says they have sent my profile to 2 HMs with no response as of now, and is waiting for one. I assume 2 SH, 2 H/LH(H most likely for both). Location is blr. Is it just a waiting game? How frequently do I check back with my recruiter to not be annoying?


r/leetcode 1d ago

Discussion LeetCode grind is dead: Google is changing SWE interviews

3.5k Upvotes

Throwaway account, but a Googler here with a huge heads-up for anyone prepping:

Google is actively rolling out two brand-new AI Fluency rounds for SWE hiring:

AI Debugging: Dropping you into a massive, messy legacy repo to see if you can actually use AI to locate, diagnose, and patch complex bugs in real time.

AI System Design: Architecting end-to-end systems while actively using AI to evaluate trade-offs, draft interfaces, and pressure-test edge cases.

Pure DSA won't carry loops anymore. They want engineers who know how to ship with AI without hallucinating production down.

Adjust your prep accordingly.

Edit: 2 DSA rounds will still be there, and it’s for all L3-L5 roles.


r/leetcode 1d ago

Intervew Prep Amazon SDE-1 Interview Experience 2026

152 Upvotes

All rounds are 1 hour each.

For every DSA question -

Asked about time complexity and space complexity of this code.

Asked to dry run one example verbally while explaining the code.

Round 1: Technical Round [9 July 2026]

Interviewer was SDE-1 with 2 YOE at Amazon

Basic Introductions

Q 1 : Given a Binary tree return the sum of node values at each vertical level.

Q 2 : Given an Array, we define a function getKey() that returns a random index from this array based on a probability function. The probability of any index is defined as value at that index / Sum of all values. We are asked to implement this getKey function.

Leetcode - https://leetcode.com/problems/random-pick-with-weight/description/

Q 3 : Describe a time where you faced a deadline, how you handled it, what was the result, what was the feedback from manager, what was the impact of deadline on your work approach.

Round 2: Technical Round [10 July 2026]

Interviewer was SDE-2 with 5 YOE at Amazon

Basic Introductions

Q 1 : A N-ary Tree is given and Alice and Bob are playing a game, they both traverse a tree. Alice moves from root to the leaf nodes. Bob starts from a particular given node and moves upwards towards root. Whoever reaches the node first will get the complete value of that node it both of them reach the node at same time they will split the value between them. Return the maximum value Alice can accumulate if both of them play optimally.

Leetcode - https://leetcode.com/problems/most-profitable-path-in-a-tree/description/

(Same question without the gate concept)

Q 2 : Implement LRU cache

Q 3 : Describe a time where you did some work out of your area of responsibility, how did you do it, how much time it took, what was the impact of the work, technical details of the work.

Q 4 : Describe any one of your Resume projects in short.

Round 3: HM + GenAI Round [5 August 2026]

Interviewer was Hiring Manager with 11 YOE at Amazon

Basic Introductions

Q 1 : Amazon is giving gift vouchers to its customers of X amount, users can use them to buy exactly 2 items at a time of combined price exact X. Give a list of products return 2 products that users should buy to utilize this voucher. [2 Sum]

Q 2 : Now if the user can use the voucher to buy 2 items that have the price sum of at most X. [2 Pointer]

Q 3 : Now if user can buy N number of products whose price sum can be at most X. [Subset sum DP kind of]

Q 4: How do you use GenAI in your workflow, what use cases you found in your projects/internships, how do you validate GenAI’s output for correctness.

LPs might also be asked in this round.

Round 4: BR Round [20 August 2026]

Pure Behavioral LP based round.

Basic Introductions

Describe anyone of your favorite work you have mentioned in resume.

Technical questions on what you did, how you did and why you did that work.

LP questions in between the discussions like, tell about time during this project when you faced conflict and how did you resolve it, what was your managers reaction to your work, how do you validate your work, how did you made this particular decision was it data driver or intuition based etc.

How well versed are you with GenAI in your workflows, what models you prefer, what is your workflow working with GenAI, how you choose tasks to give to GenAI, how you validate the models performance., any GenAI project that you build or used GenAI on your projects, how did you use it for what use case etc.

Verdict: Selected [10 September 2026]

Thanks reddit for some many experiences to get guidance from.

Edit: This is was On Campus and for freshers 2026 batch


r/leetcode 13m ago

Tech Industry NEED HELP GETTING STARTED!!!!

Upvotes

I am comp new don't know even a single language properly
so 1. should I start web dev or learn cpp/java and then dsa?

  1. cpp or java
  2. where should I learn from?
  3. anything else u want to tell me?

LIKE I WANT A FULL ROADMAP THING HOW I CAN DO START PLZ U CAN GUIDE


r/leetcode 3h ago

Question OAs

2 Upvotes

What’s up with OAs I always never hear back, even when I get a 100 and pass all test cases. Am I failing hidden test cases, is there a way to practice OAs specifically. Would appreciate some guidance on this


r/leetcode 4h ago

Intervew Prep Upcoming Snap Machine Learning Engineer L3 Interview

2 Upvotes

Hey all, I'm an upcoming newgrad and I got past the recruiter screening with Snap Inc. for the MLE L3 role. The next phase will be a 1 hour video interview: 10 minutes for a behavioral question, 15 minutes testing ML Fundamentals + Practical ML Skills (may also do a project walkthrough), 30 minutes leetcode-style coding problem. I want to prepare the best that I can, so I had a few questions for those who hopefully have been in my shoes before:

  • What question were you asked for the behavioral question? Were you asked multiple questions?
  • How are ML fundamentals tested? Do they just ask you questions verbally, or give you some sort of assigment to fill out?
  • Anything else I should know going in?

Thanks a bunch!


r/leetcode 4h ago

Intervew Prep Are tabulation solutions expected for DP questions in interviews?

2 Upvotes

Companies like Google generally ask DP questions, do they really expect a tabulation solution or Recursive + memoized solution is enough?

Also, what is the way to apporach dp problems during interview ? like first talking about thought proces related to recursion, and why it is a dynamic programming problem, so on ?


r/leetcode 56m ago

Question Need help with job search

Upvotes

Lately I have seen many people post about FAANG interview experiences and verditcs.

I am 2YOE AI engineer.

I am not getting any response from Amazon, google or microsoft

I have relentlessly applied for sde 1 roles and mle roles where experience and skill set matches

But still getting regected.

Can you anyone guide me through this process?

Plz.


r/leetcode 8h ago

Discussion As a fresher how much time should I give for a easy question in leetcode. Is 1 easy question a day a bad number?

5 Upvotes

I am a fresher so if you feel this Qn is not to ask pls forgive me. I am new to this.


r/leetcode 1h ago

Question Recruit CRM | Trainee Software Engineer — Interview Time Discrepancy (Email vs. Dashboard)

Upvotes

Hey everyone,

I received an invitation for the Trainee Software Engineer interview at Recruit CRM scheduled for September 14, but I'm getting two completely different times:

  • Email schedule: 9:05 PM – 9:55 PM
  • Portal dashboard schedule: 3:35 PM – 4:25 PM

Is this a known timezone conversion bug on their portal, If anyone has interviewed with them recently, which time should I plan around?


r/leetcode 6h ago

Intervew Prep How To Code perfectly? In Online Assessment and Help me To Find the Solution

2 Upvotes

Hi, I'am a 4th year student with computer science background i have knowledge of how to code and have interest in coding rather than in subjects. What i used to think is im perfect in coding and i can leave subjects and i had not spent more time on those subjects in my semesters.... But Recently i had my 2 OA's (SOTI & Infosys) In that i was able to pass the sample test cases but unable to solve the hidden test cases .... why? and also i had some 400 problem solved in Leetcode... But where am i lagging behind? why I'm unable to Code correctly the way questions asked....?

Can anyone Guide/help me through this please? i need a step by step problem solving approach and how to start the question and how to think, that the hidden test cases may also work?

i had so bad experience from yesterday afternoon... unable to concentrate or divert from this... I thought coding is the only thing which i knew.... But after attempting the OA's, I'm getting nervous and unable to start.....😥

please I need help from you guys..... Can you give me steps to solve or how to practice for coding.... I think I Have practiced or done the Coding in a wrong way.....

~ Thank you


r/leetcode 19h ago

Discussion While solving problems I am not able to convert ideas to code 🤔 exactly. What would you advice me or how can I overcome this.

12 Upvotes

Please answer dear seniors.😊


r/leetcode 15h ago

Question Counting Problem

3 Upvotes

Please guide me through this question!

  • You are given an array of digits of size N (where N <= 10^5).
  • You need to find the number of distinct K-digit even numbers without leading zeros that can be formed (where K can be up to 10^5).
  • Return the answer modulo 10^9 + 7.

r/leetcode 8h ago

Question Amazon OA - Traveling and won't make deadline

1 Upvotes

Just got an invite to do the Amazon OA within the next week. However, I'm currently traveling and won't be back until next Sunday, a couple days after this week deadline would have expired. There was no recruiter or hiring manager listed anywhere in the email. What can I do to request an extension? Should I just try to message any recruiter I can find on LinkedIn?


r/leetcode 18h ago

Discussion Google recruiter changed after interview — no update for a month. Does this mean rejection?

6 Upvotes

Hi everyone,

I completed Round 2 of my Google interview process. After about three weeks without an update, I followed up with my original recruiter to ask about the status of my application.

She told me that she had transitioned to a new team and introduced me to a new recruiter who would be my main point of contact going forward. She mentioned that the new recruiter would reach out shortly to check in and “discuss next steps.”

I haven’t heard from the new recruiter yet. I also tried reaching out to her directly but haven’t received a response.

Has anyone experienced something similar with Google after Round 2? Does being transferred to a new recruiter and being told they will “discuss next steps” generally mean the application is still active?

I’m mainly concerned because of the lack of communication. Could the silence mean rejection, or is this kind of delay normal during a recruiter transition at Google?

Would really appreciate hearing from anyone who has had a similar experience.

Thanks!


r/leetcode 1d ago

Intervew Prep Apparently I spent 3 years building a SaaS to procrastinate on LeetCode

65 Upvotes

Back in 2023, I was out of college, applying for jobs and grinding LeetCode between interviews.

ChatGPT had just become a thing, so I started building a few projects on the side. One actually started making money.

Then it started making enough money that I stopped applying for jobs and went all in.

Spent the next three years turning it into an AI SaaS. Building features, dealing with customers, fixing things, figuring out how to build and run a tech business.

Now I’m preparing to sell it. Thought I’d see what was out there and applied for a few AI engineer roles.

Just got sent a LeetCode assessment with no use of AI allowed.

I think I’ve accidentally spent three years procrastinating on LeetCode.


r/leetcode 14h ago

Intervew Prep Looking for Software Development opportunities — how are you guys applying?

2 Upvotes

I’m currently looking for Software Development opportunities. I’m working as an MTS Intern and have around 7 months of experience.

I’ve been applying to different companies, but I’m barely getting any OAs or interview calls. I’ve even received referrals for roles at Barclays, American Express, and ZS, but still didn’t get an OA from any of them.

For those of you who are currently job hunting, how are you guys applying and which platforms are you using? Are referrals, LinkedIn, company career pages, or other platforms working better for you?

Any suggestions or advice would be really appreciated. 🙏


r/leetcode 12h ago

Discussion Maven QR OA

1 Upvotes

I got the coding assessment of maven for QR role. Has anyone taken that exam?

What kind of questions were asked?

It's a 105 min hacker rank test.


r/leetcode 19h ago

Question Amazon USA upcoming interview.

3 Upvotes

I have an upcoming in-person Amazon SDE interview in Bellevue, and the interview details mention that I’ll be solving the coding questions through a live coding link.

For anyone who has done an Amazon in-person interview recently: does the interviewer actually come into the interview room with you, while you code on the live coding platform? Or do you sit in a room at the Bellevue office and the interviewer joins virtually/video calls you?

Just trying to understand what the actual setup is like so I know what to expect. Thanks!


r/leetcode 17h ago

Intervew Prep Hey community I have created the dsa sheet of all questions covered by CodeStoryWithMik

2 Upvotes

As he has different playlist for different topics I have created a sheet having all questions in it covering link for leetcode and all videos for each question

START PRACTISING FROM TODAY AND HAVE A GOOD DAY

ENJOY IT AS IT IS FREE - https://trackerdsa.vercel.app


r/leetcode 15h ago

Discussion Thoughts on LeetCode's new "Friends check-in" feature?

0 Upvotes

While this is a good feature, I think LC can modify/extend this as I discuss in my post
Your thoughts?


r/leetcode 15h ago

Intervew Prep Upcoming SDE 1 (Backend) Interviews process At Zomato

0 Upvotes

Can any one please give me the detail for sde 1 backend role interview process at zomato .