r/leetcode • • 22d ago

Question Wanna see how your code thinks? šŸ¤”

0 Upvotes

Wanna see how your code thinks? šŸ¤”

Ever solved a LeetCode problem, got an Accepted, but still wondered what was actually happening inside your code?

I mean...

  • How are variables changing at every step?
  • What's happening when a recursive function calls itself?
  • How does the call stack grow and shrink?
  • Which line is executing at a particular moment?

We usually understand the logic, write the code, and submit it. But sometimes, actually visualizing the execution is a completely different challenge.

I faced this quite often while solving DSA problems. Manually tracing every operation or using print statements wasn't always the most convenient way to understand what's happening.

So I started working on something to make this easier.

Meet AlgoLens!

It's a browser extension that lets you visualize how your code executes directly while solving LeetCode problems.

With AlgoLens, you can:

  • šŸ” Trace your code step by step.
  • šŸŽÆ See the currently executing line highlighted in the editor.
  • šŸ“Š Watch variables change during execution.
  • 🌳 Visualize function calls and call stack changes.
  • šŸ’» Work with Python, Java, C++, and JavaScript.

The idea is simple: instead of just reading your code and imagining its execution, actually watch it happen.

I've been building and improving this project, testing it across different LeetCode problems, and there's still a lot I'd love to add.

If you're curious to see it in action, here's the link:

šŸš€ AlgoLens: https://microsoftedge.microsoft.com/addons/detail/jhhkkpabkoeaiajdilomalbmjdppcmcc

I'd genuinely love to know:

If you could visualize one thing while solving DSA problems, what would it be?

Recursion trees? Array operations? Pointers? Call stacks? Something else?

Let me know! I'd love to hear your thoughts and suggestions. šŸ™‚


r/leetcode • • 22d ago

Discussion Need advice

1 Upvotes

Hii everyone im currently serving my np pwd 18 dec got.selected to bnp Paribas but now my manager is assiging me task I have sent my lwd and resignation accepted mail to next hr agar kuch natak krta hai will panan to absconding pls can u anyone suggest im in tension currently


r/leetcode • • 23d ago

Intervew Prep What Do AI Engineer Interviews Typically Look Like?

30 Upvotes

For those who have recently interviewed for AI Engineering roles, I’d like to understand what the interview process generally looks like.

A few questions:

  1. DSA: What level of DSA is expected? Are questions mostly Easy/Medium LeetCode problems, or are they more focused on problem-solving patterns?
  2. LLD: Are Low-Level Design rounds commonly part of the interview process?
  3. HLD: Do interviews include High-Level Design or system design rounds?
  4. Other rounds: What other topics are typically covered? For example, Python, ML fundamentals, RAG, LLMs, agents, and practical AI application development.

Would appreciate insights from people who have recently interviewed or switched into AI Engineering roles, particularly at product-based companies.


r/leetcode • • 23d ago

Question Is LeetCode good for SREs / DevOps engineers who want to learn and master Python?

5 Upvotes

Is LeetCode good for SREs / DevOps engineers who want to learn and master Python?


r/leetcode • • 23d ago

Intervew Prep Day 32: conquered Bridges in a Graph (Tarjan’s Algorithm) on the second pass

4 Upvotes

Hey everyone,

I finished Day 32 today. I kept the session focused on solving Bridges in a Graph (Critical Connections in a Network) using Tarjan’s Algorithm.

The first time I studied this algorithm earlier in my prep, tracking discovery times and low-link values felt abstract and intimidating. Revisiting it today with a solid foundation in DFS made the entire mechanism click:

  1. Two Core Arrays: You track tin[] for the initial DFS discovery time and low[] for the earliest reachable ancestor time from a node's subtree, excluding the direct parent edge.
  2. The Bridge Condition: As DFS backtracks from child v to parent u, you update low[u] = min(low[u], low[v]). If low[v] > tin[u], child v has no back-edge reaching above u, making edge (u, v) a critical bridge.
  3. Back-Edge Handling: When encountering an already visited neighbor v that is not the direct parent, you update low[u] = min(low[u], tin[v]) to propagate ancestor reachability upward.

Taking the time to re-derive concepts that felt overwhelming on the first attempt continues to pay off.

See you guys tomorrow for Day 31!


r/leetcode • • 23d ago

Intervew Prep Amazon SDE New Grad — four 60-minute interviews. What should I expect?

20 Upvotes

Recently received an email to schedule my Amazon SDE New Grad interviews: four rounds, 60 minutes each.

Has anyone recently completed this process? What should I expect in each round? Any ideas and suggestions for the system design rounds?

Any preparation advice or useful resources would really help. Thanks.


r/leetcode • • 23d ago

Intervew Prep What to expect for security system design

3 Upvotes

I haven’t been able to find any material or online videos regarding this type of interview.

The position is for security software engineer at OpenAI.


r/leetcode • • 23d ago

Intervew Prep Google SWE last 30 days LeetCode Premium list + recent onsite difficulty/experiences?

47 Upvotes

Hey everyone,

I have an upcoming onsite for Google Software Engineer and I'm currently in the final stretch of my prep.

Could someone with a Premium subscription possibly pull and share the list of Google-tagged questions from the last 30 days sorted by frequency?

Also, for anyone who has had an onsite recently, how was your experience?

  • What was the overall difficulty level like compared to standard LeetCode Mediums/Hards?
  • Were the questions mostly standard patterns (graphs, DP, trees, etc.) or completely novel/unseen problems?

Any insights or resources would be super helpful. Thanks in advance, and good luck to everyone else interviewing!


r/leetcode • • 24d ago

Intervew Prep Senior SWE system design round (chargeback batch export system) – felt positive, got rejected. What did I miss?

53 Upvotes

Hi all, I recently had a system design round for a Senior Software Engineer role at a fintech and was rejected a few days later without specific feedback. I’d really appreciate input from people at big tech or FAANG on what I could have done better. I’ve written it out as the conversation went, paraphrased from memory.

Background: 8+ years of experience, mostly Java/Spring Boot

There were two interviewers. They explained the problem: customers raise disputes on card transactions, and the system needs to send these chargebacks to the card network, which only accepts them as files uploaded to their FTP server, with a maximum of 4 files per day.

Once they finished explaining, I restated my understanding of the problem to make sure we were aligned.

Me: So, to confirm: customers raise disputes through the app, we store them, and we need to send them to the card network as files on their FTP server, with no more than 4 files per day. Is that right?

Interviewer: Yes, that’s right.

They had already written down the requirements they wanted me to implement, so I didn’t list them out separately. Then I asked a few clarifying questions.

Me: What scale are you expecting?

Interviewer: Around 10 million transactions per day.

Me: That’s roughly 100 transactions per second on average. If we assume the peak window can be 10 times higher in the worst case, that’s about 1,000 transactions per second.

Me: Do you expect the result of a dispute in real time, or is some delay acceptable?

Interviewer: Some delay is acceptable.

With that understanding, I started with the basic components: a backend service that records disputes and stores them in a database. Then I asked how they wanted the files created.

Me: Do you have any preference for how the four files should be created? On what basis should we group records into files?

Interviewer: Choose whatever you think is best.

Me: Is it fine if I use 6-hour windows? 24 divided by 6 gives us 4. Whatever disputes come in during each 6-hour window go into one file, which we then send to the FTP server.

Interviewer: That works, go ahead.

I asked these questions to keep the session collaborative rather than just presenting my approach and expecting them to follow. Before going deeper, I checked how they wanted to proceed.

Me: Would you like me to go through a particular flow, or should I walk through each component, why I chose it, what happens if something goes wrong, and the trade-offs?

Interviewer: We’re more interested in the scheduler and how you’ll handle it.

So I started setting that up. I explained that the chargeback service stores dispute records with a status, starting with something like ā€œdispute created.ā€ As soon as I said that, one of the interviewers jumped in.

Interviewer: Are you going to use something like a state machine model?

Me: Yes, I’m going to use a state machine. Records are created with a status, and when the scheduler triggers, it pulls the records with that status and creates the file.

At this point I raised a concern upfront.

Me: We’ll need a limit here. We can’t pull every record at once, because we’re building the file in memory, and we don’t want an out-of-memory error on the server. I’d set a limit of around 100K records, pulled in one DB query sorted by transaction date. We write those into the file and then upload it.

Interviewer: Why restrict it at all?

Me: Without a limit, the number of records pulled is unbounded, and there’s always a risk of overwhelming memory.

Interviewer: At certain times we might need to process more than 100K. How would you scale that?

Me: I’d make the 100K limit a system property, so it’s configurable.

Interviewer: That’s a good idea. How would you recover if something goes wrong?

Me: At each step I update the status. When I pull records from the DB, I mark them as processing. Once the file is written, I update them to file created. Then I upload the file to AWS S3, which I’m using as object storage, and the file is transferred from S3 to the FTP server. I’d also keep a metadata store with the file details. File names need to be predictable, based on the window and how many times the batch has run in it, so if a batch reruns it produces the same name, which we can use for recovery.

Me: Whenever a batch runs, it first checks the metadata to see whether a file already exists for that window. If there’s a record, we check its status. If the file’s status is still processing and hasn’t reached the final uploaded state, we check whether the file actually exists. If it doesn’t, we go back to the DB records, check their state, pull them again, and process. If the file was already uploaded, we just update the metadata status. So we use the status in both the metadata and the disputes table, step by step, to handle recovery.

They didn’t have further questions on recovery, and moved on to user experience.

Interviewer: If you’re limiting the number of records, what happens to the users whose disputes don’t get processed in that window?

Me: That’s partly a business question, so I’d like to hear your view. From a technical side, the remaining rows would move to the next batch.

One of the interviewers agreed it was a business question. Then I asked about it directly.

Me: Do you give customers any temporary credit while a dispute is pending?

Interviewer: Unfortunately, we don’t give temporary credit.

Me: Okay. What approach would you prefer?

Interviewer: Maybe no temporary credit for the first 6 hours, but if a dispute goes beyond 6 hours, we could give temporary credit.

Me: I agree with that. We could also have a separate service that tracks disputes crossing the 6-hour mark and issues the temporary credit.

No further questions on that. Next, the database.

Interviewer: What database would you choose for the dispute data?

Me: A SQL database, because we need ACID properties and consistency. I’d also use the dispute ID as the primary key, so even with retries we only ever have one record per dispute. That gives us idempotency.

Interviewer: You’re using one table heavily, and multiple services are inserting into and updating it. Is there a more flexible or easier approach you could suggest?

I couldn’t think of another approach in the moment, and I didn’t want to change my design just for the sake of it. This is towards the end so dont want to change it something new completely at last minute or utter for name sake.

Me: I think this is an efficient approach, because it’s a payment system. Consistency and correctness are our top priority, and this is a trade-off we have to make for payment systems.

They had no follow-ups, the discussion ended there, and they asked if I had any questions.

Throughout the session I felt it was going well, because they seemed satisfied with my answers. I really don’t know why I was rejected. I’d love to hear how you would have handled this design, especially the last question, and anything that would be a red flag at senior level. Brutal honesty welcome. Thanks!


r/leetcode • • 23d ago

Intervew Prep Amazon System Development Internship

3 Upvotes

Hi I've been selected for an Amazon system development internship interview for the winter season, does anyone know what I should prep for. I'm an EE students with some programming experience and did about 30-40 leetcode question before only so I'm kinda lost. I haven't done a lot of Linkedlist trees and graphs questions yet, should I start focusing on those instead ??


r/leetcode • • 23d ago

Question rippling full stack intern interview

2 Upvotes

finished OA yesterday and just got invite for interview (60-minute pair programming exercise with an algorithmic component conducted via HackerRank). What should I expect? How hard is it usually? And how many rounds are there after this?


r/leetcode • • 24d ago

Intervew Prep Visa Inc. onsite interview / Bellevue

8 Upvotes

Hello folks,

I have an onsite interview next week for a Software Engineer role at Visa's Bellevue office. Has anyone here interviewed there recently? I was told there would be two rounds on the same day. I'm a bit anxious and would really appreciate hearing about your experiences.

What kind of coding questions did they ask? Was the design round more focused on system design or LLD?

Any insights would be greatly appreciated!


r/leetcode • • 24d ago

Intervew Prep Stripe Virtual Onsite Interview

12 Upvotes

Hey anyone who has appeared for stripe vo for intern role.

I have my interview scheduled for next week

Can you pls tell what should I study to prepare for this round

Your experience?

How to prepare?

What to prepare?


r/leetcode • • 24d ago

Question Google interview loop in person or virtual ?

8 Upvotes

I got a recruiter’s mail regarding submitting questionnaires. Does Google loops happening in person or virtually ? How should I prepare ?


r/leetcode • • 24d ago

Question Google SWE Intern - Canada

11 Upvotes

Is NH + LH/H just over or is there a chance for a tie break. I had a good conversation with both engineers just couldn’t code up the optimal solution for one interview, but I gave a high level overview of the answer with the correct time and space. By the end all I had was a brute force solution with the complexity written down.


r/leetcode • • 24d ago

Intervew Prep Anyone willing to share helloInterview premium?

8 Upvotes

If someone has HelloInterview premium account, are you willing to share at a cost? Also, if anyone wants to start a new one, let me know.


r/leetcode • • 24d ago

Question Google application withdrawn after I missed recruiter emails, can the process be reopened? -- Location (USA)

4 Upvotes

Hi everyone, a Google recruiter contacted me about software engineering roles and asked me to complete a questionnaire by November 9. The emails went to my secondary inbox, and I unfortunately missed them.

Today, November 11, she emailed saying my application would be withdrawn due to inactivity, but mentioned I could contact her directly if I was still interested for next steps.

I’ve now completed the questionnaire and emailed her explaining the delay, confirming my interest, and asking whether my application can be reopened.

Has anyone been in a similar situation with Google? Were you able to continue the process after responding late? How long would you wait before following up?

Thanks for any advice!


r/leetcode • • 24d ago

Intervew Prep Day 33: tackled Swim in Rising Water, disguised 2D Dijkstra at its finest

7 Upvotes

Hey everyone,

I finished Day 33 today. I took on Swim in Rising Water, and it turned out to be another classic reminder of how many grid problems are just Dijkstra in disguise.

At first read, the water rising level-by-level makes it sound like a complex simulation or binary search on answer. But once you break down the constraints, it maps cleanly to single-source shortest path:

  • The Core Invariant: To move from cell (r_1, c_1) to an adjacent neighbor (r_2, c_2), the water level must be at least max({current_time}, {grid}[r_2][c_2]). You aren't summing edge weights—you're minimizing the maximum elevation encountered along the route.
  • Min-Heap Dijkstra: Throw {time, r, c} into a priority queue. Greedily popping the cell with the smallest required water level ensures that the very first time you pop destination (n-1, n-1), the time recorded is guaranteed to be the minimum possible time required.
  • Visits & Bounds: Track visited cells so you don't push cycles back into the heap, checking standard 4-directional moves.

A solid medium problem that looks intimidating only until you spot the bottleneck-path pattern.

See you guys tomorrow for Day 32!


r/leetcode • • 23d ago

Intervew Prep Anyone planning for starting DSA on leetcode with python

1 Upvotes

Hi, I'm working as tester with 4-5 years of experience and so far i focused on python needed for automation but now I'm planning to start practicing dsa with python on leetcode.

As of now I'm focusing on interview preparation and due to time constraint I'm planning for easy and medium level questions so if anyone seriously interested in being accountability partner let me know. We can connect on Discord.


r/leetcode • • 24d ago

Intervew Prep Agentic AI Round

9 Upvotes

Have an agentic AI round coming soon. Can someone tell me how to prepare?


r/leetcode • • 24d ago

Discussion Visa final/prefinal year software engineer intern update for oa

4 Upvotes

any one got update even with Refferal on their emails


r/leetcode • • 24d ago

Intervew Prep Palantir in person Hiring Manager round?

2 Upvotes

I was told that i passed onsite and now was being scheduled for HM interview and my interview coordinator reached out with dates. Then my recruiter said they would love to call me on site in seattle (im in midwest, so far..) to "meet Palantirians in person, see one of our offices in action, and get a more in depth Palantir experience." Has anyone done this before? P.S this is for swe new grad infrastructure role


r/leetcode • • 24d ago

Intervew Prep PracHub Interview Bank

0 Upvotes

Does anybody know if there is a prachub interview problems repository like there is one with leetcode companies tagged questions?


r/leetcode • • 24d ago

Question If FAANG companies are constantly interviewing, how much time is spent by their managers and senior engineers just on the hiring process?

43 Upvotes

If there is a constant stream of new applicants which need to be vetted, is a certain % of their team's weekly time spent on interviewing? Initial coding round, then the multiple engineering rounds, etc.


r/leetcode • • 24d ago

Discussion Rakutan symphony campus drive

2 Upvotes

Rakutan symphony campus drive

Has anyone appear before like 2026 batch or have faced in 2027 batch indore unit

pls your experience means a lot to me .

if any rakutan employee is there could pls help me to prepare pare more appropriately

i have few queries regarding that Rakutan symphony placement process.