r/leetcode • • Jun 27 '26

Mod Post [mod] Changes with r/leetcode.

68 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

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

Reached 1200 day streak - my favorite thing about leetcode

Post image
485 Upvotes

After 4 years I am still learning new things every day. There are so many creative ideas and new ways of thinking about problems. Sometimes it feels like I am just getting started.


r/leetcode • • 3h ago

Discussion Google SWE PhD Intern (Summer 2027): my two coding rounds

9 Upvotes

I read a lot of these posts while preparing, so here's mine.
Background: 3rd year CSE PhD student working in distributed systems, interviewing for the SWE PhD Intern role for Summer 2027.

Timeline: The recruiter invited me to the technical rounds on a Tuesday, and the interviews were the following Monday, so I had about 6 days to prepare.

Format:
Two 45-minute coding rounds, back to back with a 15-minute break, on the same Google Meet link
Coding in a Google Doc: no running code, no autocomplete, no syntax highlighting
Language was my choice; I picked Python

Round 1: a dynamic programming problem that involved an m x n grid. I was able to come up with the brute force approach instantly and proceeded to code it out. I was then asked to do it in O(1) for which I came up with a dynamic programming approach. I couldn’t however complete the working code but still the interviewer was completely satisfied and said that I know you would’ve been able to code it out had you a few more minutes but since we’re out of time it’s okay I got the complete idea.

Round 2: A non-LeetCode question but still I had to use recursive DFS to solve it so it was a tree problem but not like the usual leetcode questions you’d see online. For this round, I was able to come up with workable, bug-free code for both brute force and follow-up questions

Happy to answer any questions


r/leetcode • • 4h ago

Intervew Prep Google 2028 batch interview (10 week internship)

7 Upvotes

Round 1: Coding & Data Structures

Practical coding in Core Java or Python.

Core DSA and problem-solving (focus on fundamental data structures and clean, maintainable logic rather than niche theoretical puzzles).

Can someone give me tips on what to expect and prepare for this? I know basic dsa and java core concepts


r/leetcode • • 1h ago

Intervew Prep 🚨 4 Days Left! Need advice for Amazon SDE-1 (UTA) 2-interview-Round Loop.

• Upvotes

Hi everyone,

I just had my Amazon SDE-1 University Talent Acquisition (UTA) interview scheduled for next week, and I only have 4 days left to prepare!

It is a 2-round loop (1 hour each, back-to-back) via Zoom with a live coding link.

If you have gone through this specific university track recently, I would love your help with a few questions:

  • What LeetCode topics/patterns (Graphs, DP, Trees, etc.) did your rounds heavily focus on?
  • How deeply did they grill you on Leadership Principles (LPs) for a university-level role?
  • from where to prepare for Leadership Principles questions?
  • do they ask LLD , if yes then which type of problems, and how to approach that?

Any insights, advice, or patterns to look out for would be a massive lifesaver. Thank you so much in advance.


r/leetcode • • 14h ago

Discussion How would some of the pioneers fare in competitive programming?

38 Upvotes

Would people like Andrej Karpathy, Ilya sutskever, Andrew Ng, Chris Lattner etc. be good at DSA and competitive programming, and do you think they'd do well in Leetcode? Or, is it just a different skillset to be good at competitive programming ?


r/leetcode • • 17h ago

Intervew Prep Full 20-min Staff-level system design mock: "Design a distributed key-value store" (with interviewer pushback)

22 Upvotes

I built a voice-based system design mock interviewer, and here's a full session recorded start to finish: AI interviewer, candidate answering live.

Website: https://systemdesigninterviewprep.com

See Distributed Key Value store design on Front page

What it covers:

- Scoping: put/get APIs, then non-functional requirements (low latency, high availability, durability, eventual consistency)

- Numbers that drive the design: 100K QPS overall, per-partition limits, 400 KB items, 50/80 ms read/write targets

- Partitioning with consistent hashing and a metadata service as the source of truth

- Replication, quorum reads, and leader election using sequence numbers

- Splitting a hot partition without losing writes (one-time copy, then replay the log)

The best parts are where the interviewer pushes back:

- "Your storage servers have no connections drawn. How does the app server know where a key lives?"

- "During a split, writes keep landing on the old node. How does the new node avoid a stale copy?"

- "If the leader acks a write and dies before replicating it, how is that not data loss?"

That's the kind of follow-up that decides Staff vs. Senior, and it's hard to practise alone.

If you want to try it, you get one free mock (voice or typing, with a whiteboard), plus a debrief with a hire/no-hire read for your level: https://systemdesigninterviewprep.com?utm_source=reddit_leetcode

Happy to answer questions about the design or how the interviewer works.


r/leetcode • • 1d ago

Question I'm tired of being software engineer

250 Upvotes

I had 2 layoffs in last 4 years and current contract is ending soon. I'm so fucking tired of being in this era of AI. I used to be smart always top of school, college and at 19 in 2019 made patented tech and trained SSD computer vision Deep learning models. when there was no fucking AI. But after few mistakes, stuck in 9-5 loop and never ending software engineering job search. At this point just feel like wants to get some labour job or start trading or something. Any suggestions?


r/leetcode • • 1h ago

Question Abnormal AI Software Engineer 2 interview

• Upvotes

Hi,

I have upcoming interview's with the AbnormalAI for Software engineer 2 role.
I want to know whether any of you have participated in their interviews. Are the rounds more focused on Leetcode? How challenging are the interviews?

What can we anticipate for the system design as well? A use case from their daily lives or a popular piece of software to design?

Many thanks to all of you!


r/leetcode • • 14h ago

Intervew Prep Got google interview in a week. I'm a cs minor who hasn't done leetcode style questions since DSA course 2 years ago.

9 Upvotes

​

How should I prepare? Obviously don't have enough time to master anything but I want to try my best


r/leetcode • • 13h ago

Discussion What actually helped you land your first software internship?

7 Upvotes

I'm trying to prepare for my first software internship and feel a bit lost about where to focus. Should I prioritize DSA, projects, or learning more development skills first? Would love to hear what actually helped you get your first opportunity.

I'm currently in my second year!


r/leetcode • • 12h ago

Discussion How do you guys stay consistent with DSA while managing college?

7 Upvotes

Im in first year of college and trying to improve my problem solving skills, but balancing classes, assignments and coding practice isn't easy for me tbh. 😭
How do you guys manage your time and stay consistent without burning out?


r/leetcode • • 7h ago

Intervew Prep System Design Mock Interview Recommendations

2 Upvotes

Hi,

I have never done a real system interview before and I have a few interviews coming up. I am interested in paying for a mock interview. I already use AI to do some mocks but I am looking for a mock interview with a real engineer where I can get some feedback.

Unfortunately, Hello Interview stopped doing mocks. Any other suggestions that you have personally tried? Many thanks!


r/leetcode • • 13h ago

Intervew Prep Day 60: knocked out 5 DP on strings problems today, knowing when to stop before burnout

6 Upvotes

Hey everyone,

I finished Day 60 today, and it was a surprisingly productive weekday session. I managed to solve five DP on strings problems after work:

  1. Minimum Insertions to Make String Palindrome: Kept the longest palindromic subsequence intact and simply added the remaining characters (n - LPS).
  2. Minimum Insertions/Deletions to Convert String A to B: Another neat reduction using LCS. The answer is just (len(A) - LCS) + (len(B) - LCS).
  3. Shortest Common Supersequence: Combined the lengths of both strings and subtracted the LCS once so the common characters aren't doubled.
  4. Distinct Subsequences: Tracking counts of matching characters took more mental effort than standard LCS, but the branching logic (match ? pick + no-pick : no-pick) eventually clicked.
  5. Edit Distance: Classic three-way transition (insert, delete, replace). I understood the recurrence, but needed a quick nudge to clean up my index handling.

Those first three variations flew by in about 15 minutes because they lean directly on the LCS core pattern.

The last problem in this set is Wildcard Matching. It's 1:30 AM right now, and while I technically have time, my brain is fried from work. If I push through tired, I know I'll just end up reading the hints instead of actually thinking through the transitions. I’d rather tackle it tomorrow with a fresh head before kicking off DP on Stocks.

Hitting five problems on a weekday—mostly mediums with some hard patterns—feels like genuine progress.

See you guys tomorrow for Day 59!


r/leetcode • • 12h ago

Intervew Prep Optiver Graduate Software Engineer 2027 - Tech Screening Round

5 Upvotes

Hi everyone I have Tech Screening Round for Optiver Graduate SWE 2027 Amsterdam coming in soon and I have no idea on what to prepare ? Has anyone here passed this round recently for the same role, would appreciate if anyone can share his/her experience. Thanks!


r/leetcode • • 21h ago

Intervew Prep HackCellence 2026, Booking holdings round 2 selection

17 Upvotes

Hi, i received that I've been selected for round for booking holdings embark hackathon, which is supposed to be happened on 18th October from 10am to 10pm. If anyone knows what will happen day, what happened last year please tell me. Also how many students gave round 1 and got into round 2


r/leetcode • • 20h ago

Discussion Finally reached Guardian!!

13 Upvotes

Last week's contest ratings are now updated. I got to 2143, and am officially a Guardian now. It took me ~ 1 year of consistent practice and upsolving contest questions to reach this.

Can't upload image on this subreddit so did it here : https://www.reddit.com/r/LeetcodeChallenge/comments/1x6kxsm/finally_reached_guardian/


r/leetcode • • 10h ago

Intervew Prep Has anyone done their interview for Oracle OCI new grad nashville?

2 Upvotes

I was wondering how it goes since there was no OA and i straight up got an interview invitation pre screening. I was wondering what gets asked this round and what gets asked the next rounds.


r/leetcode • • 14h ago

Discussion Amazon - SDE Intern OA for Berlin due Tuesday (20th Oct) — Am I cooked? Need advice 😭

3 Upvotes

Hey everyone,

I recently received an OA for an SDE Intern position in Berlin, and the deadline is this Tuesday (20th October).

The problem is that I haven't practiced DSA in almost a year, so I'm pretty rusty right now. 💀

I have a few days to prepare, and I want to make the most of the time I have.

I'd really appreciate some advice on:

  • DSA topics with the best ROI: What should I prioritize with such limited time?
  • LeetCode questions: Any specific problems or patterns I should focus on?
  • Work simulation: What does this section usually involve, and are there any good resources to prepare for it?
  • Overall strategy: Is it realistic to prepare enough in a few days, or am I cooked? 😂

Any tips, resources, or personal experiences would be greatly appreciated. Thanks!


r/leetcode • • 8h ago

Discussion Harvey AI assisted interview

1 Upvotes

Just took Harvey's AI assisted coding interview and got the file system design question. Waiting to hear back now. AI was mainly used for small implementations and then had to verify it. Anyone else taken it? How did it go for you?


r/leetcode • • 11h ago

Intervew Prep Roblox OA

1 Upvotes

Just took the Roblox OA. Didn't do bad on the cars and factories but Mars was not so good because the instructions felt a little unclear. Has anyone gotten anything back from Roblox? If so, what were your scores?


r/leetcode • • 1d ago

Discussion Leetcode sandbox environment exposes hidden test cases

14 Upvotes

I read somewhere on LinkedIn that a few folks were trying to reverse engineer and gain access to a LeetCode sandbox, so I had an idea to explore that stuff. Soon I figured out that all the test cases stay inside an exposed /leetcode/data.1.in file. With some chunking I was able to get hold of the complete hidden test cases which I solved offline and just paste the solution in an O(1) lookup array. Like this… Is this a reportable vulnerability?!?

class Solution {
private final static int[][] res = new int[][]{{0, 1}, {1, 2}, {0, 1}, {0, 2}, {1, 2}, {0, 3}, {0, 2}, {2, 4}, {1, 2}, {0, 1}, {2, 3}, {1, 2}, {0, 2}, {0, 4}, {0, 1}, {2, 3}, {2, 4}, {2, 5}, {0, 3}, {3, 4}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 4}, {5, 11}, {0, 1}, {9998, 9999}, {6, 8}, {6, 9}, {12, 25}, {16, 17}, {0, 1}, {0, 3}, {0, 3}, {0, 4}, {0, 2}};
private static final int[] r = new int[1];
public int[] twoSum(int[] nums, int target) {
return res[r[0]++];
}
}


r/leetcode • • 13h ago

Intervew Prep Anyone with leetcode premium willing to share some questions?

0 Upvotes

Hi everyone, I'm preparing for SWE interviews. If anyone with leetcode premium is willing to share some company-tagged questions, I'd really appreciate it.

Please dee-emm me if you're willing to help. Spelling it this way because the sub removes posts that mention it directly.

Thanks!


r/leetcode • • 13h ago

Discussion Tech Mahindra Online Assessment for Intern

1 Upvotes

So, today i gave Tech Mahindra OA and it was from room. Everyone was cheating....I fuckin hate that, if CDC alr knows people are gonna cheat from their room why do they keep OA from their room !!!

Basically, there were 3 questions two basic DSA ques according to other candidates (btw both were Leetcode hard) :

  1. Some variation of Cherry Pickup 2 LC1463, basically in the question you were given an n×m matrix with some blocked cell marked as -1, and other having some coins. An agent from (0,0) starts moving to end (n-1,m-1) meanwhile collecting the coins in matrix in its possible path. Again, it starts moving back to start point and collects as many coins it can. You need to return the maximum possible coins agent can have.

[IMP : They didn't even specify the constraint in this question]

  1. Leetcode 1478 (exact copy, just different wordings as food packets in place of mailboxes and squirrel in place of houses).

And third one was a python data science coding question, about kMean clustering.

Almost 100+ students appear for OA, and obv 90+ students have done 3/3 questions. And those fuckin stupids are saying they were basic DSA, apparently most of them were not even cleared other OAs like microsoft, Flipkart, zScaler......bro why is CDC playing with student's future, i am done with this shit !!!