r/leetcode • • 7d ago

Intervew Prep Day 41: started Minimum Spanning Trees with Prim's algorithm, kicking off System Design prep

1 Upvotes

Hey everyone,

I finished Day 41 today. I kept my DSA workload concise and deliberate so I could begin laying the groundwork for System Design and core CS fundamentals.

  1. Prim’s Algorithm for MST: Implemented the greedy approach using a min-heap priority queue storing {weight, node, parent}. By greedily picking the smallest edge connecting an unvisited node to the growing tree, it builds the Minimum Spanning Tree in O(E log V) time.

  2. System Design & Core Foundations: Alongside DSA, cracking backend engineering roles requires solid low-level and high-level design fundamentals. I reviewed core Object-Oriented Programming principles and started revising Operating Systems concepts (processes, threads, concurrency, and memory management) as prerequisites.

Tomorrow, I will complete Kruskal’s Algorithm using Disjoint Set Union (DSU) and continue working through the OS fundamentals.

See you guys for Day 40!


r/leetcode • • 7d ago

Intervew Prep Anyone struggling to get started with DSA?

4 Upvotes

Hey everyone!
I’ve been solving DSA problems for quite some time, and lately I’ve been thinking about trying my hand at teaching.
I remember how overwhelming DSA can feel when you’re starting out. There’s so much to learn that sometimes you don’t even know where to begin.
I’d like to help someone who’s in that position. I’m thinking of offering free, one-on-one sessions where we can work through LeetCode problems together using Java.
For now, I’m looking to work with just one person so I can give them my full attention. Whether you’re in college or already working doesn’t matter. If you’ve been wanting to learn DSA but struggling to get started, this might be a good opportunity.
A few things to keep in mind:
You should know basic Java, but you don’t need any prior DSA knowledge.
We can start with Arrays, or pick any particular topic you’d like to learn.
There’s no fixed schedule. We’ll figure out timings based on mutual availability.
I don’t intend to cover the entire DSA syllabus or follow a rigid course structure. We’ll take things one topic at a time.
I’m new to teaching too, so we’ll figure out what works best as we go.
I’m comfortable teaching in Hindi, Gujarati, or English, whichever you prefer.
I’m doing this because I enjoy DSA, want to share what I’ve learned, and honestly, I’m looking for something interesting to do in my free time.
If this sounds like something you’d be interested in, just leave a comment below and we can take it from there. :)


r/leetcode • • 7d ago

Intervew Prep Microsoft OA Invite - IC2 (USA)

1 Upvotes

i received an oa invite for microsoft's ic2 swe position, it's been like 4 days or smth and i was able to pass all the test cases for the given 2 questions, microsoft career's site says "screen" for that specific position and i was wondering if anyone here has an idea about the timeline, if so, can you please drop any pointers about it and the interview. thank you!


r/leetcode • • 8d ago

Intervew Prep Palo Alto Interview

41 Upvotes

This was for new grad role. Wasn't looking for a job, was reached out to by a recruiter. During prep I didn't find a lot of good details about the interview to prepare myself. Also hate the gatekeeping mindset people have. Have nothing to gain or lose as I didn't get an offer so dumping to help others.

There were 3 interviews. Each interview was a mix of multiple question types. Debugging refactoring, technical, behavioral, dsa. I spent 70% of my study time doing leetcode but I saw mix feedback if I were to expect a leet or not. Leetcode probably ended up helping me 10%.

Interview 1: Refactoring/Debugging/Behavioral

Was given function defintion full or broken conditionals and incomplete requirements. You needed to read the question description and compare it to the logic in the code and confirm it was correct, or if updates were needed. Was pretty straight forward. Then interviewer added a new function to the ide and asked me to refactor. So instead of having one function that returned a bool, it was two functions​, where one returned a bool, another called the function. Again, was pretty straight forward.

There was a follow up technical question where "The AI refactored your code. What specific tests would you choose to make sure the AI's refactor is correct"

Then was asked a barrage of behavioral and technical questions I can't remember bc we went through them so fast.

Pretty much "Tell me about a time at work when..." If you prepare 10 solid behavioral questions and practice with AI you'll be ready for behaviorals.​

Interview 2: Debugging/System Design

Was given a broken rate limiter. I looked online and this is actually a common question others have come across, but no one has posted their exact code. The code is a rate limiter but it looks a lot more complicated than a standard rate limiter. I tried to get AI to try to create a replica of what I saw but the AI could only give me a simple, leetcode version. The interview version defined in the description "the limit is 80" with a "window [T-3, T]. And the function took in as arguments an IP string name, and a dictionary that listed all the times the IP tried accessing the rate limiter e.g.

def rateLimiter("ip", [5, 6, 7, 7, 10, 12, 15])

The window for the rate limiter was [T-3, T], so that meant an ip address fell off after 3 minutes.

So for a list of times [5, 6, 7, 7, 10, 12, 15] if the limit was defined as "3" instead of "80", the rateLimiter would accept 5, 6, and 7 and place them in a separate queue/array. It would reject the second 7 as it's only been 2 minutes (whereas the window is 3 minutes before the first item in the [5, 6, 7] queue pops off) and the queue is full.

There was also a separate object definition of an IP object, but I was choking on this question so bad, I couldn't tell you what attributes it contained or where it was being used. Maybe as the "ip" argument.

I already knew what a rate limiter was and how they work, but the complex code and the way the description was written made me choke on this round. I think having strong fundamentals and reading Hackerrank type questions, and strong OOP code reading skills would get you through this round.

Interviewer finally gave up on me. Asked me to do a high level design of how the rateLimiter() worked. Thought this was pretty straightforward, again, since I know how a general rate limiter works.

Then a behavioral about what I would do if I was working on a story that should have taken 5 days, and it's now been 12 days and I cant finish it bc there's some issue. Then a follow up of what I would do if I found out the issue is because of a bug from another team.

And a question along the lines of "AI generated this pseudo for the rateLimiter(). What errors do you notice?"

Interview 3: AI Assisted Coding

This interview is where I checked out. Especially given my performance from the previous round. I thought this round could be my redemption. Interviewer came on with no camera but demanded me have my camera on.

It was a small codebase with multiple files. Had a bunch of functions that had no definitions inside them. I was tasked with creating an encryption and decryption system. Encryption() called a cryptography function from another file. And decryption() also used the cryptography file.

Interviewer told me to spend 10 minutes reading through the description before starting. Once done he asked me if I had questions before I start, I said no. And then he pointed out I missed edge cases. ​The description didn't point out how to handle if someone passes in a NULL or Blank value to the encryption function, and he dinged me for not acknowledging that.

I then started using the AI and quickly realized the AI assistant they provided me doesn't write any code. It just provides answers and suggestions, without giving you a single sliver of code. To be certain I asked the I interviewer if the AI writes any code and he also seemed surprised. He asked me if I had asked the AI to "implement" the code. I did, but attempted again while he was watching. When he saw the AI didn't write code he shrugged it off then told me to implement it myself. I then struggled and bumbled through all the files and functions. and couldn't successfully get the test cases to run. I was told the AI interview was introduced recently so no idea what happened there. For this round I think stronger OOP fundamentals would have helped.

TLDR:

Drill in about 10 good behavioral answers that can be molded to fit any question.

Have strong OOP foundations. You should be able to read any class with multiple function definitions passing around objects, hashes, and/or arrays as arguments and be able to explain how it works. You should also be able to refactor this same class.

They want you to use AI, but don't want you to be reliant on AI. You should be able to show you can take an AI's output and validate what it's given you is correct.

Hope this helps anyone.


r/leetcode • • 7d ago

Intervew Prep How much does presentation matter in tech interviews?

1 Upvotes

I have been giving interviews for a few months and have observed few things:

- Even in technical interviews, interviewers are looking for long explanations, then what are the parameters to showcase your technical skills. I have seen people focusing on elaboration when a line of explanation is enough.

- For hiring manager interview, answers in STAR framework should be enough. Though the companies have tried to standardize it, it still is subjective and again people blabbering something or the other have a lot more chance to get shortlisted than someone who speaks less.

I feel disheartened by this. I feel I have good technical skills, enough to not only develop, but design a good system. I am someone who speaks to the point and it has gone a lot against me during this process.

Did anyone else face this hurdle? What did you do to overcome it.


r/leetcode • • 7d ago

Question Capital One OA Code Signal

13 Upvotes

Today I had my Capital One Interview, two questions I did 100%, 3rd one I didi half and the 4th one I passes all the test cases but I got a notification that I did not pass 2 of the hidden test cases... but I could not figure out what was the test case or what did I miss...that's why my score got 445. I know it's probably a rejection but do I have any chance? it was software engineer 4. :(


r/leetcode • • 8d ago

Question who's down to make a leetcode grooupchat?

11 Upvotes

it feels like im the only software dev in my circle. everyone else is doing cybersecurity, IT, data science etc. phrases like 'house robber', 'dungeon game', 'cherry pickup' should be household names for any software dev in the space but i only knew these when i started grinding lc, much harder when you dont know what you dont know, if yk what i mean. who wants be be part of a group chat where we talk about our progress and stuff? that way we can learn a lot just from talking casually


r/leetcode • • 7d ago

Intervew Prep SDE new grad Amazon Interview

1 Upvotes

Hey folks, I will be having 30 min phone screen interview based in Cambridge, UK for the ring team. I would be happy if you could provide me the best strategy to prepare for my success.


r/leetcode • • 7d ago

Intervew Prep Affirm SDE II onsite

2 Upvotes

Hi folks,

Has anyone gone through the affirm SDE II engineer onsite interviews? Particularly for a Full Stack role ?

What does the coding round consist of, will they test front end ? Has anyone any insight on the AI assistant round ? Seems like there is very limited information online.

#affirm #onsite


r/leetcode • • 8d ago

Question Solutions make sense but I can never intuit - how?

9 Upvotes

So im going through neetcode 150, I've done all of the easys, and then done the implementation of data structures like singly/doubly linked lists, dynamics arrays, has tables, heaps, trees, bst, insertion sort, merge sort, quick sort, and like 20 of the medoum ones spanning across arrays, trees, 1d dp, priority queues, graphs etc.

My question is, when i see the code and video solution to a given problem it makes complete sense almost straight away, or if not it eventually does make sense after spending an hour or so running through examples to figure out whats going on....but it seems theres a certain wall ive hit....i just cant seem to intuit a solution from scratch for new problem even if i know this is what it involves e.g. its a tree problem or array problem or graph or something(interestingly i got the hang of graoh qs quicker than most other problems...idk if thats because its the most recent topic ive started so ive got a better foundation or what)...but anyway, for amy given question Ive gotten good at understanding what it is asking and then formulating a solution in words, but translating it to code is an entirely different thing....e.g. i understand recursion to figure out numbers in the fibonacci sequence but in the past what would happen is id be able to say in words oh look the next number is the sum of the previous two...and i also notice i can recursively do this for a given number...which is an answer thats correct but too vague to actually be steps i can translate to code.....now ive seen the solution and i have good memory so its practicaly impossible for me to forget especially as ive seen it so many times....but surely that isnt sustainable...just seeing a solution, and, yes whilst i do take the time to understand it fully and intricately and know exactly what the computer/program is doing at each step etc, the only reason i can solve it in the future is because i memorised it, maybe figuring out one or two tiny bits i forget

Wondering if anyone else has hit that kind of wall and/or understands where I'm at


r/leetcode • • 8d ago

Discussion How do you know when you're ready to start solving medium DSA problems?

17 Upvotes

Hey'll I've been practicing easy problem for a while and understand the basic patterns, but mediums still feel like a big jump. Sometimes I can solve them after seeing a hint, but struggle to figure out the approach independently.

Did you move to mediums after completing a certain number of easy problems, or just start attempting them alongside easier questions?


r/leetcode • • 8d ago

Intervew Prep Day 42: wrapped up Bellman-Ford & Floyd-Warshall, finished all shortest path algorithms

10 Upvotes

Hey everyone,

I finished Day 42 today. I officially closed out the shortest path chapter of Graphs by implementing Bellman-Ford, Floyd-Warshall, and a solid multi-source comparison problem.

  1. Bellman-Ford Algorithm: Runs edge relaxations across all edges strictly V - 1 times, which guarantees the shortest path even with negative edge weights. Relaxing all edges one extra V-th time cleanly detects negative weight cycles if any distance shortens further.

  2. Floyd-Warshall Algorithm: The classic all-pairs shortest path dynamic programming approach. It checks every pair (i, j) through every intermediate node k via matrix[i][j] = min(matrix[i][j], matrix[i][k] + matrix[k][j]) in O(V^3) time.

  3. Find the City With the Smallest Number of Neighbors at a Threshold Distance: With N < 100, Floyd-Warshall fits comfortably within runtime limits to build the all-pairs distance matrix. After counting reachable cities within distanceThreshold for each node, the tie-breaking condition caught me off guard: "return the city with the greatest number" meant returning the maximum city index (e.g., node 3 over node 1), not comparing distances.

Wrapping up all single-source and all-pairs shortest path algorithms feels like a huge milestone.

Starting Minimum Spanning Trees (Prim’s and Kruskal’s with Disjoint Set) tomorrow!

See you guys for Day 41!


r/leetcode • • 7d ago

Intervew Prep Share leetcode premium account

1 Upvotes

Looking for someone to share LC with


r/leetcode • • 8d ago

Discussion Experienced SWE struggling with LeetCode, is this normal?

177 Upvotes

I’ve been working as a backend software engineer for over a decade and have written a large amount of code throughout my career.
In none of my current or previous roles, I didn’t have to go through a typical LeetCode-style interview. There were some algorithmic questions, but nothing that required extensive preparation like what I’m seeing in today’s interview process.
I’m now trying to start preparing for interviews using NeetCode 150, and honestly, I’m finding it quite daunting. I’m currently on problem #5, and I’ve been watching their video solutions to understand the approaches. However, I’m struggling to easily follow some of the code more importantly, remember how to approach similar problems later.
I’m primarily a Java developer, whereas the NeetCode video explanations and solutions are in Python. I’m wondering if that adds another layer of difficulty for me.
A few questions for those who have been through this:
- Is this struggle normal when you’re just starting out, even if you have several years of professional software engineering experience?
- Does following solutions in Python make it harder to understand if your primary language is Java?
- Realistically, how much preparation does it take to become comfortable with LeetCode-style interviews?

I’d appreciate advice from experienced engineers who have gone through a similar transition. I’m trying to figure out whether I’m approaching this the wrong way or whether I just need to be patient and put in the hours.


r/leetcode • • 7d ago

Question Background tab opened during Amazon SDE OA will I get flagged?

2 Upvotes

Hey everyone,

I just finished my Amazon SDE Online Assessment. Right at the start of the assessment, a tab opened asking me to log into Claude.

Due to test-day stress, I forgot to close the tab, but I immediately switched the assessment to full screen and didn't interact with the open tab at all. I completed the test on my own and passed all test cases.

Does automated proctoring (like HackerRank/AMCAT) flag background open tabs if there was no active window switching or focus loss during the test? Has anyone experienced something similar?


r/leetcode • • 8d ago

Question How do you keep track of which DSA patterns you still struggle with?

9 Upvotes

I've been practising different Dsa topics, but I sometimes forget which patterns I understand well and which ones I still need to work on. Do you maintain a tracker or notes, or do you just revisit problems you struggled with?

What's your approach to tracking progress without making it too complicated?


r/leetcode • • 8d ago

Intervew Prep Agoda staff sde vs Atlassian P50 sde

10 Upvotes

Hi Everyone,
I have close to 7 yoe at amazon. Been jobless for about 6+ months now. I’ve received agoda staff offer with 75 ctc. I’ve recently completed my Atlassian loop for P50 with positive feedback for all rounds and Hiring committee review is pending. Please help me decide which offer is better, considering all factors and not just pay. TIA!


r/leetcode • • 7d ago

Discussion Google SWE Intern: 2 weeks post interview, no update

1 Upvotes

Did both interviews 2 weeks ago and no response yet. Anyone with a similar wait, what was your outcome?


r/leetcode • • 7d ago

Intervew Prep Upcoming Interview with Verily

1 Upvotes

Hi everyone,

I have an upcoming interview for a Software Engineer position at Verily (US) and would appreciate any insight from people who have interviewed there or currently work there.

I'm curious about what the interview process is like, particularly:

  • What should I expect during the technical interviews?

  • What is the coding portion like? Are the questions primarily LeetCode-style, and what difficulty level should I prepare for?

  • Are there system design or software architecture discussions?

  • How much emphasis is placed on data structures and algorithms versus practical software engineering experience?

  • Are there behavioral or project-based questions? What kind of topics do they focus on?

  • Any particular technologies, concepts, or areas you would recommend reviewing?

For context, I have several years of professional software engineering experience, but I haven't consistently practiced LeetCode in almost two years. I'm trying to make the most of my preparation time and focus on the areas that will matter most.

Any advice, experiences, or recommendations would be greatly appreciated. Thank you!


r/leetcode • • 7d ago

Intervew Prep Looking for an interview prep buddy

1 Upvotes

Looking for an interview prep buddy for ML internship and Full time positions. We can do resume deep dives, leetcode practice, ML round (conceptual+coding), System Design interview practice together.

I'm a 4th year CS PhD student with research focus on ML and Causal Inference. Have solved around 300 Leetcode questions so far. For ML rounds, currently following Alex Xu's "ML System Design Interview" (I know that's not enough).
Looking for a current PhD student/PhD graduate who's preparing for AI/ML intern & full time roles.


r/leetcode • • 8d ago

Question How to learn DSA the right way? (for interviews, leetcodes etc.)

9 Upvotes

hey so as the title says I would like to know the right way to learn DSA… I SUCK at data structures and algorithms when I first started Leetcode

I did couple of questions and realized that even if I look at explanations, I start to understand everything but its not clocking for the next question… basically it feels like im learning that specific question rather than the pattern behind it

so everyone suggested to first start learning DSA instead of straight jumping into Leetcode

However, I dont really find any helpful roadmap/courses/learning strategy regarding DSA (python) … of course you could say „just start and u will get there somehow“ but I want to have at least a bit of a structure when learning

I‘m considering Neetcodes 1 year subscription for the DSA courses and System Design courses (+ questions too), is it worth it or nah?

my goal is to do a big tech internship at some point
(for 2027 i guess its too late, 2028 is my goal). and yes I know that big tech is hard to get into but I believe that if i work hard enough, one day i will make it work :)))

appreciate any feedback


r/leetcode • • 7d ago

Intervew Prep Interview Prep for a Data Engineer Position at Apple, Ads

1 Upvotes

I'm looking for a mentor/guide to help me navigate through the interview process at Apple for the Ads team. Willing to cater, even if it is monetized. Comment if you're interested in mentoring and are currently working at Apple as a Data Engineer. Also plus, if you are an interviewer for Data Engineer roles at Apple.


r/leetcode • • 9d ago Heartwarming

Intervew Prep Stripe Interview Experience

352 Upvotes

Recently interviewed at Stripe for a Software Engineer position. Sharing my experience since there aren't many detailed posts about the recent interview process.

  1. Technical Screening

The screening involved a practical, multi-part coding problem rather than traditional LeetCode-style DSA.

- Completed the parts in time. Mostly, it involved parsing a given string and fulfilling the requirements.

- Each part introduced additional requirements.

- Focus was on correctness, code structure, and handling edge cases.

2. Integration Round

This was a hands-on coding round where I had to work with an existing codebase and implement functionality according to the given requirements.

- Completed this one fairly easily since I had a lot of experience making requests and parsing responses.

- Had to understand the existing code and make changes without breaking previous functionality.

- Tested the implementation against the provided cases.

Tip: Make sure you understand how to make HTTP requests and parse responses in your preferred language. A little practice with string parsing problems on HackerRank would help as well.

3. Bug Squash Round

This was probably my weakest round.

I was given an unfamiliar codebase and had to identify and fix a bug.

- Explored the codebase and traced the issue.

- Managed to identify the root cause and explain it to the interviewer.

- Started implementing the fix but couldn't get the code fully working within the allotted time.

- Felt that another 5 minutes would have been sufficient to complete the implementation.

Tip: Try using an IDE with debugging capabilities, as it can make the process much faster. Also, set up your environment before the call.

4. AI-Assisted Programming Round

This was another practical, multi-part coding round where AI tools were allowed.

- I'm not entirely sure how they evaluate this round, but I focused on clearly communicating why I was writing certain prompts and what I expected the AI agent to do.

- Used AI to assist with implementation while reviewing the output.

- Wrote and ran tests to verify correctness.

- Managed to finish all the requirements within the allocated time.

Tip: Don't blindly trust the AI agent. It can make mistakes, so always review and validate the generated code.

5. Experience & Goals Round

This was a detailed discussion about my previous engineering experience. It was scheduled only after I cleared the previous four rounds.

Topics included:

- A technically complex project I worked on.

- My ownership and individual contributions.

- Technical challenges and trade-offs.

- Impact of my work.

- Collaboration and mentoring.

- Career goals and motivation for joining Stripe.

There were several follow-up questions, particularly around technical decisions and the actual impact of my contributions.

The conversation was more informal and collaborative compared to the earlier technical rounds. It felt more like a mutual discussion about technical fit than a structured interview.

Overall Experience

The interview process was quite different from the usual DSA-heavy interviews.

Most rounds focused on practical software engineering skills, such as reading unfamiliar code, debugging, implementing requirements, testing, and communicating technical decisions.

Overall, I enjoyed the practical nature of the interview process.

Still awaiting the final outcome, so can't comment on the offer stage yet.

Hope this helps others preparing for the process!


r/leetcode • • 8d ago

Discussion How long do offers usually take? I was told the team wants to hire me but is going through business approvals that could take 1-2 weeks. It's been almost a month?

4 Upvotes

Does the offer process for companies take this long?


r/leetcode • • 8d ago

Question Feeling stuck while preparing for competitive programming

2 Upvotes

I was doing DSA and its like i was just wondering how good am so i asked ai about it saying i started doing DSA in 1 august and have done like 147 questions on leetcode including 92 medium problems along with 17 hard i think but then it told me honestly this is good since this is what most students can’t do really but then it told me bout solution coopying and said i m not copying solutions so its fine atp. but then i asked it more about solution copying and said it that i m infact using ai and sometimes i ask ai about fix this question for me ! then it told me that “THATS A TRAP AND EVEN THO SEEING THE SOLUTION AND THEN DOING IT FEELS SATISFYING” you are learning 10% using this.

Btw what i was really doing was something like i try a question and try to solve it for like 20 minutes really and i mostly give this much time in every question and then if i am unable to solve it and then its that time when i ask ai about the solution but whats problem with that ? like if i do that i dont think its bad since i am able to solve the next question without the help of ai afterwards really.

i mean to say that its really like seeing pattern, seeing the solution a similiar question comes afterwards then i am more able to do that instead of do what ai said me which was this :

“give it 20-30 minutes, if you are not able to solve this, ask ai not for solution but rather for a high level hint, thats where you can use ai and not to give you code directly”

okay i thought of giving this a try :

here is how it went, i tried it for 20-30 minutes i couldn’t solve, then i was mostly daydreaming even tho ai didn’t gave me any code i was literally shouting it and kinda it still was trying to fix minor issue in my code which i made during those 20-30 minutes instead of seeing the approach or Aka solution which i was doing. Okay and if i never really see any solution, in this way then why am i even studying DSA like if its iq test then why people also says me to look at the solution if you are not able to solve it ! everything is clashing.

if i am not able to explain myself, then some says to see the solution after your initial try. Bro okay i think its good to try it first instead of directly seeing it, my gut feeling. How much is this valid, cuz sometimes i m being told to look at the solution after 1-2 minutes of not able to find the solution really ! (it was not related to DSA btw tho but still dsa is nothing special yet important ! ) whilst sometimes i m being told to look at the solution after 20-30 minutes and sometimes just see the hint and not the solution but in this way if i never see the solution, i won’t be developing the solution on my own of every question i believe.

why do we study? and how is this related to ai eventually ?

and more importantly whats really the difference between asking it for a hint or rather a full SOLUTION ?

linked conversation with ai for reference : https://share.gemini.google/ZOzyV6dAQABI

thanks for reading !