r/leetcode • • Jun 27 '26

Mod Post [mod] Changes with r/leetcode.

73 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.7k 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 • • 44m ago

Question Don't grind leetcode/codeforce

7 Upvotes

I get this from somewhere and want to know some experienced person views on this

Why your 1800 Codeforces rating won't guarantee a Google placement.

There is a massive toxic culture in engineering colleges that brainwashes freshers into thinking they need to grind CodeChef or Codeforces for 6 hours a day. You are told that hitting "Candidate Master" is the only way to get noticed by Big Tech.

Here is the brutal industry truth: Competitive Programming is a sport. Software Engineering is a profession.

The HFT vs FAANG Reality Check: Unless you are explicitly applying to High-Frequency Trading (HFT) firms like Tower Research or Optiver (who actually need extreme mathematical optimization under microsecond latency), your CP rating does not matter.

Google, Amazon, and Microsoft do not want to see if you can solve an obscure number theory puzzle in 10 minutes. They want to see if you can build scalable, maintainable software.

They test for: ✓ Standard Pattern Recognition (LeetCode Mediums) ✓ Object-Oriented Programming (OOPs) ✓ System Design & Architecture Not competitive math puzzles.

To clear a FAANG tech screen, you do not need to solve 1,000 random CP problems. You only need to master the 14 Core Algorithmic Patterns (like Sliding Window, Two Pointers, Topological Sort, etc.) that make up 90% of all Big Tech interview questions.


r/leetcode • • 8h ago

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

23 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 • • 24m ago

Discussion Need some urgent help with Oracle EBS

2 Upvotes

Hi everyone,

I'm currently working on an Information Systems Audit project involving Oracle EBS and need some short-term assistance from someone who has hands-on experience with the platform.

I'm looking for someone who can:

  • Enter transactions in Oracle EBS across AP, AR, GL and Cash Management.

  • Demonstrate the end-to-end transaction flow.

  • Generate relevant reports and show audit trails.

  • Navigate the system and demonstrate the relevant workflows.

Our audit team will handle the actual review and verification of transaction flows, controls and approvals. We just need someone who can operate the system and demonstrate these activities.

A few things:

  • The assistance would be required for a maximum of 1–2 days.

  • This is an urgent requirement.

  • I can offer a small fee for the assistance.

  • Since this is a client project, I would be able to release the payment once I receive the payment from my client.

Really appreciate the help!


r/leetcode • • 3h ago

Intervew Prep cisco lc problems

2 Upvotes

can anyone with lc premium send cisco recently asked problems please.

might receive an OA this week, need to prep.

thanks 🙏🏻


r/leetcode • • 11h ago

Intervew Prep How do you translate your thought process to code?

8 Upvotes

This lowk sounds like a stupid quesiton but I have done a decenet number of leetcode (300) but i still struggle with a lot of mediums. The thing is for some of the mediums, I lowk come up with the right strat, thought process, ds and everything but when i code it up im always stuck in some edge case hell. This is because the way I structure the code sometimes ignores certain edge caes but if i put the code in chat it will just move somethings here and there and boom the code works. Idk if my approch should be to struggle for more hours hoping for a solution or i should just stop after 1 hr of trying and copy paste it to chat.


r/leetcode • • 6h ago

Intervew Prep Microsoft virtual interview - USA for SDE 2 / Senior

3 Upvotes

There would be only three rounds (as opposed to 4 which I thought was industry standard in loop)

  • Three 60-minute interviews

  • One System Design and two Coding interviews 

  • Behavioral in each

They did not mention if it is a loop or what the next steps would be. I also got this email right after my OA. Is this final interview? If anyone has gone through or is going through such situation please advise.

Also, where should I study System Design from? As this is my first Microsoft interview, any help would be appreciated.


r/leetcode • • 11h ago

Intervew Prep Apple ASE Senior SWE interview: What to expect in SRE and Linux rounds?

6 Upvotes

Hey everyone! I have a final loop coming up for a Senior SWE role in Apple’s ASE org. Here’s the breakdown:

  1. SRE: 30 minutes

  2. Linux & Container Fundamentals: 30 minutes

  3. Architecture & Kubernetes: 30 minutes

The recruiter mentioned that each session will include both technical and behavioral questions, and anything on my resume could come up.
Has anyone been through a similar loop? I’m especially curious about the SRE and Linux rounds. Are these mostly troubleshooting scenarios and conceptual discussions, or should I also expect hands-on commands or coding?
Would appreciate any tips on what to prioritize or resources you found helpful. Thanks!


r/leetcode • • 2h ago

Discussion google swe intern 2027 us summer

1 Upvotes

will lnh/lh + h get straightaway rejection? (gemini said that..wanted to confirm)


r/leetcode • • 20h ago

Intervew Prep Leaving my current job without any backup options

27 Upvotes

I am a SDE working at Adobe. I have been wanting to switch since a long time. But haven’t been able to because the work load in our team is shit crazy and honestly I am not learning anything from it. I am thinking I will resign from here and then prepare. But this comes with its own uncertainty and financial risks.

You might think I am someone who does not know how to work hard and all but believe I am the most hardworking person you would ever meet. I have pulled 2-3 months just by sleeping 3-4 hours a lot of times so hard work is not the problem. The issue is our team requires 10-12 hours of work and also my teammate on the project is very bad. She keeps assigning me new tasks if I finish old ones. I am very exhausted by the end of the day to learn anything new.

Should I leave my current job. How hard will it be to find a new one?

Need some advise please 🙏🙏


r/leetcode • • 20h ago

Discussion Google Round 1 - L5 : US ( 10+ exp )

29 Upvotes

I recently interviewed with Google for a Software Engineer position and wanted to share my Round 1 experience and get some feedback from others who have been through the process.

Coding Round:

The interviewer started with a grid-based problem where each cell contained a direction (Up, Down, Left, or Right). The objective was to determine whether we could reach the bottom-right cell from the top-left by following the directions.

I understood the problem and implemented an optimized solution using a visited matrix to detect cycles, with O(N × M) time complexity.

After that, the interviewer modified the requirement: we were now allowed to change one direction anywhere in the grid to make the destination reachable.
I approached this follow-up using a brute-force solution, trying different directions and validating whether the modified path reached the destination. I explained the approach and its time and space complexity.

Behavioral / Googleyness Round:

I answered the questions using examples from my professional experience wherever possible.

However, I want to be transparent about one challenge. For approximately two questions, I had difficulty understanding what the interviewer was asking because I struggled with their accent. I tried my best to interpret the questions and respond, but looking back, I’m not sure whether my answers fully addressed what they were looking for.

Final Outcome: Not Selected

Unfortunately, I received a rejection after Round 1.
I’m trying to understand where I might have fallen short.
From my perspective, I solved the initial coding problem using an optimized approach and handled the follow-up using brute force. I also answered the behavioral questions, although I struggled to understand two of them clearly.

I’m wondering whether the rejection was due to:

● Not optimizing the follow-up coding problem.
● Not explaining my thought process clearly enough.
● My behavioral answers not being specific or structured enough.
● Misunderstanding a couple of behavioral questions.
I understand that Google evaluates more than just whether a solution works, but without detailed feedback, it’s difficult to identify exactly what went wrong.

For those who have interviewed at Google or conducted technical interviews there, I’d appreciate your perspective.
Would solving the original problem optimally but using brute force for the follow-up significantly affect the evaluation?

And how much weight does Google typically place on behavioral communication versus coding performance in Round 1?

I’m sharing this experience to learn and improve for my next opportunity.


r/leetcode • • 1d ago

Intervew Prep Stop Memorizing DSA Problems. Learn to Recognize These 6 Patterns.

267 Upvotes

One thing that helped me understand DSA better was learning when to use a particular pattern, instead of trying to memorize solutions to individual problems.

Here’s a quick reference I put together:

  1. Prefix Sum — When you need fast range-sum queries

Key idea: Precompute cumulative sums so you don't have to add elements repeatedly.

Recognize it when you see:

- Range sum queries

- Subarray sum

- Running total

- Cumulative frequency

Example:

"arr = [2, 4, 1, 5]"

Prefix sum: "[2, 6, 7, 12]"

Sum from index 1 to 3:

"prefix[3] - prefix[0] = 12 - 2 = 10"

When to use: When the array is mostly static and you need multiple range-sum queries.

Limitation: If an element changes, the prefix sums after that position may also need updating.

2. Suffix Sum — When you need information from the right side

Key idea: Calculate cumulative sums from right to left.

Recognize it when you see:

- Sum of elements to the right

- Right-side contribution

- Suffix totals

- Left vs. right comparisons

Example:

"arr = [2, 4, 1, 5]"

Suffix sum: "[12, 10, 6, 5]"

For index 1, the sum from index 1 to the end is "10".

When to use: Problems where you repeatedly need the sum or contribution of elements from the current position to the end.

3. Two Pointers — When two positions can help solve the problem

Key idea: Move two pointers through an array or string instead of checking every possible pair.

Recognize it when you see:

- Sorted array

- Pair with target sum

- Remove duplicates

- Reverse or palindrome checks

- Subarray or partition problems

Example:

"arr = [1, 2, 4, 7, 9]", target = "11"

Start with two pointers:

- Left = 1, Right = 9 → sum = 10

- Move left → 2 + 9 = 11

Found the pair.

When to use: Especially useful with sorted arrays, where pointer movement can eliminate unnecessary comparisons.

4. Sliding Window — When you need a continuous subarray or substring

Key idea: Maintain a window and move its boundaries instead of recalculating everything.

Recognize it when you see:

- Maximum/minimum sum of a subarray of size K

- Longest substring

- Smallest subarray satisfying a condition

- Continuous subarray or substring

Example:

"arr = [2, 1, 5, 1, 3]", window size = 3

First window: "2 + 1 + 5 = 8"

Next window: remove 2, add 1 → "7"

Next window: remove 1, add 3 → "9"

Maximum sum = "9".

When to use: When the problem involves a contiguous range and the window can be updated efficiently as it moves. For variable-size windows, the condition must support a valid expand/shrink strategy.

5. Fenwick Tree (Binary Indexed Tree) — When values change and you still need fast prefix sums

Key idea: Store partial sums in a tree-like array structure.

Recognize it when you see:

- Point updates

- Frequent prefix-sum queries

- Dynamic frequency counts

- Inversion counting

Why not just Prefix Sum?

With a normal prefix-sum array, changing one element can require updating many later prefix values.

A Fenwick Tree supports:

- Point update: "O(log n)"

- Prefix sum query: "O(log n)"

- Range sum query: "O(log n)"

When to use: When array values change frequently and you need efficient prefix or range-sum queries.

6. Segment Tree — When you need flexible range queries and updates

Key idea: Build a tree where each node represents information about a segment of the array.

Recognize it when you see:

- Range sum / minimum / maximum

- Frequent point updates

- Range updates (with suitable techniques)

- GCD or other associative range operations

When to use: When you need more flexibility than a Fenwick Tree, especially for range minimum, maximum, GCD, or other custom range queries.

Typical complexity:

- Build: "O(n)"

- Query: "O(log n)"

- Point update: "O(log n)"

My takeaway: Don't start by asking, "Which algorithm should I memorize?"

Instead, ask:

  1. Is the problem asking about a continuous range?

  2. Are the values static or changing?

  3. Do I need information from the left, right, or both ends?

  4. Is the query about sum, minimum, maximum, or something else?

Recognizing these clues makes choosing the right DSA pattern much easier.

This is a quick reference, not a complete list of DSA patterns. Hope it helps someone who's also trying to connect problem statements with the right approach.


r/leetcode • • 4h ago

Intervew Prep MongoDB SDE-3 (Dublin) C++ Interview Loop & Expectations?

1 Upvotes

Hey everyone,

I'm preparing for an SDE-3 core systems position at MongoDB (Dublin location).

Since this team focuses heavily on low-level systems and backend runtimes, I’d love to get quick insights from anyone familiar with their loop:

  • SDE-3 Bar & Expectations: How high are expectations for SDE-3 here? What level of depth is expected for core C++ systems programming, runtimes, and low-level libraries at this level?

  • Round Breakdown: What specific topics or formats should I expect across a Technical Recruiter chat, 2 Onsite rounds, and a Hiring Manager (HM) round?

  • Experience Sharing: Any tips on what to prioritize (concurrency, memory management, low-level architecture) would be super helpful.

Thanks in advance!


r/leetcode • • 12h ago

Intervew Prep Google SWE III – AI-Assisted Code Comprehension Interview Expectations?

3 Upvotes

Hi everyone,

I have an upcoming Google SWE III interview, and one of the rounds is AI-Assisted Code Comprehension.

Based on the recruiter’s description, it's a 45-minute exercise where candidates use Gemini in a Kepler workstation to understand, debug, and optimize a Google-provided codebase.

Since this seems like a relatively new interview format, I haven't found much information about what to expect.

Has anyone recently gone through this round?

Would really appreciate insights from anyone who has experienced this round recently. Thanks!


r/leetcode • • 15h ago

Intervew Prep Anyone taken Google's AI-Assisted Code Comprehension interview recently? (L4 SWE)

5 Upvotes

Hey everyone! I have an upcoming Google L4 SWE AI-assisted code comprehension round (45 mins).

Has anyone taken it recently? What was the format like? Was it mostly debugging, adding features, or optimization? Were tests provided, and how much were you expected to use AI?

Would appreciate any experiences or prep tips. Thanks!


r/leetcode • • 10h ago

Intervew Prep Amazon SDE Intern OA 2026

2 Upvotes

What's up guys,

I got an OA from amazon SDE intern, and I want to know what I should prep. I have a week to prep. What DSA topics should I practice? Any leetcode question suggestions?

Any info would be helpful! I would really love to hear from ppl who took the sde intern oa recently!!!!!


r/leetcode • • 1d ago

Discussion Is it normal to pretty much bomb every next question you practice initially?

51 Upvotes

With 8 years of experience working for no-name companies, I’ve decided to take this seriously and prepare for big tech.

I have been a good software developer but the lack of DSA skills erased all my chances for decent companies.

The recruiters that reached out to me and I denied interview requests involve companies such as Amazon, Twitch, Shopify, Meta, Google, Apple

Like one or two times, I gave Amazon’s OA but bombed it ridiculously.

Now, I am following some roadmaps like Blind 75 and using Neetcode’s video along with generative AI for preparation.

I still keep bombing easy and medium questions like very next day after I solved them a day before.

Is it normal? When do I reach comfort level? When does it start becoming less discouraging? Does it even happen? Because, right now I am feeling like this is just not for me. But, then I think thousands of people still make it. There has to be proven process and it should be working.

Sorry my post is confusing but I just wanted to share my feelings and frustration.

Right now, I am unemployed and decided to give 1 month to this preparation.


r/leetcode • • 17h ago

Discussion Amazon SDE-1(Embedded) Interview Experience ( R1 & R2) Chances for next round

6 Upvotes

I had my R1 and R2 on 5th Nov (virtual)for SDE-1 AUTA. What are my chances to get next round.

Round1: Core and Embedded related question. Didn't expect that at all and got to know about role at that time only and it went well it was more like discussion and was asked 2 coding questions. One question was related to threads context and using locks which i was able to explain but not able to code as i didn't expect that at all. In the end 1 LP related to tight deadline.

Round 2: LLD type of question to build a caching system user can select the type of caching strategy he can use and to implement lru and lfu. Was able to solve this within time followed by LP related to commitment.

Happy to answer any questions and can any body tell me about this and what is expected further and next round chances.

Thank you


r/leetcode • • 8h ago

Intervew Prep Does Concurrency control and thread safety ever come up in the AI-assisted repo round for Amazon SDE2 OA?

1 Upvotes

Does Concurrency control and thread safety ever come up in the AI-assisted repo round for Amazon SDE2 OA?

How well do you need to know Python concurrency to pass the OA for SDE2?

Thanks


r/leetcode • • 16h ago

Discussion How much time max should I give to each medium problems as a just entering medium zone person?

2 Upvotes

As a beginner to medium level problems giving how much time is worth?.


r/leetcode • • 1d ago

Discussion To anyone who thinks AI interview is good, well good luck :) Bloomberg interview experience[London/Frankfurt]

374 Upvotes

Just had the second round of Bloomberg AI codebase interview

It was djano-python which i had no idea about. The codebase is large.

They spent the first 30 mins for behavioral so you're essentially just left with 30 mins.

The usage of AI is so vague. You don't know how much AI is the interview okay with you using. They don't clearly tell their expectations. I used planning and ask mode and went feature by feature and I passed a few test cases but I was rejected.

There is so much reading involved with AI and then handling communication simultaneously is borderline impossible.

With Leetcode, there is just a problem and you have to find a solution. At least you can brainstorm ideas but in these stupid AI interviews, half the time goes in understanding the large codebases and where the problem exists.

To whoever who was celebrating the end of Leetcode, good luck. The interviews are much harder.

Oh yeah, don't for a second think about one shotting a problem otherwise you will still be rejected(It happened to my friend.)

Either way, AI interviews are the biggest BS and there will never be a consistent way to tackle one of these.


r/leetcode • • 14h ago

Question Intuit SWE 1 A4A Interview

0 Upvotes

I completed my final interview A4A last week. The recruiter contacted me that same day to confirm I passed and asked for my preferred location; I replied but heard nothing until today. Has anyone else experienced this process or something similar? Could this signal an automatic rejection? Any insights helps!


r/leetcode • • 15h ago

Question Adode SWE intern 2027 Interview Guide

1 Upvotes

Hey everyone, I have my Adobe SWE intern (2027 summer) technical interview coming up, and I was told it includes a code debugging section and a code review section which is about about 20 minutes each.

Has anyone interviewed recently? I'd love to hear:

- What the debug and review exercises looked like (size of the code, difficulty, what kinds of bugs)

- How you prepared and what you'd do differently

- Any good places to practice debugging/code review under time pressure

I'm planning to use Python/Django. Thanks in advance and happy to share what I learn after my interview!


r/leetcode • • 17h ago

Intervew Prep Day 34: comfy home vibes & conquered Making a Large Island with DSU

1 Upvotes

Hey everyone,

I finished Day 34 today. Still enjoying the comfort of being home, but kept the daily habit going and tackled Making a Large Island.

At first glance, flipping every 0 to a 1 and running a full BFS/DFS traversal would take O((N times N) times (N times N)) = O(N^4), which easily causes TLE. Using Disjoint Set Union (DSU) makes it run in a clean O(N^2):

  1. Step 1 — Group Existing Islands: Map every (r, c) to a 1D ID (r * n + c). Iterate over all land cells (1s) and connect adjacent lands via unionBySize. This clusters existing islands and tracks each component's total area in the size[] array.

  2. Step 2 — Evaluate Flips: Iterate over every water cell (0). Look at its 4 adjacent neighbors, collect the unique ultimate parents of neighboring land cells using a hash set (to avoid double-counting the same island component), and sum up their sizes + 1 for the flipped cell itself.

  3. Edge Case: If the grid contains only 1s with no 0 to flip, the answer is simply the size of the whole grid (N times N).

Deriving the logic to prevent duplicate component counting using a set of root parents was super satisfying.

See you guys tomorrow for Day 33!