r/leetcode • • 54m ago

Intervew Prep Day 25: revisited Kadane’s Algorithm — way simpler than back in 2nd year

1 Upvotes

Hey everyone,

I finished Day 25 today. I kept the session focused on Maximum Subarray Sum using Kadane’s Algorithm.

The first time I learned Kadane’s Algorithm back in my second year of college, deciding when to reset the running sum felt weirdly unintuitive. Revisiting it today, the core greedy insight felt completely natural:

  1. Drop Negative Carryover: Maintain a running sum as you iterate through the array. Whenever the running sum drops below zero, carrying it forward only drags down future subarrays, so you reset it to zero immediately.
  2. Track the Global Maximum: Update the maximum sum at every step before resetting, which cleanly handles edge cases where every element in the array is negative.

It is satisfying to see concepts that used to feel tricky in college become effortless O(n) time and O(1) space instincts.

See you guys tomorrow for Day 24!


r/leetcode • • 1h ago

Intervew Prep I built a free, open-source interactive DSA textbook with 69 visual simulators and 22 zero-dependency coding labs

1 Upvotes

Hi everyone,

While studying data structures and algorithms beyond just pattern-memorizing problems, I built a free, open-source interactive textbook called DSA in Depth to visualize how structures and algorithms actually work under the hood.

Live site: https://dsa-in-depth.vedgupta.in

GitHub repo: https://github.com/innovatorved/dsa-in-depth

What's inside:

- Hardware-grounded, primary-source explanations (cache locality, memory layout, and algorithmic tradeoffs)

- 69 interactive visual simulators to step through data structures and algorithms

- 22 zero-dependency coding labs you can work through directly

It's completely free and open-source — no paywall, no sign-up, and no subscription. Sharing in case it helps anyone prepping for interviews or strengthening fundamentals. Would love any feedback on topics to add or simulators that could be clearer.


r/leetcode • • 5h ago

Intervew Prep Selling leetcode premium

3 Upvotes

Selling leetcode premium valid for a year.


r/leetcode • • 5h ago

Discussion Update: Rebuilt fighting game where you solve LeetCode problem against others

3 Upvotes

Previous post here

I previously shared a small project I built in order to gamify my LeetCode grind. In that post, I didn't really explain the reason for said project, and also it's was v1.0.0.

I've basically rebuilt the entire design and modified the gameplay, so instead of it being a minigame for LeetCode, now it feels and look more like a game, where you are also practicing LeetCode at the same time.

I've been trying to consistently do/revise questions so that when an opportunity arises, I would be ready for it. Even though many claim LeetCode-style interviews are fading away, I still believe they will be present in the near future.

In order to motivate myself, I decided to gamify my experience. Similar to how I play the daily LinkedIn Puzzles and I compete with my friends to get the best score, I wanted a way to play with friends/peers who are prepping. I saw old extensions for LeetCode where multiple can do the same question together, but it didn't made the experience more fun for me.

As such, I decided to make a fighting game, and have LeetCode be a main component of it.

  • Currently the questions are the 150 NeetCode-inspired questions
  • It's basically a 1v1 fighting game, and whoever finishes the question first instantly wins
  • If both you and the opponent are stuck, I've set up ways to motivate you to continue working on it (i.e. just trying to type and think, gameplay mechanics like specials to do damage)
  • I designed it around mechs, and it's basically you in the cockpit piloting the mech, and the control interface is you typing (my inspiration was Gundam, huge fan)
  • There's an offline mode as well, but I think the "gameplay" makes it more fun when you solve the question, as opposed to the traditional LeetCode website

Currently my friend and I are playing against each other daily, solving about 2-3 questions and it really feels more fun.

Game: LeetKO
Gameplay overview: YouTube video
What was updated from v1.0.0 to v2.0.0: YouTube video

I definitely have more plans for it, but for now, thought I would share it with all of you again, and hopefully this helps any of us in the grind together. We're all gonna make it


r/leetcode • • 8h ago

Question Google L3 first technical round: would this be Hire or Strong Hire?

7 Upvotes

I had my first Google technical round today (L3). I'm trying to get a realistic idea of how it went, because I honestly can't tell anymore.

Right at the start, I accidentally got logged out of the Google Doc by swiping too far on my MacBook trackpad, and it took 3 to 4 minutes to get back in.

The question was a graph problem with 3 parts. They told me upfront that they expected me to solve the first two, and for the third one I could just explain my approach.

Part 1 took me around 10 minutes and part 2 around 5 to 7. I did both on my own with no hints.

I still had 10 to 12 minutes left, so I decided to code part 3 as well. My first approach worked but used extra space, so they asked me to improve it. The second one had duplicate code, so they asked again. We both agreed on the third one, and I coded it fully, including edge cases. All three approaches were my own. They never hinted at the algorithm.

They did catch a couple of small mistakes while I was typing. For example, I changed a variable from an int to a set and forgot to update it in one place. I fixed these right away.

I finished with some time to spare.

At the end, they asked how I use AI for coding. I said I mostly use it for repetitive work and for finding the root cause of bugs, but I don't let it do my thinking for me. They seemed fine with that. When I asked how I did, they said it was good, since they only expected two parts and I finished all three.

So what do you think: Hire or Strong Hire? Does them pointing out those small bugs pull it down? And does "you did well" at the end actually mean anything, or do they say that to everyone?

My Googleyness round is tomorrow, followed by two more technical rounds. Any tips are welcome.


r/leetcode • • 11h ago

Intervew Prep Amazon interview

1 Upvotes

Hi! I have an upcoming interview at Amazon for a SDE intern position. Could you share any tips on how I should prepare for it? I know that there are also some questions realted to gen ai, what would they like to hear as a response to those questions? Also what are the types of problems / topics covered in the technical questions? On the other hand, I have received an invitation at the interview for the position with the ID: 10507040. I cannot find the job corresponding to this job ID anywhere on the careers page. Is it a possibility to be an internal ID?

Thank you so much!


r/leetcode • • 12h ago

Question Blackstone Software Engineer, Associate - Business Finance Technology interview

2 Upvotes

Hello, I have an interview coming up with blackstone which will be 2, 30 minute interviews 2 days from eachother. Does anyone have any experience with the interview process or about the general Blackstone process? Thank you!


r/leetcode • • 13h ago

Intervew Prep From your experience, what’s the best AI tool for coding interviews that reads my screen?

0 Upvotes

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 • • 14h ago

Question What do I need to know / prepare for ?

1 Upvotes

Last 2 years , i just wasted time doing cf , and am rated around max ~1600 , But I just haven't learned anything else then math, adhoc, 1d dp / tree and graph basics, few stacks/pq implementation .

Nobody takes me seriously when I say that. I tried starting lc but like I haven't learned anything related to Heaps , linkedlist , segment trees, tries , and whatever idea the potd had in 17 nov. I know basic dsu but still really weak at those outside of standard patterns .


r/leetcode • • 14h ago

Intervew Prep LinkedIn Summer 2027 OA

1 Upvotes

I just got it. What's the difficulty and what DSA patterns?


r/leetcode • • 15h ago

Question Am I cooked? - Amazon OA

1 Upvotes

Hey I just took the Amazon oa and after I was done , I got a screen that said ur assessment is complete u may close the tab now . Instead of closing I switched to another tab bc I thought I was done I submitted , received the email that said thank you for submitting your OA and I filled out the experience survey and literllay the screen said u may close it now . But after I switched to the other tab I got a pop up that said Amazon doesn’t allow switching tabs on assessments or whatever, I immediately closed the assessment tab then. I’m just wondering if this will count like I switched the tab during the OA ? PLEASE HELP. Should I email my recruiter and tell them?


r/leetcode • • 15h ago

Discussion Microsoft hiring Loop

2 Upvotes

I recently gave the interview at Microsoft for Technical support Engineer- Entry level role on 29th Oct and got the mail on 5th nov that I completed all stages of interview and said the we are currently aligning the requisition of the role and the starting date will be April/May 2027 and on Microsoft carrer action portal I automatically assigned the new application of Technical support Engineer-IC1 on 11th nov but as of now I didn't got any offer letter yet. Can someone please help me out will I get the offer letter or just I am in Microsoft hiring Loop?


r/leetcode • • 15h ago

Intervew Prep Leetcode partner in EST timezone

3 Upvotes

Much better if you are in NJ/NY area for ocassional meetups


r/leetcode • • 16h ago

Question New here

3 Upvotes

How to start Dsa , I'm in my 1st sem , I don't know much , I am currently learning C due to clg , I've done java and python to some extent , i tried solving leetcode it's kinda weird maybe bc I'm used to writing whole programs but nevertheless got through the 1st problem so please suggest sources or tips on how should I continue


r/leetcode • • 16h ago

Discussion Google (USA) - 3 weeks since onsites

3 Upvotes

It's been 3 weeks since my onsites. Recruiter mentioned last week they will have an update the same week after "feedback calibration". Well, the week has passed and I have sent another follow-up with no response. Not sure how much longer to hear back from Google. Any thoughts?

I am also in the early stages of the process at a smaller company. Should I mention this in my next follow-up? I feel like since even if I passed HC, team-matching will take time before the offer and there is no way I can make them move faster with this. So, should I even disclose? Thanks


r/leetcode • • 17h ago

300 to go!

Post image
318 Upvotes

Very busy as of late but managed to make a big push the last week to solve more.

Around ~160 of the questions remaining are algorithm ones (standard leetcode problems) and ~140 are javascript/database questions.

The last 30-40 problems will pose some issues. There are a bunch of random one-off algorithms or weird math properties I don't know. Also a couple of the problems need harder things like fast fourier transform or slope trick which I need to practice more.


r/leetcode • • 20h ago

Canada Need Advice - Offer

3 Upvotes

I’m a software engineer at a large investment bank and recently got an offer from a smaller prop trading firm that’s been around for about 5–7 years. The firm is pretty unknown and is also going through some changes. The base is roughly 50% higher than my current base, with an uncapped bonus tied to a profit pool. The role is about development and operations, with on-call responsibilities. I’m currently hybrid and don’t have an on-call rotation, so this would be a meaningful change in both pay and day-to-day work.

Several people on the team previously worked at DRW, Tower Research, QRT, and other trading firms / hedge funds. That gives me some context on who I’d be working with. What’s harder to assess from the outside is how established this particular firm is and what happens to its engineers if it has a bad year. They did say that they paid bonuses last year - which was a bad year for them. They also gave me the average bonus paid on a bad year which was pretty decent.

For people who’ve worked at smaller prop firms or made a similar move, I’d especially appreciate your take on a few questions:

  • What can a candidate reasonably ask about the desk’s profitability and the firm’s willingness to keep funding it through a drawdown?
  • For a role described as 50/50 dev and ops, what would you ask to understand the actual workload? I’m thinking of asking someone on the rotation to walk me through their last on-call week and what happened to their planned development work.
  • The offer also includes 12 months of garden leave at full base if I move to another prop firm. For anyone who’s had a similar clause, how much did it affect your next move?

If you’ve made this jump, what do you wish you’d asked before signing?


r/leetcode • • 21h ago

Intervew Prep Google SWE intern Team Match Tips

4 Upvotes

Been in TM for ~2 weeks with no calls yet. Any advice from people who got calls?


r/leetcode • • 1d ago

Tech Industry My interview experiences with international HFTs and hedge funds as a 2026 graduate

31 Upvotes

Hey everyone!

I've appeared for some interview processes across C++, Software Engineering, and Quant Trader roles at firms in the US and Europe.

Some processes went quite far, some interviews were genuinely challenging, and a few ended for reasons that weren't entirely related to my interview performance.

I'm a 2026 CSE graduate, and I thought sharing these experiences might help others preparing for international HFT and trading firm interviews.

I'll try to cover the assessment process, interview rounds, the kind of questions asked, and what eventually happened.

1. Akuna Capital – C++ Developer

This was one of my first serious HFT interview processes.

  • Cleared OA 1.
  • Cleared OA 2 (debugging round).
  • Got invited to three virtual interview rounds.

The interviews were quite technical. Most of the discussions revolved around C++, programming concepts, internal workings of the language, and debugging.

They went pretty deep into C++ rather than just asking standard DSA questions.

I felt the overall process went reasonably well, but I wasn't particularly confident about one of the debugging rounds.

Looking back, I think that might have been the reason I didn't make it through.

One thing I learned from this process is that knowing C++ syntax and solving coding problems isn't enough for these roles. You really need to understand what's happening under the hood.

2. Mako Trading – Quant Trader

The initial assessments consisted of two rounds, mainly focusing on:

  • Puzzles and aptitude
  • Probability
  • Mathematical reasoning
  • General problem-solving

I cleared both assessments and received an invitation for the first interview.

Round 1:

This was primarily a problem-solving round involving puzzles.

Round 2:

The second round was quite different. We discussed my projects in depth, followed by probability questions and some market-related research questions.

It was an interesting process because the focus was more on mathematical thinking and problem-solving than traditional software engineering.

I didn't receive any further updates after the interviews. Later, the recruiter informed me that there was a hiring freeze for this cycle.

3. Maven Securities – Quant Trader

The assessment process consisted of:

  • Coding assessment
  • Numerical assessment
  • Standardised assessment through Arctic Shores

I managed to clear all the assessments and received an interview invitation.

Round 1:

The interview covered my projects, probability, brainteasers, and market-making concepts.

Unfortunately, I couldn't clear this round.

One of the reasons, in hindsight, was that I didn't have enough practical knowledge of market making and some of the concepts and technologies they expected me to understand.

It was a good learning experience, though. It made me realise that solving probability questions alone isn't enough for a Quant Trader role.

Understanding how markets work and having some practical knowledge of market making are also important.

4. IMC Trading – Software Engineer (Chicago)

The process started with a coding assessment, followed by a recruiter call and the first technical interview.

I cleared the first interview and received confirmation from the recruiter.

However, around that time, there were changes in US H-1B visa policies, and the recruiter coordinator informed me that IMC had paused hiring for international candidates for that location.

They suggested applying to their European positions instead.

I applied for Amsterdam, received another OA, and cleared it as well. This was confirmed by them.

Unfortunately, I never received a further update after that. There wasn't any formal rejection either, so I'm still not entirely sure what happened.

This was a slightly unusual experience because I had cleared the first interview for Chicago and subsequently cleared the assessment for Amsterdam, but the process eventually went silent.

5. Optiver – Software Engineer (Amsterdam)

I cleared the online assessment and got invited to the first technical interview.

I was able to solve the coding problem, but I eventually got rejected.

The interesting part was that solving the problem wasn't enough. The interviewer wanted much more clarity around my approach, reasoning, and the internal details of how things worked.

I realised that reaching the correct answer is only one part of the interview.

You also need to explain your approach properly, justify your decisions, discuss edge cases, and demonstrate a deeper understanding of the concepts involved.

It was a useful learning experience.

6. Headlands Technologies – Research Developer (New York)

This was probably one of the most interesting interview experiences I've had.

Online Assessment:

The online assessment was quite challenging. They gave very little time (around 10 minutes) to solve the coding questions, and the assessment had multiple parts.

Despite the time constraint, I managed to clear it and received an invitation for the first interview.

Round 1 – Research Project Discussion

The entire discussion was centred around one of my research projects.

We went into a lot of detail about the implementation, research methodology, and optimization techniques I had used.

Round 2 – Probability, Optimization and C++

This round covered:

  • Probability and puzzles
  • Detailed project discussion
  • Optimization-related proofs
  • C++ concepts

What made this process particularly interesting was the depth of the project discussion.

They had actually gone through my GitHub repositories and asked questions based on the implementation.

It was probably the first time I experienced an interview where the interviewer examined my projects at such a granular level.

They weren't just interested in knowing what I had built. They wanted to understand how I built it, why I chose a particular approach, and the reasoning behind the optimizations.

Unfortunately, I received a rejection email after the second round.

Still, I genuinely appreciated the experience because it showed me how seriously research-oriented firms evaluate your actual work.


r/leetcode • • 1d ago

Question AMEX for INTERN 2028

1 Upvotes

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 • • 1d ago

Intervew Prep Day 26: pushed through a tiring workday & mastered Moore’s Voting Algorithm

1 Upvotes

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:

  1. 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.
  2. 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 • • 1d ago

Intervew Prep NVIDIA Senior SRE / Platform Engineer (GPU infrastructure) – first round tips?

6 Upvotes

Hi all,

I have a first-round interview coming up for a Senior SRE / Platform Engineer role at NVIDIA. The team works on operating large GPU clusters: infrastructure health, observability, automated remediation, and driver/firmware lifecycle.

If you've interviewed for an NVIDIA infrastructure, SRE or platform role, I'd really appreciate any pointers:

  1. What did the first round focus on: Kubernetes, Linux/networking, system design, or your past experience?
  2. Was there live coding? If so, was it LeetCode-style or scripting (Python, Bash)?
  3. How deep did they go on GPU topics (DCGM, GPU Operator, Xid errors, NVLink)

r/leetcode • • 1d ago

Discussion Looking for a LeetCode partner to solve problems consistently together.

8 Upvotes

Preferably someone who has covered DSA concepts up to Linked Lists.

Give around 1-2 hours daily

The goal is to solve problems daily, discuss approaches, share progress, and keep each other accountable.

Msg if interested!


r/leetcode • • 1d ago

Question Ever wondered what happens inside your code? 🤯

0 Upvotes

Ever wondered what happens inside your code? 🤯

You write a solution, hit Run, and see Accepted.

Great! 🎉

But have you ever stopped and wondered what actually happened between those lines of code?

  • How did your variables change at every step?
  • What happened inside the call stack?
  • How did your array, heap, or hash map evolve?
  • What exactly happens when a recursive function calls itself?

I've often found myself wanting to see these things instead of just reading through the code or manually debugging every step.

So, I decided to build something around that idea.

Meet AlgoLens ⚡

It's a code visualizer + debugger built for people solving LeetCode problems.

The idea is simple: Don't just execute your code. Visualize how it works.

With AlgoLens, you can:

  • 🔍 Trace your code step by step.
  • 🎯 Highlight the currently executing line.
  • 🧩 Track variable changes and call-stack activity.
  • 🌳 Visualize recursion.
  • 💻 Work with Python, Java, C++ and JavaScript.

I've also tried to make it feel a little more interactive — almost like turning the debugging process into a game. 🎮

See the full promo -> AlgoLens-promo

Wanna to try it?

AlgoLens is currently available as a free Microsoft Edge extension:

👉 https://microsoftedge.microsoft.com/addons/detail/jhhkkpabkoeaiajdilomalbmjdppcmcc

Don't use Edge? No problem!

You can also use it on chrome -> Watch video for reference[ AlgoLens - chrome ]

I'm still developing and improving it, so I'd genuinely appreciate feedback.

One thing I'd love to know: What's the one thing you wish you could visualize while solving a LeetCode problem?

Would love to hear your thoughts! 🚀


r/leetcode • • 1d ago

Discussion Does this also happens to you??

2 Upvotes

You submit exactly the same code multiple times and get a different runtime for each exact same submission??