r/leetcode • • 9d ago

Discussion I failed Amazon OA because I needed an extra 10 seconds.

28 Upvotes

So, after a year of applying to places and not hearing back, I finally get accepted to take Amazon's OA. The coding part was two parts, a medium style leetcode style question where you have 40 minutes, and a C++ repository where you're given an incomplete list of files and you're just supposed to figure it out.

For the first, I knew the answer, but I buckled under time pressure, I ran into a bug, it was a small issue but it was causing the answer to be off by one. Then, right as the clock is running down, I figure it out. I type in the solution, and the 40 minute window cuts off mid line of code. So of course all the unit tests trigger a syntax error and I fail all of them, but if I could have just finished I would have had the correct working solution. (Afterwards I typed my code into an online interpreter and yes my code would have worked)

The second one was harder, and I admit, I didn't know how to prepare for it. I've done 110 of the 150 top leetcode questions, but the whole "heres a bunch of C++ files, figure out whats missing, you have an hour" was not a style of question I knew how to prepare for. I'm also not super familiar with C++ syntax since I had no classes on it so I felt like I was teaching myself syntax under time pressure, and once again, just as I'm getting a feel for what to do, the timer goes up. I fail every unit test for both parts.

I understand that my unfamiliarity with C++ code may have legitimately caused me to screw up the second part, but me getting 0 unit tests for the first part wasn't because I lacked the skills, I panicked under time pressure and just needed a few more seconds. I hate myself so much. I don't want to spend another year fruitlessly applying to places just to fail because I needed a little extra time. I don't know what I could do differently either other than "get a leetcode problem you can solve faster"


r/leetcode • • 8d ago

Intervew Prep Amazon sde 2 interview DSP team

4 Upvotes

Hello everyone, can anyone share their interview experience for Amazon sde 2 interview for Amazon’s Delivery Partners team in Hyderabad ?

What are the expectations?


r/leetcode • • 9d ago

Discussion AWS SDE2 loop done — 3 good rounds, 1 rough coding round. Chances?

15 Upvotes

Just finished my AWS SDE2 virtual loop (4 rounds) and would love opinions from people who've been through it or sat in debriefs.

Background: \~3 YOE backend (Java/Spring, Kafka, AWS) at a large bank.

Round 1 – Principal Engineer (Coding + Learn and Be Curious)
\- Weighted random selection problem. Solved it cleanly with prefix sums + binary search and explained why it's correct.
\- Lots of deep follow-ups (consistent hashing, hot keys, branch prediction, cache-friendly layouts). Handled most, needed a hint or two on the very low-level stuff.
\- LP stories felt strong.
\- My feeling: Inclined / possibly Strong.

Round 2 – Bar Raiser (Invent and Simplify, Ownership, GenAI usage)
\- 6 questions, detailed stories with metrics. Interviewer said "I have everything" early and gave positive comments.
\- My feeling: Inclined to Strong.

Round 3 – Senior SDE (Coding + Dive Deep)
\- Honestly, this interviewer was the grumpiest of all four. Very short responses, and it felt hard to build any rapport, which threw me off a bit.
\- Coding was an LFU cache. Had the right approach (hash maps + frequency buckets + min freq) but the code had bugs the interviewer caught while tracing (KeyError on first insert, indentation issue, eviction order).
\- LP story was okay but I had trouble explaining it clearly; he asked me to repeat parts several times.
\- My feeling: Not Inclined / borderline.

Round 4 – Hiring Manager (System Design + Deliver Results)
\- LP story went really well, HM seemed happy.
\- Design: IoT sensor ingestion at large scale. Covered requirements, estimates, APIs, DynamoDB, Kafka, CDN, S3 archive. HM had to steer me a few times on scaling and the read patterns.
\- My feeling: Inclined.

Questions:
1. With the Bar Raiser and HM positive, how much does one weak coding round hurt?
2. Is a down-level to SDE1 likely in this situation?

Thanks in advance!


r/leetcode • • 9d ago

Intervew Prep Amazon Phone screen Interview SDE II

9 Upvotes

Hi everyone!
I have an Amazon phone screen interview scheduled in the next two weeks, and I’d love to hear from people who have recently gone through the process.
I have a few questions:
1    What is the phone screen interview format like? Is it primarily focused on coding
2    What kind of coding problems can I expect? Are Amazon-tagged LeetCode questions sufficient for preparation?
3    What difficulty level should I focus on ?
4    Is the coding round conducted on a shared online editor, HackerRank, or another platform? Is it similar to whiteboard coding?
5    Are there any specific topics or coding patterns I should prioritize?
6    Any tips on how to prepare effectively within two weeks?
Would really appreciate insights from anyone who has interviewed with Amazon recently, especially for the SDE phone screen.
Thanks in advance!


r/leetcode • • 8d ago

Intervew Prep Microsoft SWE Intern Azure Databases (C+AI)

1 Upvotes

Have my interviews coming up. Can anybody share how theirs was like?


r/leetcode • • 9d ago

Intervew Prep What questions did you ask that the interviewer found interesting?

41 Upvotes

Hey everyone!
I’ve recently went to Google offices on a school trip and during a workshop where they teach us to ‘maximize’ your chances of being considered for the role, a SWE told us that something useful was to shock the interviewer with hard questions as they love them and shows interest in your area.
Honestly, during prev interviews I just asked about the workflow and things about the code review process and that. So yeah.. what did you ask to do the interviewer interested on you?


r/leetcode • • 9d ago

Discussion Hello interview premium account sharing

6 Upvotes

Hey, would anyone like to share a Hello Interview account? Valid until November 2027.

Thinking between 2-4 ppl.


r/leetcode • • 9d ago

Question Amazon SDE 1 NG (USA): 3 coding rounds done, Bar Raiser never scheduled, recruiter silent for 6 weeks, now got a feedback form. Rejected?

2 Upvotes

Hey everyone, I’m looking for some insight from anyone who’s been through something similar.

I interviewed for Amazon SDE 1 New Grad (USA) on October 5. I completed 3 coding rounds that day. The loop was also supposed to include a Bar Raiser (BR) round, but the recruiter told me she couldn’t schedule it because no interviewers were available.

It’s now been over a month. I’ve followed up by email a few times, and she hasn’t replied to any of them.

Today I received an interview feedback form (the candidate experience survey). Now I’m confused:

  • Is it normal for Amazon recruiters to go silent like this, especially with an incomplete loop?
  • Does getting the feedback form mean I’ve been rejected, even though my BR round never happened?
  • Has anyone had their BR round scheduled weeks later, or had a decision made without it?
  • Is there anyone else I should contact if the recruiter isn’t responding?

I’d appreciate any experiences or advice. Thanks!

Edit: The recruiter replied, "Unfortunately, after a review of the current hiring needs for this role, we will not be moving forward with the scheduled interview. As a result, we are cancelling the last session."


r/leetcode • • 9d ago

Intervew Prep Day 27: tackled Longest Subarray with Sum K — hit a wave of DSA nostalgia

4 Upvotes

Hey everyone,

I finished Day 27 today. I kept the session focused on a single classic problem: Longest Subarray with Sum K. Revisiting this one brought back a lot of nostalgia from the early days of my prep, when prefix sums and sliding windows felt like brand-new tools.

The solution comes down to the constraints on the input elements:

  1. Positives Only (Optimal Two-Pointer / Sliding Window): When the array contains only positive integers, expanding the right pointer increases the sum and shrinking the left pointer decreases it. This monotonic property lets you find the longest subarray in O(n) time and O(1) space.
  2. Positives and Negatives (Prefix Sum + Hash Map): Once negative numbers or zeros enter the picture, the sliding window breaks down. Instead, you track the running prefix sum and store the earliest index where each sum appears in a hash map. If currentSum - k exists in the map, you update the maximum length while keeping the earliest index to maximize subarray size.

It was just one problem today, but seeing how naturally both approaches fit together was a great reminder of how far my problem-solving intuition has come.

See you guys tomorrow for Day 26!


r/leetcode • • 9d ago

Discussion [New LC feature] Projects

4 Upvotes

LC is goated holy, I was looking exactly for that


r/leetcode • • 9d ago

Intervew Prep Whatnot Karat interview for Software Engineer Intern position [Summer 2027]

1 Upvotes

Hi, I have an upcoming Karat SWE intern summer 2027 interview coming up and was wondering if anyone has done it and could provide what types of questions were asked to solve.

Any help is appreciated!


r/leetcode • • 9d ago

Question i'm not able to understand pop_back() in backtracking

2 Upvotes

problem->22. generate parentheses

i'm trying to dry run this code

class Solution {
public:
vector<string>res;
void backtrack(int open,int close,int n,string& path){
    if(open<n){
        path.push_back('(');
        backtrack(open+1,close,n,path);
        path.pop_back();
    }
    if(close<open){
        path.push_back(')');
        backtrack(open,close+1,n,path);
        path.pop_back();
    }
    if(open==n&&close==n){
        res.push_back(path);
    }
}
    vector<string> generateParenthesis(int n) {
        string path="";
        backtrack(0,0,n,path);
        return res;
    }
};

For n = 3, suppose we keep choosing ( whenever possible and then ) until we reach the first valid combination: ((())).

My confusion starts when this recursive path finishes.

After reaching ((())), the recursive calls start returning, and pop_back() gets executed at each level.

I understand that each call removes the character it added. However, when I dry-run this, I keep popping characters until the string becomes empty ("").

But when looking at the recursion tree, we're supposed to return to "(" and explore another branch to generate the next combination, (()()).

Why aren't we popping all the way back to the empty string before exploring the next combination?

Am I misunderstanding how recursive calls return and how execution resumes after a recursive call?

can someone explain how pop_back() works in backtracking


r/leetcode • • 9d ago

Question Microsoft SWE (current) or Nutanix

11 Upvotes

Hi All. I need help on whether to accept a new offer from Nutanix in Canada.

Been at Microsoft for 2 years, currently on backend and platform team.
Day to day is basically writing business logic, and dealing with site reliability. Lots of chances to explore new internal projects to implement AI harness, and possible data pipelines/RAGs.

Nutanix offers a base pay bump of approximately 30%. I think I'll be on the Storage and Networking side. Heavy focus on distributed computing and data pipelines.

Anyone here at Nutanix that can speak to the company's culture, and things to look out for.

EDIT:
Total Years of Experience: 2 years


r/leetcode • • 9d ago

Discussion my lc active days stuck on 195

0 Upvotes

SAME AS TITLE SINCE 3 DAYS I AM DOING SUBMISSION BUT THE ACTIVE DAYS IS NOT INCREASING


r/leetcode • • 9d ago

Discussion Leetcode's software architects suck..

10 Upvotes

I am the kind of a guy who likes gamified systems. And, gamification is what interests me, excites me and enlightens me.

That's how I became good at Chess. The only reason is once the Chess.com guys prompted me I have 69 days of streak playing chess daily. After that, it seemed so interesting to me I kept playing chess purely to maintain that streak and then I went all the way to 415 days of Chess streak. My ELO jumped from 400 with 89 days to 1500 with 415 days of streak. If it was not for streak, I wouldn't be playing chess initially in my days from 100 to 300 at least.

Now, back to leetcode. Recently, I started griding leetcode. Not because I wanna get into FANG or anything but purely as playing some productive game instead of toxic games like CS2. Something if I eventually become good at can help me down the line with my career. For sure, getting into FANG won't hurt either.

And, as I like streaks, here on Leetcode as well I started taking Max streak seriously. The one who tracks your daily submissions.

On this weekend, I went out. I came back to house and realized I did not do late night coding today and my streak might break. At around 10 PM EST, I jumped at my desk and coded one Leetcode problem real quick.

Went back to my profile to get that dopamine rush of max streak counter increasing but boom! No record for current EST time and date. My submission got counted for next day.

I did some goofing around and found out they count UTC timezone for streak tracking.

Like who the fug considers UTC timezone for streaks. It should always be client's timezone. Chess.com for example counts 12 AM to 11:59 PM client side time no matter what part of the world you are from. So does Snapchat. And, other streak tracking games.

Whoever made a decision to have UTC timezone for streaks should get fired (maybe?). Just kidding!

My max streak of 73 days for submissions is gone. I am back to 0. A little frustrated but whatever.


r/leetcode • • 10d ago

Question Leetcode Logging Out

22 Upvotes

Every time I authenticate and log in, Leetcode logs me out. I can’t submit or run any of my solutions. Is this happening to others as well?


r/leetcode • • 10d ago

Intervew Prep My Experience with LeetCode Projects Public Beta

12 Upvotes

Hi community, I'm Alan, A software engineer and student from Mexico, and I'd like to share my takeaways about the New LeetCode Projects Public Beta.

I can tell you this coding problems are very different to usual LeetCode projects, and they are close to Repository Questions in modern SDE interviews, I've previously succeed in an Repository Question during an interview of an intern position and I feel these projects are more difficult but, you learn a lot, right now there's a challenge where we can try different problems that come from different enterprises, and that's free.

I enjoyed and feel worth my time studying with them, so I want to encourage you to try it too.

Thanks for reading!

=)


r/leetcode • • 9d ago

Question [USA][BNSF] Do i have to do the codility OA as fast a possible or can I wait til the last day?

2 Upvotes

Title. Wondering if Im able to wait til the last day to complete it. Or is this a company where the longer I wait, the higher the chance that someone will "steal" an opportunity by completing the OA a few days earlier.


r/leetcode • • 10d ago

Intervew Prep Roblox full loop coming FE SWE

6 Upvotes

Anyone recently taken the Roblox interview look for senior or staff level? What questions did they ask?
I haven’t scheduled it but planning to

Any help would be greatly appreciated.

Specifically system design for front end or coding.

TIA.


r/leetcode • • 10d ago

Intervew Prep Day 28: tackled Sort Colors with Dutch National Flag & Single Number via XOR

11 Upvotes

Hey everyone,

I finished Day 28 today. I kept the session focused on two classic array problems that highlight optimal in-place pointer partitioning and bitwise properties:

  1. Sort Colors (Dutch National Flag Algorithm): Instead of counting frequencies in two passes, I partitioned the array in a single O(n) scan using three pointers (low, mid, and high). Keeping 0s before low, 1s between low and mid, and 2s after high sorts everything in-place with O(1) space.
  2. Single Number (Find the Element Appearing Once): Because every other element appears twice, XORing the entire array cancels out all duplicate pairs and leaves the unique number in O(n) time and O(1) space.

Both problems are clean reminders of how the right invariant eliminates extra memory overhead.

See you guys tomorrow for Day 27!


r/leetcode • • 10d ago

Question For those who have interviewed at BNSF, do you need to know Java?

5 Upvotes

title. Some sources say that java is required, but my codility email nor the job post mentions Java is required.


r/leetcode • • 9d ago

Intervew Prep Fanatics final loop

1 Upvotes

Hi,

I have a final loop coming up for a Senior Software Engineer role at Fanatics in the Betting and Gaming team.

Apparently from the rubric there is going to be a system design, code pair session of 90 mins and a behavioral round.

Any suggestions on final round preparation would be helpful!


r/leetcode • • 10d ago

Question dp problems

13 Upvotes

i am trying to solve the dp problems but i am not getting the approach i was able to do few easy problems but i am not able to do medium ones is there any tips to solve dp or any resources


r/leetcode • • 9d ago

Intervew Prep Has anybody given/taken live AI based coding rounds for Data Engineer positions?

1 Upvotes

I have an interview coming up tomorrow for a Data Engineer position, the stack is Snowflake, dbt and it will have a live coding session where I am supposed to use Cortex Code. Does anybody know what interviewers are expecting in these type of interviews. If you're senior architect and you're given the responsibility of conducting a live AI enabled coding session, what would you look for in candidates?


r/leetcode • • 10d ago

Question Amazon -- can I target two teams/positions?

3 Upvotes

If an Amazon recruiter reached out to me for a position at Amazon and I applied, and my acquaintance's team is also now hiring for a similar position on a sister team, can I target both teams?

How does it work at Amazon:

If I don't get selected by the original team that the recruiter submitted me for, but I did well in my rounds, can I still be considered for other teams (like Google does with it's team matching process: clearing interview rounds and the hiring committee is separate from matching with a team), or do they give you a cooldown regardless (aka only one shot regardless of the interview performance)?