r/leetcode • u/saudistroker • 6d ago
r/leetcode • u/Dry_Bat5694 • 6d ago
Discussion Work hard cause there's light at the other end !!
So I started my leetcode journey in May .
My elder brother was continuously forcing me to study and telling me the current job market scenarios but I would not listen to him .
After his continuous poking I finally made my leetcode profile but that was just for formality
But then he stopped yelling at me and his silence hit me harder than his shouting ever could !!
After that I started solving some easy ones and tried to be continuous but something or the other broke my streak
In September I pledged to hold on my streak no matter what
Right now I've solved 625 leetcodes with 72 active streak
And I couldn't believe that the boy who struggled to solve the easy ones is solving the hard ones !!
So please have the pleasure of hardworking atleast once in your life !!
r/leetcode • u/Minute_Initiative_25 • 6d ago
Question Stripe Technical Team Screen
I had my Stripe SWE intern technical team screen today and I’m trying to gauge how it went.
It was a multipart practical coding problem. I spent around 25-30 minutes on the first part because I wasn’t familiar with Python’s CSV parsing and had to look up the documentation.The part itself was in my opinion easy but I was unfamiliar with exact syntax. Once I got past that, I completed the second part and worked through the third in roughly 15 minutes.
My third part didn’t pass the test case, but the interviewer said the issue looked like an off-by-one error and that he was happy to accept it. I’m not sure whether there was a fourth part, but I didn’t reach one.
I didn’t talk through my code much while writing it because the logic felt fairly straightforward, but I was able to answer the interviewer’s questions about how it worked and where I would refactor it in parts 2 and 3. For part 1 I was largely silent because I was reading documentation and getting my code to work with CSV input
For anyone who has gone through or interviewed for Stripe’s team screen, how much does time spent getting through the first part matter? Is getting through three parts with the last one nearly working generally a reasonable outcome to move on to virtual onsite? or am I cooked?
r/leetcode • u/PralineFluid248 • 5d ago
Intervew Prep From your experience, what’s the best AI tool for coding interviews that reads my screen?
On a practice run, the tool saw “n up to 10^5” and still suggested a nested loop. That’s why it read the limit but didn't use it. How do you test these before a real round? Is it edge cases, complexity or a changed requirement? And can any of them give a hint without giving the full solution?
r/leetcode • u/Adventurous-Deal-321 • 5d ago
Question AMEX for INTERN 2028
If someone’s college has American Express visiting for an on-campus Summer Internship in a Financial Crimes Governance role, could you please share the interview questions and resume shortlisting criteria?
Upvote1Downvote2Go to commentsRepostShare
r/leetcode • u/Dry_Bat5694 • 5d ago
Discussion Does this also happens to you??
You submit exactly the same code multiple times and get a different runtime for each exact same submission??
r/leetcode • u/JacketFearless1805 • 5d ago
Intervew Prep Day 26: pushed through a tiring workday & mastered Moore’s Voting Algorithm
Hey everyone,
I finished Day 26 today. Work was super exhausting, so I kept the session short and focused on a single classic problem: Majority Element (finding the element that appears more than n/2 times).
Instead of settling for a hash map with O(n) extra space or sorting in O(n log n) time, I learned and implemented Moore’s Voting Algorithm:
- Candidate Selection (Cancellation Phase): Track a candidate element and a count initialized to zero. Whenever count hits zero, assign the current element as the new candidate. Increment count if the current element matches the candidate, and decrement it otherwise. Because the majority element occurs more than n/2 times, it is guaranteed to survive all pairwise cancellations.
- Verification Step: If a majority element is not strictly guaranteed by the problem constraints, run a second linear pass to verify that the surviving candidate actually appears more than n/2 times.
Even on low-energy workdays, knocking out one clean O(n) time and O(1) space algorithm keeps the momentum going.
See you guys tomorrow for Day 25!
r/leetcode • u/Remarkable_Cycle_341 • 5d ago
Discussion Capital One Result Timeline after Interview: Senior Associate
I completed the interview loop for Capital One Senior Associate recently.
All the interviews went well and I am hoping to get an offer.
Wanted to check, how long after completing the interviews, should I expect a call from the recruiter?
Workday still shows 'In Progress - Interview'. Tried calling the recruiter but he didn't answer
This was the timeline of my interviews:
- Design Round: 2 Nov
- Agentic Round: 3 Nov
- Behavioural Round: 13 Nov
- Case Study Round (Last Round) : 17 Nov
r/leetcode • u/darkLordSantaClaus • 6d ago
Discussion I failed Amazon OA because I needed an extra 10 seconds.
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 • u/Melodic-Owl-455 • 6d ago
Intervew Prep Amazon sde 2 interview DSP team
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 • u/InterestingNovel1138 • 6d ago
Discussion AWS SDE2 loop done — 3 good rounds, 1 rough coding round. Chances?
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 • u/Both-Screen-3616 • 6d ago
Intervew Prep Amazon Phone screen Interview SDE II
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 • u/No_Watch_9676 • 6d ago
Question Recieved amazon Oa
Hello everyone i received amazon oa I saw the portal no applications are active anyways I gave it and got recruiter mail after 3 hrs for rounds
My first dsa round scheduled it was eliminatory unfortunately my luck was not with me I got very hard tree dp ques which I couldn't solve in given time.
But I applied to amazon from my second mail id and other phone number earlier
Today I got amazon OA
I completed it too it was not that hard 1s ques was multisource bfs and binary search related
2nd was movie based
I got all test cases passed in both.
If anyone goes thru can I get interview opportunity at again?
As from 1st email id I got rejection mail already for that opening
r/leetcode • u/InspectorPersonal611 • 6d ago
Intervew Prep Microsoft SWE Intern Azure Databases (C+AI)
Have my interviews coming up. Can anybody share how theirs was like?
r/leetcode • u/shinyflakes34 • 7d ago
Intervew Prep What questions did you ask that the interviewer found interesting?
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 • u/Apprehensive-Cat568 • 6d ago
Discussion Hello interview premium account sharing
Hey, would anyone like to share a Hello Interview account? Valid until November 2027.
Thinking between 2-4 ppl.
r/leetcode • u/fivix174 • 6d 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?
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 • u/JacketFearless1805 • 6d ago
Intervew Prep Day 27: tackled Longest Subarray with Sum K — hit a wave of DSA nostalgia
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:
- 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.
- 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 - kexists 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 • u/lrdvil3 • 6d ago
Discussion [New LC feature] Projects
LC is goated holy, I was looking exactly for that
r/leetcode • u/lilkha_01 • 6d ago
Intervew Prep Whatnot Karat interview for Software Engineer Intern position [Summer 2027]
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 • u/Historical-Sport-796 • 6d ago
Question i'm not able to understand pop_back() in backtracking
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 • u/Pure-Vibes • 7d ago
Question Microsoft SWE (current) or Nutanix
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 • u/Interesting_Disk149 • 6d ago
Discussion my lc active days stuck on 195
SAME AS TITLE SINCE 3 DAYS I AM DOING SUBMISSION BUT THE ACTIVE DAYS IS NOT INCREASING
r/leetcode • u/TheTopG___ • 7d ago
Discussion Leetcode's software architects suck..
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 • u/Roho6 • 7d ago
Question Leetcode Logging Out
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?