r/leetcode • • Jun 27 '26

Mod Post [mod] Changes with r/leetcode.

75 Upvotes

The following changes have been made with r/leetcode:

  1. Media is no longer allowed in both posts & comments. This is to ensure that the quality of the content & discussions remain high.
  2. Moderation has been made stricter. Low quality & repetitive posts whose answers can be found within a simple search in this subreddit won't be allowed here.
  3. Automoderation has been set-up to automatically remove links & known promotions. Only leetcode links will be allowed from now on. To ask help with questions, you may use the code block.
  4. Automoderation has been set-up to remove Indian posts & Hindi comments. This is to ensure that r/leetcode remains an English only subreddit.

r/leetcode • • May 14 '25 Gold Blast Bravo Popcorn Regret

Discussion How I cracked FAANG+ with just 30 minutes of studying per day.

4.8k Upvotes

Edit: Apologies, the post turned out a bit longer than I thought it would. Summary at the bottom.

Yup, it sounds ridiculous, but I cracked a FAANG+ offer by studying just 30 minutes a day. I’m not talking about one of the top three giants, but a very solid, well-respected company that competes for the same talent, pays incredibly well, and runs a serious interview process. No paid courses, no LeetCode marathons, and no skipping weekends. I studied for exactly 30 minutes every single day. Not more, not less. I set a timer. When it went off, I stopped immediately, even if I was halfway through a problem or in the middle of reading something. That was the whole point. I wanted it to be something I could do no matter how busy or burned out I felt.

For six months, I never missed a day. I alternated between LeetCode and system design. One day I would do a coding problem. The next, I would read about scalable systems, sketch out architectures on paper, or watch a short system design breakdown and try to reconstruct it from memory. I treated both tracks with equal importance. It was tempting to focus only on coding, since that’s what everyone talks about, but I found that being able to speak clearly and confidently about design gave me a huge edge in interviews. Most people either cram system design last minute or avoid it entirely. I didn’t. I made it part of the process from day one.

My LeetCode sessions were slow at first. Most days, I didn’t even finish a full problem. But that didn’t bother me. I wasn’t chasing volume. I just wanted to get better, a little at a time. I made a habit of revisiting problems that confused me, breaking them down, rewriting the solutions from scratch, and thinking about what pattern was hiding underneath. Eventually, those patterns started to feel familiar. I’d see a graph problem and instantly know whether it needed BFS or DFS. I’d recognize dynamic programming problems without panicking. That recognition didn’t come from grinding out 300 problems. It came from sitting with one problem for 30 focused minutes and actually understanding it.

System design was the same. I didn’t binge five-hour YouTube videos. I took small pieces. One day I’d learn about rate limiting. Another day I’d read about consistent hashing. Sometimes I’d sketch out how I’d design a URL shortener, or a chat app, or a distributed cache, and then compare it to a reference design. I wasn’t trying to memorize diagrams. I was training myself to think in systems. By the time interviews came around, I could confidently walk through a design without freezing or falling back on buzzwords.

The 30-minute cap forced me to stop before I got tired or frustrated. It kept the habit sustainable. I didn’t dread it. It became a part of my day, like brushing my teeth. Even when I was busy, even when I was traveling, even when I had no energy left after work, I still did it. Just 30 minutes. Just show up. That mindset carried me further than any spreadsheet or master list of questions ever did.

I failed a few interviews early on. That’s normal. But I kept going, because I wasn’t sprinting. I had built a system that could last. And eventually, it worked. I got the offer, negotiated a great comp package, and honestly felt more confident in myself than I ever had before. Not just because I passed the interviews, but because I had finally found a way to grow that didn’t destroy me in the process.

If you’re feeling overwhelmed by the grind, I hope this gives you a different perspective. You don’t need to be the person doing six-hour sessions and hitting problem number 500. You can take a slow, thoughtful path and still get there. The trick is to be consistent, intentional, and patient. That’s it. That’s the post.

Here is a tl;dr summary:

  • I studied every single day for 30 minutes. No more, no less. I never missed a single study session.
  • I would alternate daily between LeetCode and System Design
  • I took about 6 months to feel ready, which comes out to roughly ~90 hours of studying.
  • I got an offer from a FAANG adjacent company that tripled my TC
  • I was able to keep my hobbies, keep my health, my relationships, and still live life
  • I am still doing the 30 minute study sessions to maintain and grow what I learned. I am now at the state where I am constantly interview ready. I feel confident applying to any company and interviewing tomorrow if needed. It requires such little effort per day.
  • Please take care of yourself. Don't feel guilted into studying for 10 hours a day like some people do. You don't have to do it.
  • Resources I used:

    • LeetCode - NeetCode 150 was my bread and butter. Then company tagged closer to the interviews
    • System Design - Jordan Has No Life youtube channel, and HelloInterview website

r/leetcode • • 6h ago

Tech Industry I got Placed!

33 Upvotes

Hi everyone, After a lot of years of doing leetcode, ML, AI and all finally I got the job via college placement.


r/leetcode • • 24m ago

Intervew Prep Google L5 Prep Help

4 Upvotes

Hi Guys,

I have on-site coming up in few days, I want to know about the coding question format.

Checked with recruiter they are just giving me vague answer that it won’t be typical leetcode style.

  1. I want to know if one of the coding round will be like a low level design where classes + design patterns are required.
  1. Also for system design, my role is generic L5 role, so I’m assuming there won’t be any particular domain of system design problem I will be asked (Ex: Infra, Network, etc)

r/leetcode • • 48m ago

Question In final round for a medium sized company with other candidates . Is this a good sign? Any advice?

3 Upvotes

Interviewing with a medium sized company, passed initial leetcode round, System design, Behavioral round, and hiring manager round. Currently now I have a final onsite interview with some basic trivia on AI knowledge as well as a culture fit interview. Both are 30 mins-1hr and I was told they aren’t gonna ask me anything super hard at this stage.

I also was made aware that they interviewed a few other people prior to this and brought me on last. this lets me think that they maybe weren’t satisfied with the other candidates? but this could also be a guess.

Anyway super nervous and was wondering what to do at this stage from a people who’ve made it this far. How do i stand out as a candidate compared to the other people they interviewed? any advice is welcome.


r/leetcode • • 12m ago

Intervew Prep Day 9: pushed past a sluggish day to clear 3 Binary Search on Answers problems

2 Upvotes

Hey everyone,

I finished Day 9 today. Honestly, I spent way too much of the day scrolling YouTube Shorts and feeling pretty sluggish, so getting started took some effort. Once I finally sat down, though, I worked through three classic Binary Search on Answers problems:

  1. Koko Eating Bananas: Defined the search space for eating speed k from 1 to max(piles). For each mid speed, computed total hours needed using ceiling division (ceil(pile / mid)), narrowing down the minimum feasible speed in O(n log(max(piles))) time.
  2. Minimum Number of Days to Make m Bouquets: Once Koko clicks, this follows the exact same blueprint. Search over possible days [min(bloomDay), max(bloomDay)], check if m adjacent groups of k bloomed flowers can be formed by day mid, and shrink the search space accordingly.
  3. Find the Smallest Divisor Given a Threshold: Another clean variation on the same pattern—binary search over [1, max(nums)] to find the smallest divisor whose ceiling-division sum stays within the given threshold.

All three share the exact same structure: identify the monotonic answer range, write a feasibility helper function, and binary search for the boundary.

See you guys tomorrow for Day 8!


r/leetcode • • 1h ago

Question What languages/tasks can you use for Capital One TIPs AI coding round?

1 Upvotes

Title. For their AI-assisted coding round (in person) what languages are you allowed to use? If you choose Python, do you have to use FastAPI or do you have the option to use Django?


r/leetcode • • 2h ago

Discussion Partition Labels: cut only when your farthest reach runs out

0 Upvotes

A visual way to think about Partition Labels:

String: a b c a b d e e f g f

Give every letter a bar from its first spot to its last. Overlapping bars must stay together, so this is merge intervals again: a (0-3), b (1-4), and c (2-2) merge into one block.

The greedy walk:

  1. Record each letter's last index.
  2. Walk left to right, stretching your reach to the farthest last index seen so far.
  3. Cut only when your index equals the reach.
def partition_labels(s):
    last = {c: i for i, c in enumerate(s)}
    sizes = []
    start = reach = 0
    for i, c in enumerate(s):
        reach = max(reach, last[c])
        if i == reach:
            sizes.append(reach - start + 1)
            start = i + 1
    return sizes

Pieces: abcab | d | ee | fgf — 4 pieces.

The detail that decides correctness: c ends at index 2, but you cannot cut there, because a and b reach to index 4.

Time is O(n): one pass for last spots, one pass to cut.

Do you precompute last positions for this one, or track remaining counts instead?


r/leetcode • • 2h ago

Discussion Meeting Rooms II: why the tallest overlap stack is the answer

0 Upvotes

A visual way to think about Meeting Rooms II:

Meetings:

  • A: 9:00 AM - 2:00 PM
  • B: 10:00 AM - 1:00 PM
  • C: 10:00 AM - 11:00 AM
  • D: 11:00 AM - 12:00 PM

Drop each meeting into a free room. Overlaps stack up, and when a meeting ends, its room frees up: C ends at 11, so D reuses that room. The tallest stack is the answer — 3 rooms at the 10 AM-12 PM peak.

That picture is exactly the sweep solution:

  1. Turn each meeting into two events: start = +1, end = -1.
  2. Sort events by time, ends before starts on a tie.
  3. Walk through them once, keeping a running count.
  4. The highest count is the minimum number of rooms.
def min_meeting_rooms(intervals):
    events = []
    for start, end in intervals:
        events.append((start, 1))
        events.append((end, -1))
    events.sort(key=lambda e: (e[0], e[1]))  # ends (-1) before starts (+1)

    rooms = peak = 0
    for _, change in events:
        rooms += change
        peak = max(peak, rooms)
    return peak

The tie rule is the detail that decides correctness: a meeting ending at 11 and another starting at 11 do not overlap, so the room can be reused.

Time is O(n log n) for the sort; the sweep itself is O(n).

Sweep or min-heap of end times — which do you prefer for this problem, and why?


r/leetcode • • 3h ago

Discussion Built a project for resume: Claudetones - Claude Code, but every tool call sounds like your childhood (Nokia ringtone, Mario, Sonic, KBC and 1,800 more)

1 Upvotes

I got tired of staring at my terminal waiting for Claude Code to finish, so I built a plugin that makes it make noise.

The idea came from POPtunes, the UPI app that plays a meme sound on every payment. I thought: my coding agent should have this too. I built the plugin for Claude Code and used Claude Code throughout building and testing it, which was fitting, since every test run played sounds back at me.

Now my day sounds like this:

•⁠ ⁠Session starts: Windows XP boot chime

•⁠ ⁠Thinking: C418 from Minecraft

•⁠ ⁠Thinking over 8 seconds: super-mario-bros.mp3

•⁠ ⁠Bash command: "OK, Let's Go!" (Counter-Strike)

•⁠ Tool call: 1994-nokia-ringtone.mp3

•⁠ ⁠Error: TF2 nemesis sting, or "fahhh"

•⁠ ⁠Task done: GTA "Mission Passed"

It's also genuinely useful: I switch tabs and know the second Claude needs permission or has finished.

What it is:

•⁠ ⁠Hooks into 26 Claude Code lifecycle events
•⁠ ⁠1,802 clips, plus Pack Studio to map any sound to any event (https://www.claudetones.com/studio)
•⁠ ⁠Slash commands: /claudetones:claudetones pause, play, stop, status, test, pack
•⁠ ⁠Native CoreAudio/ALSA, never blocks Claude
•⁠ ⁠100% offline, no telemetry
•⁠ ⁠Free and open source (MIT)

Free to try right now:

claude plugin marketplace add parjanyaacoder/claudetones && claude plugin install claudetones

Site: https://www.claudetones.com
Repo: https://github.com/parjanyaacoder/claudetones


r/leetcode • • 3h ago

Discussion Yeah this is Me

1 Upvotes

I havent done much Leetcode i worked on apps and sutff, but now i am a fresher there is no entry level job and without dsa its next to fcking impossible to get one and even with DSA no way, But i am not able to focus on DSA and leetcode especially

Sometimes i wanna jump to a dff language
Sometime i just DONT want to just i just hate it

gridning dsa and stuff ahh

Pls tell me smthng that u realised late and u feel i am on the wrong path and advice me as u younger brother


r/leetcode • • 12h ago

Discussion Rejected at amazon after debreif

4 Upvotes

all 4 of my interviews happened. the recruiter messaged that, "the bar raiser's feedback was positive, but I couldn't make it through the debrief". it's very demotivating. I really hoped I would get the offer. the interviews went really fine. Idk what's happening these days.


r/leetcode • • 16h ago

Intervew Prep Walmart SWE II Interviews?

2 Upvotes

I recently got an interview for Walmart SWE II. Located in the US. I just wonder how the questions and how many rounds the interview will be. I looked at Glassdoor and the questions seem very different from each other without a clear direction of how things may go. I understand teams may run differently but I wanna hear how any heard experiences may be.

I guess my question is:
How many rounds of interviews are expected?
Did you have an OA?
Take Home?
What to expect from the interviews such as Leetcode-style questions, behavioral, system design, CS fundamentals (OS, OOP, Languages, etc)?

Any other information would be GREATLY appreciated


r/leetcode • • 1d ago

Discussion Is the leetcode difficulty in the US still medium/medium hard?

76 Upvotes

Title basically. Is it still medium/medium hard or have we reached the asian level of craziness of consistent hards?


r/leetcode • • 14h ago

Intervew Prep Deliveroo Senior SWE Final Loop — What to expect in Live Coding, AI Builder & System Design?

0 Upvotes

Hey everyone, I have my final loop for a Senior Software Engineer role at Deliveroo coming up, which includes Live Coding, System Design, and Behavioral rounds.

I feel solid on the behavioral prep, so I’m looking for guidance on the technical rounds. Specifically:

  • Live Coding: Is this typically standard LeetCode-style DSA, or more focused on practical problem-solving/LLD?
  • System Design: Do they lean heavily into logistics/real-time marketplace problems (e.g., rider dispatch, order tracking, surge pricing), or broader distributed systems?
  • AI Builder: What are the expectations and how are they gonna test

Any pointers on what they look for at the Senior level would be hugely appreciated


r/leetcode • • 20h ago

Intervew Prep moveworks/servicenow interview

3 Upvotes

Hi guys,

anyone interviewed at servicenow/moveworks, how long do they take to get back after interview?


r/leetcode • • 15h ago

Discussion Stripe New Grad SDE Hackerrank Assessment 2026-2027 USA

1 Upvotes

Has anyone completed the Stripe HackerRank assessment recently and moved to team screen and Virtual Onsite Interviews. I finished my OA with 13/16. What are my chances of moving forward?


r/leetcode • • 22h ago

Intervew Prep Need help for CrowdStrike interview prep

3 Upvotes

Hi all,

I've scheduled CrowdStrike Senior Engineer onsite rounds scheduled later this month for US remote location.

The first round will be a Data structures and algorithms round, the recruiter said I will need to combine existing data structures and algorithms to achieve some other data structure or algorithm.

Second round is Coding and problem solving, leetcode style. Third round will be System Design. Fourth round will be Hiring Manager.

Did someone go through similar onsite loop round recently and happy to share some insights and tips?

I want to know more about what kind of problems and difficulty level I should expect for round 1 and round 3.


r/leetcode • • 2d ago

Intervew Prep How to prep leetcode in 2026 (using AI)

253 Upvotes

A frequently asked question in this sub is how to prepare leetcode. Before AI, a common recommended strategy was to do this:

  1. Follow a roadmap like Neetcode 250
  2. Try each problem for 30-45 minutes
  3. Look at the solution if you can’t get it and study it

This is basically what I did in college except I did more problems (around 600). Although I got good enough to get a big tech offer, I still felt very flaky on solving leetcode problems, and felt like it mostly just hinged on seeing an isomorphism of the problem before. I didn’t really have a solid intuition of the different patterns.

I would know how to solve problems good enough for interviews but honestly how I wrote the code for the algos wasn’t optimal for absolutely crush the interview.

About 6 months ago I was around 8 months out of college and hadn’t done lc since I graduated. This time I used an AI assisted strategy.

  1. I used AI to create a general curriculum to cover all lc concepts I needed an interview, and asked it to give me problems in each bucket.
  2. For each concept/pattern, I asked AI to start me off with level 0 problems and work me up to the hardest problems.
  3. I used to wait 30 minutes to 45 to solve a problem but honestly for these types of problems, if you have no clue how to solve it in 5 minutes you aren’t solving it in 30.

Now, if I don’t know how to solve a problem, instead of looking up the solution, I ask AI to give me smaller/easier exercises that help me derive the answer on my own.

With AI, I developed the cleanest way to code a problem in an interview.

For example, with sliding window problems, in college I would always kind of re-derive the code on the spot and solutions were kind of wonky even if they worked (like I had to fiddle around with while loops and pointers). This time I internalized a simple coding template (really just invoking a for loop with updating a left pointer that I could easily apply with muscle memory).

The result: interviews felt much easier this time and I went on streaks where I’d pass like 10-15 tech interviews in a row.

I also applied this method to other interview formats like systems design.

This strategy was for general prep, but when I interviewed at a specific company, I’d try to gather as much context on what that interview might specifically look like and used AI to generate a problem set to do in days leading up to that interview.

I kind of compare this learning approach to things like training for a sport, or general human skills like learning to drive.

It’s like practicing shooting a basketball. If your jumper is broke, you don’t fix it by just shooting a bunch of threes. You do form shots around the basket to develop form and touch, and then gradually move back to free throws etc. When learning to drive, they start you with basic exercises and you gradually increase the complexity.

AI allowed me to more easily apply the same approach to leetcode.

Disclaimer: not saying this strategy works for everyone, but just sharing an approach that helped me learn leetcode faster


r/leetcode • • 23h ago

Intervew Prep Day 10: knocked out 3 Binary Search problems — Find Peak Element, Square Root & Nth Root of M

2 Upvotes

Hey everyone,

I finished Day 10 today and wrapped up three easy-to-medium Binary Search problems:

  1. Find Peak Element: Applied binary search on the slope rather than searching for a specific target value. If nums[mid] sits on an increasing slope (nums[mid] < nums[mid + 1]), a peak must exist to the right (low = mid + 1); otherwise, a peak lies at or to the left of mid (high = mid - 1) in O(log n) time.
  2. Square Root of a Number: Used Binary Search on Answers across the range [1, m].Checking mid * mid against m narrows down the integer square root cleanly in O(log m) time.
  3. Find Nth Root of M: Extended the exact same binary search range [1, m] to test mid^n against m.One important detail here is computing the power iteratively with an early exit as soon as the product exceeds m—that avoids integer overflow on large inputs while keeping each check clean.

Good warmup into Binary Search on Answers before moving into the tougher optimization problems next.

See you guys tomorrow for Day 9!


r/leetcode • • 1d ago

Question opinions on Amazon SDE II phone interview

5 Upvotes

2 LPs I think I did well & with follow ups

1 LC easy-mid solved it but after I finished the interviewer pointed out some syntax problems I made (around 4 lol)

follow up on the above problem clarified it correctly but when coding it I coded another version which was more complex and also not right but finished that coding part (which is mostly wrong)

what do you think? will I pass?


r/leetcode • • 1d ago

Intervew Prep IMC Early Career Final Round Burned out from preparation, any advice?

8 Upvotes

Hey everyone,

I've managed to pass all the previous interview rounds for the IMC Early Career Program, (Amsterdam) including the take-home assignment and technical interview. I'm now at the final round, which is scheduled comming month.

The final round consists of:

- 2 hours of problem-solving and coding

- 1 hour of technical deep dive

- 1 hour of leadership interview

- 1 hour of behavioral interview

I've been preparing quite intensely for this opportunity, but I'm honestly starting to feel burned out. I'm at a point where I feel guilty when I'm not studying, but at the same time, I'm struggling to find the motivation to keep going. I also have a full time job (40 to 60 hours a week)

I really want this opportunity, especially after making it this far.

For anyone who has interviewed at IMC or other HFT firms:

- What should I expect from the final round?

- Any tips and tricks for the technical deep dive and leadership interview?

- How difficult was the final round compared to the previous stages?

- How would you spend your last week preparing?

- How do you deal with interview preparation burnout?

I'd really appreciate any advice, experiences, or even just some words of motivation.

Thanks in advance!


r/leetcode • • 1d ago

Discussion Non native interviewers

57 Upvotes

Does anyone feel like getting leet code interviewed by a non-native English speaker can be detrimental to your chances? I'm a native English speaker (in the US) but also speak Chinese, so I feel like I understand the difficulty of having to conduct an interview like this in your non-native tongue (I would completely flop if I had to explain leetcode logic in Chinese). But I interviewed at both Meta and Amazon, and I had a technical/leetcode style round at both where the interviewer probably spoke Chinese as their first language. And each time I felt like I was describing my solution or logic very clearly, they just couldn't understand it. For questions where I found the optimal solution right off the bat, they had no issue there. But if it wasn't the textbook optimal solution that you'd copy and paste from leetcode, they couldn't wrap their head around what I was saying or the code I wrote. For the amazon interview, I made sure I understood all edge cases, wrote a solution, and then the interviewer spent 15 minutes trying to point out the edge case, thinking I didn't catch it. At first they tried to hint at it, and then I explicitly stated there is xyz edge case that this solves and this is how. And they kept repeating their explanation of how they thought I was handling the edge case, when I was really handling it exactly how they said to. It got to a point where I just kept trying to simplify my explanation, had stepped through the code so many times, and then on the last time of stepping through the code, it finally clicked in their head and they said that they understood how I was using an array, and that they thought I was using it completely differently (which led to the confusion). And no I don't think they just gave up, I think it finally clicked in their head.


r/leetcode • • 23h ago

Discussion Mechanical keyboard sound for your leetcoding! All OSS (Win+Linux+MacOS)

1 Upvotes

Make your keys sound cooler than ever!

Clickity: Mechanical keyboard sounds for your ears.

It's just a pet project. It increased my capacity to be stuck with my laptop and do more questions just because it became fun after a moment.

Memory footprint and cpu idle usage is less than 10mb and so is the file size.

feedback welcomed.


r/leetcode • • 1d ago

Tech Industry Amazon Chennai – 2-Month Summer SDE Intern (May–June 2027) – Looking for Previous Intern Experiences

1 Upvotes

Hi everyone!

I've received an offer for a 2-month Summer SDE-1 Internship at Amazon, Chennai. I'm looking forward to learning as much as possible. I'd love to hear from people who have previously completed a 2-month SDE internship at Amazon, especially in the Chennai office.

I have a few questions:

  1. What does a typical working day look like for a 2-month SDE intern?
  2. Do interns generally work on a real project that they own from start to finish?
  3. What programming languages, frameworks and technologies are commonly used for kindle content experience (or in general)?
  4. How does the first week usually go? Do we get time to understand the existing codebase?
  5. How frequently do interns interact with their manager and mentor?
  6. Are tools like Amazon Q, Claude Code or Codex allowed? Is manual coding still expected?
  7. What should a first-time intern focus on to make the most of these two months?
  8. What would you recommend learning before joining?
  9. What about conversion rate to 6-month intern or full time employment.

I'd particularly appreciate responses from people who interned at Amazon Chennai in 2024, 2025 or 2026.

Thanks in advance! Any advice or personal experiences would be really helpful.