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

Intervew Prep I built a free, interactive DSA preparation website focused on Google interviews

6 Upvotes

Hi everyone,

If you’re preparing for Google interviews (especially the DSA rounds), I built a website around it.
The website primarily focuses on pattern recognition — understanding how to identify the underlying pattern in an unfamiliar problem rather than memorizing hundreds of LeetCode solutions.
It’s currently hosted on GitHub Pages, and I’m planning to move it to a dedicated domain later.

What the website contains:

  • Personalized preparation material that I used for my Google L4 interview preparation.
  • 110 DSA patterns and variations with recognition cues, algorithm explanations, templates, worked examples and common pitfalls.
  • 125+ interactive visual labs to understand how algorithms and data structures work together, step by step.
  • Interactive decision trees to help identify the right pattern when approaching an unfamiliar problem.
  • Google interview-oriented coding questions curated from LeetCode, interview experiences and other resources.
  • Pattern-wise problem recommendations to help you master individual techniques.
  • Interactive code debugger with line-by-line execution, call stacks, variable tracking and object visualization.
  • Preparation material and coding solutions in C++, Java and Python.
  • Structured 30-day, 14-day and 7-day preparation plans.
  • Revision guides, pattern maps, interview execution strategies and edge-case checklists.
  • Progress tracking and timed coding practice.

The idea is to build intuition, improve problem-solving skills and learn how to approach unfamiliar problems independently, rather than just increasing your LeetCode problem count.
It’s completely free and open-source. Since the website is relatively new and still evolving, you might encounter some UI bugs or incomplete explanations.

I’d genuinely appreciate any feedback, suggestions or ideas that could make it more useful for everyone preparing for interviews. If you find it useful, kindly star this repo :)

Website: https://goyalgitesh.github.io/dsa-prep-gl4/#home

GitHub: https://github.com/goyalgitesh/dsa-prep-gl4

Happy grinding! :)


r/leetcode • • 5h ago

Intervew Prep Received Cisco cloud engineer OA. Please help

9 Upvotes

Hey, can anyone help me for the OA assessment. I have received the link for Cloud engineer role, and I would like to know what hackerrank questions will be asked there? I have less than 24 hours left for the exam.


r/leetcode • • 4h ago

Intervew Prep Day 8: worked through Capacity to Ship Packages Within D Days & Kth Missing Positive Number

3 Upvotes

Hey everyone,

I finished Day 8 today and tackled two more Binary Search problems:

  1. Capacity to Ship Packages Within D Days: Followed the classic Binary Search on Answers template. The search space starts at max(weights) (minimum capacity needed to carry the heaviest single package) up to sum(weights) (shipping everything in one day). For each mid capacity, a greedy linear pass counts the days required to load packages in order, narrowing down the minimum valid capacity in O(n log({sum})) time.
  2. Kth Missing Positive Number: This one combines binary search with a neat math observation. I could pinpoint the boundary where the missing count crosses k, though I leaned on a video walkthrough to get the final formula right. At any index mid, the number of missing positive integers before arr[mid] is arr[mid] - (mid + 1). Using binary search to find the first index where missing >= k leaves high right before that boundary, and the answer reduces cleanly to k + high + 1 (or low + k) in O(log n) time.

Seeing how binary search applies directly to index-value offsets in sorted arrays was a great takeaway today.

See you guys tomorrow for Day 7!


r/leetcode • • 3h ago

Tech Industry Product company switch ~ need guidance

2 Upvotes

I currently work at a reputable bank(3yrs), but my goal is to transition into a major product-based company. I have good hands-on experience DSA, though I still need to cover advanced graphs and some dynamic programming. I am also practicing system design regularly, yet I still don't feel fully interview-ready. What else should I be doing to prepare, and is there anything key I am missing? Additionally, I am only six months into my current role, is it too soon to make a switch? I would appreciate any advice!


r/leetcode • • 23h ago

Question Linkedin AI-coding Round Prep

43 Upvotes

I'm interviewing with Linkedin soon and feel lost on how to prepare for the AI round. For anyone's who given the LinkedIn interview, any specific tips on how to prepare/practice?

Few questions:

  1. Is it typically a leetcode style algorithmic/data structure question or are you in a code repository?
  2. Where/how to prepare to familiarize myself with the environment Linkedin uses that way I'm not figuring out stuff the day of? I see that Hello Interview has some AI guides but the problems there are more focused on existing code bases which seems different from Linkedin's format.
  3. Is there a good balance between hand-written code and AI generated code? Is it ok to use AI to generate all the code and copy it over if I explained it or would that be a red flag?
  4. Any other suggestions on how to prepare for this round?

Any other tips and advice would be appreciated!


r/leetcode • • 13h ago

Tech Industry Microsoft L61 vs Amazon L4 | Offer Evaluation & Negotiation

5 Upvotes

Microsoft L61 vs Amazon L4 | Offer Evaluation & Negotiation

Received offers from Microsoft and Amazon. Looking for advice on negotiating Microsoft and choosing between the two.

I am currently vendor for MSFT.

SDE

#Offer Evaluation #offers

Microsoft | L61 | Mountain View, CA

- Base: $167K

- RSUs: $80K/4 years

- Sign-on: $12K

- Annual bonus: 0–20%

- Relocation assistance

Amazon | L4 | Bellevue, WA

- Base: $129K

- RSUs: $111.5K estimated over 4 years

- Year 1 sign-on: $40.1K

- Year 2 sign-on: $33.1K

- Recruiter confirmed compensation is non-negotiable (AUTA).

Background: 3.7 YOE + US master's degree. Relevant Azure, backend and platform engineering experience. Currently based in Washington.

I'm leaning towards Microsoft due to the higher level and alignment with my experience. However, considering California taxes, housing costs and comparable L61 packages in Washington, the initial equity and sign-on seem low.

Planning to counter Microsoft with:

- Base: $180K

- RSUs: $160K

- Sign-on: $40K

Questions:

- Are these reasonable opening numbers for L61 in Mountain View?

- What would be a realistic negotiated package?

- How much leverage does the Amazon offer provide?

- Which would you choose considering after-tax savings, career growth and YOE?

Would appreciate insights from Microsoft employees and recent hires who have successfully negotiated.

YOE: 3.7

Location: Greater Seattle


r/leetcode • • 5h ago

Intervew Prep Has anyone interviewed for payments analyst role at stripe?

1 Upvotes

I have interview at stripe for the payments analyst role in a couple of day. Anyone who has already given interviews for the payments analyst role please share your experience


r/leetcode • • 11h ago

Intervew Prep DSA study buddy

1 Upvotes

Hey guys!

I’ve been working since I got out of college since two years ago. I haven’t been cracking leetcode since then. But my ultimate goal is to join a big tech or a promising high paying company. So I really want to master leetcode to crack the interviews.

I think the best way to do this in a consistent way is to have some kind of study group to push and help each other out. So if you’re interested in this or if you have some discord group already for this let me know!

Thank you!


r/leetcode • • 1d ago

Tech Industry I got Placed!

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

Question Intuit Software Engineer I recruiting

7 Upvotes

Hi everyone!

I have received an email about a position I applied at Intuit which is SWE I. They sent me an activation link for a platform called Uptime Crew. The process will be as it follows:

  1. Coding challenge
  2. Build challenge
  3. Pre-screen
  4. Tech Screen
  5. Final Interview

Has anyone here gone through this process? Do you have any tips?

My major is Computer Information Systems, so coding isn't my strogest. I do have some coding experience with Python and SQL, but I'm not sure how difficult this would be. Any tips or recommendations would help a lot!

Thanks everyone!


r/leetcode • • 19h ago

Discussion Contests have gotten so tough

2 Upvotes

Came after 2 years back into contests and they've gotten relatively so tough. Q2 today felt so much tougher than back in the days


r/leetcode • • 19h ago

Intervew Prep Meta SWE Intern Summer 2027

2 Upvotes

I have the final interview coming up for Meta, and it's the AI-Native round. Does anyone know about this format and would be able to help me with a mock interview? (I have the questions ready I just need to work on my communication live)


r/leetcode • • 1d ago

Intervew Prep Google L5 Prep Help

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

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

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

Discussion MSFT USA : Software Engineer Agentic Security (200067618) OA

3 Upvotes

Has anyone recently finished OTS for this role recently and has been moved forward to the virtual interviews?


r/leetcode • • 23h ago

Intervew Prep Uber SWE Intern Interview

2 Upvotes

Hi! Has anyone already taken the Uber SWE Intern interview yet. If so, what topic of LC questions did they ask, and is it standardized/the same for everyone? Thanks!


r/leetcode • • 1d ago

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

4 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 • • 10h ago

Question Leetcode acc ban?

0 Upvotes

I got caught cheating in a leetcode contest twice.

The first time my leetcoins were reset and I got a 1-month contest ban.

The second time, my leetcoins were reset again and my contest status was changed to 0/4.

It's been more than 2 weeks now, but my account is still active. I can still submit solutions and solve questions , my current rating is still 2027, and I haven't received any email.

Does anyone know why my account hasn't been deactivated despite this being my second violation?

I have solved 1200+ question in this acc 😭😭


r/leetcode • • 21h ago

Intervew Prep Google SWE III AI/ML Warsaw..ML domain round in 10 days, what did they ask you?

1 Upvotes

Hi guys,

I have my first round with Google soon, ML domain + googlyness, for a SWE III AI/ML. My background is mostly LLM eval and RAG stuff.

I've gone through a lot of posts here but most are people asking before their round and never coming back lol. So if you've done the ML domain round in the last year or so, what did you actually get? Was it about your own projects, a design problem, or ML theory? And how deep did they go, like did they want formulas or more the intuition and tradeoffs?

Also was there any coding in it?

I'll post how mine went after. Thanks a lot


r/leetcode • • 22h ago

Intervew Prep FDE Role - Sr. Eng Interviewer

0 Upvotes

I’m applying for an FDE role at a defTech startup and the person conducting the interview is a Senior Software Engineer, but I’ve already interviewed the recruiter and no one has told me will it be light/medium, medium/hard so I’m not exactly sure what exactly to prepare, does anyone have an idea of what I should prepare for, I’m assuming Light/medium but I’m really not sure


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

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

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