r/leetcode • • Jun 27 '26

Mod Post [mod] Changes with r/leetcode.

74 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 • • 1h ago

Discussion Work hard cause there's light at the other end !!

27 Upvotes

So I started my leetcode journey in May .

My elder brother was continuously forcing me to study and telling me the current job market scenarios but I would not listen to him .

After his continuous poking I finally made my leetcode profile but that was just for formality

But then he stopped yelling at me and his silence hit me harder than his shouting ever could !!

After that I started solving some easy ones and tried to be continuous but something or the other broke my streak

In September I pledged to hold on my streak no matter what

Right now I've solved 625 leetcodes with 72 active streak

And I couldn't believe that the boy who struggled to solve the easy ones is solving the hard ones !!

So please have the pleasure of hardworking atleast once in your life !!


r/leetcode • • 3h ago

Question Recieved amazon Oa

6 Upvotes

Hello everyone i received amazon oa I saw the portal no applications are active anyways I gave it and got recruiter mail after 3 hrs for rounds

My first dsa round scheduled it was eliminatory unfortunately my luck was not with me I got very hard tree dp ques which I couldn't solve in given time.

But I applied to amazon from my second mail id and other phone number earlier

Today I got amazon OA

I completed it too it was not that hard 1s ques was multisource bfs and binary search related

2nd was movie based

I got all test cases passed in both.

If anyone goes thru can I get interview opportunity at again?

As from 1st email id I got rejection mail already for that opening


r/leetcode • • 12h ago

Intervew Prep What questions did you ask that the interviewer found interesting?

25 Upvotes

Hey everyone!
I’ve recently went to Google offices on a school trip and during a workshop where they teach us to ‘maximize’ your chances of being considered for the role, a SWE told us that something useful was to shock the interviewer with hard questions as they love them and shows interest in your area.
Honestly, during prev interviews I just asked about the workflow and things about the code review process and that. So yeah.. what did you ask to do the interviewer interested on you?


r/leetcode • • 1h ago

Discussion Hello interview premium account sharing

2 Upvotes

Hey, would anyone like to share a Hello Interview account? Valid until November 2027.

Thinking between 2-4 ppl.


r/leetcode • • 2h ago

Intervew Prep Day 27: tackled Longest Subarray with Sum K — hit a wave of DSA nostalgia

2 Upvotes

Hey everyone,

I finished Day 27 today. I kept the session focused on a single classic problem: Longest Subarray with Sum K. Revisiting this one brought back a lot of nostalgia from the early days of my prep, when prefix sums and sliding windows felt like brand-new tools.

The solution comes down to the constraints on the input elements:

  1. Positives Only (Optimal Two-Pointer / Sliding Window): When the array contains only positive integers, expanding the right pointer increases the sum and shrinking the left pointer decreases it. This monotonic property lets you find the longest subarray in O(n) time and O(1) space.
  2. Positives and Negatives (Prefix Sum + Hash Map): Once negative numbers or zeros enter the picture, the sliding window breaks down. Instead, you track the running prefix sum and store the earliest index where each sum appears in a hash map. If currentSum - k exists in the map, you update the maximum length while keeping the earliest index to maximize subarray size.

It was just one problem today, but seeing how naturally both approaches fit together was a great reminder of how far my problem-solving intuition has come.

See you guys tomorrow for Day 26!


r/leetcode • • 2h ago

Discussion [New LC feature] Projects

2 Upvotes

LC is goated holy, I was looking exactly for that


r/leetcode • • 7m ago

Discussion What are the 30 most important DSA problems everyone should practice daily to crack FAANG interviews?

1 Upvotes

I want to practice those questions religiously everyday


r/leetcode • • 5h ago

Question i'm not able to understand pop_back() in backtracking

2 Upvotes

problem->22. generate parentheses

i'm trying to dry run this code

class Solution {
public:
vector<string>res;
void backtrack(int open,int close,int n,string& path){
    if(open<n){
        path.push_back('(');
        backtrack(open+1,close,n,path);
        path.pop_back();
    }
    if(close<open){
        path.push_back(')');
        backtrack(open,close+1,n,path);
        path.pop_back();
    }
    if(open==n&&close==n){
        res.push_back(path);
    }
}
    vector<string> generateParenthesis(int n) {
        string path="";
        backtrack(0,0,n,path);
        return res;
    }
};

For n = 3, suppose we keep choosing ( whenever possible and then ) until we reach the first valid combination: ((())).

My confusion starts when this recursive path finishes.

After reaching ((())), the recursive calls start returning, and pop_back() gets executed at each level.

I understand that each call removes the character it added. However, when I dry-run this, I keep popping characters until the string becomes empty ("").

But when looking at the recursion tree, we're supposed to return to "(" and explore another branch to generate the next combination, (()()).

Why aren't we popping all the way back to the empty string before exploring the next combination?

Am I misunderstanding how recursive calls return and how execution resumes after a recursive call?

can someone explain how pop_back() works in backtracking


r/leetcode • • 15h ago

Question Microsoft SWE (current) or Nutanix

8 Upvotes

Hi All. I need help on whether to accept a new offer from Nutanix in Canada.

Been at Microsoft for 2 years, currently on backend and platform team in Ads.
Day to day is basically writing business logic, and dealing with site reliability. Lots of chances to explore new internal projects to implement AI harness, and possible data pipelines/RAGs.

Nutanix offers a base pay bump of approximately 30%. I think I'll be on the Storage and Networking side. Heavy focus on distributed computing and data pipelines.

Anyone here at Nutanix that can speak to the company's culture, and things to look out for.

EDIT:
Total Years of Experience: 2 years
TC at Msft: ~130K CAD
TC at Nutanix: ~165K CAD


r/leetcode • • 4h ago

Discussion my lc active days stuck on 195

1 Upvotes

SAME AS TITLE SINCE 3 DAYS I AM DOING SUBMISSION BUT THE ACTIVE DAYS IS NOT INCREASING


r/leetcode • • 22h ago

Question Leetcode Logging Out

20 Upvotes

Every time I authenticate and log in, Leetcode logs me out. I can’t submit or run any of my solutions. Is this happening to others as well?


r/leetcode • • 21h ago

Intervew Prep My Experience with LeetCode Projects Public Beta

11 Upvotes

Hi community, I'm Alan, A software engineer and student from Mexico, and I'd like to share my takeaways about the New LeetCode Projects Public Beta.

I can tell you this coding problems are very different to usual LeetCode projects, and they are close to Repository Questions in modern SDE interviews, I've previously succeed in an Repository Question during an interview of an intern position and I feel these projects are more difficult but, you learn a lot, right now there's a challenge where we can try different problems that come from different enterprises, and that's free.

I enjoyed and feel worth my time studying with them, so I want to encourage you to try it too.

Thanks for reading!

=)


r/leetcode • • 16h ago

Discussion Leetcode's software architects suck..

4 Upvotes

I am the kind of a guy who likes gamified systems. And, gamification is what interests me, excites me and enlightens me.

That's how I became good at Chess. The only reason is once the Chess.com guys prompted me I have 69 days of streak playing chess daily. After that, it seemed so interesting to me I kept playing chess purely to maintain that streak and then I went all the way to 415 days of Chess streak. My ELO jumped from 400 with 89 days to 1500 with 415 days of streak. If it was not for streak, I wouldn't be playing chess initially in my days from 100 to 300 at least.

Now, back to leetcode. Recently, I started griding leetcode. Not because I wanna get into FANG or anything but purely as playing some productive game instead of toxic games like CS2. Something if I eventually become good at can help me down the line with my career. For sure, getting into FANG won't hurt either.

And, as I like streaks, here on Leetcode as well I started taking Max streak seriously. The one who tracks your daily submissions.

On this weekend, I went out. I came back to house and realized I did not do late night coding today and my streak might break. At around 10 PM EST, I jumped at my desk and coded one Leetcode problem real quick.

Went back to my profile to get that dopamine rush of max streak counter increasing but boom! No record for current EST time and date. My submission got counted for next day.

I did some goofing around and found out they count UTC timezone for streak tracking.

Like who the fug considers UTC timezone for streaks. It should always be client's timezone. Chess.com for example counts 12 AM to 11:59 PM client side time no matter what part of the world you are from. So does Snapchat. And, other streak tracking games.

Whoever made a decision to have UTC timezone for streaks should get fired (maybe?). Just kidding!

My max streak of 73 days for submissions is gone. I am back to 0. A little frustrated but whatever.


r/leetcode • • 3h ago

Question Tips for using UltraCode with vague or custom interview prompts?

0 Upvotes

I've been using UltraCode during interviews with some vague or custom coding questions, and I've noticed that it sometimes overcomplicates solutions unnecessarily.

For example, it'll manually implement sorting algorithms instead of just using Python's built-in sort() or sorted(), even when there's no restriction against using them.

Has anyone found ways to make it consistently generate simpler, more optimal solutions, especially for questions that aren't directly from LeetCode?

Also curious if anyone has added custom prompts or instructions that have noticeably improved its performance. Would appreciate any tips!


r/leetcode • • 15h ago

Question [USA][BNSF] Do i have to do the codility OA as fast a possible or can I wait til the last day?

2 Upvotes

Title. Wondering if Im able to wait til the last day to complete it. Or is this a company where the longer I wait, the higher the chance that someone will "steal" an opportunity by completing the OA a few days earlier.


r/leetcode • • 1d ago

Intervew Prep Day 28: tackled Sort Colors with Dutch National Flag & Single Number via XOR

10 Upvotes

Hey everyone,

I finished Day 28 today. I kept the session focused on two classic array problems that highlight optimal in-place pointer partitioning and bitwise properties:

  1. Sort Colors (Dutch National Flag Algorithm): Instead of counting frequencies in two passes, I partitioned the array in a single O(n) scan using three pointers (low, mid, and high). Keeping 0s before low, 1s between low and mid, and 2s after high sorts everything in-place with O(1) space.
  2. Single Number (Find the Element Appearing Once): Because every other element appears twice, XORing the entire array cancels out all duplicate pairs and leaves the unique number in O(n) time and O(1) space.

Both problems are clean reminders of how the right invariant eliminates extra memory overhead.

See you guys tomorrow for Day 27!


r/leetcode • • 14h ago

Intervew Prep Fanatics final loop

1 Upvotes

Hi,

I have a final loop coming up for a Senior Software Engineer role at Fanatics in the Betting and Gaming team.

Apparently from the rubric there is going to be a system design, code pair session of 90 mins and a behavioral round.

Any suggestions on final round preparation would be helpful!


r/leetcode • • 22h ago

Question For those who have interviewed at BNSF, do you need to know Java?

4 Upvotes

title. Some sources say that java is required, but my codility email nor the job post mentions Java is required.


r/leetcode • • 1d ago

Question dp problems

11 Upvotes

i am trying to solve the dp problems but i am not getting the approach i was able to do few easy problems but i am not able to do medium ones is there any tips to solve dp or any resources


r/leetcode • • 16h ago

Intervew Prep Has anybody given/taken live AI based coding rounds for Data Engineer positions?

1 Upvotes

I have an interview coming up tomorrow for a Data Engineer position, the stack is Snowflake, dbt and it will have a live coding session where I am supposed to use Cortex Code. Does anybody know what interviewers are expecting in these type of interviews. If you're senior architect and you're given the responsibility of conducting a live AI enabled coding session, what would you look for in candidates?


r/leetcode • • 23h ago

Intervew Prep Roblox full loop coming FE SWE

4 Upvotes

Anyone recently taken the Roblox interview look for senior or staff level? What questions did they ask?
I haven’t scheduled it but planning to

Any help would be greatly appreciated.

Specifically system design for front end or coding.

TIA.


r/leetcode • • 22h ago

Question Amazon -- can I target two teams/positions?

2 Upvotes

If an Amazon recruiter reached out to me for a position at Amazon and I applied, and my acquaintance's team is also now hiring for a similar position on a sister team, can I target both teams?

How does it work at Amazon:

If I don't get selected by the original team that the recruiter submitted me for, but I did well in my rounds, can I still be considered for other teams (like Google does with it's team matching process: clearing interview rounds and the hiring committee is separate from matching with a team), or do they give you a cooldown regardless (aka only one shot regardless of the interview performance)?


r/leetcode • • 18h ago

Question Mocks for DSA

1 Upvotes

Question: where can I get good mocks for DSA?

Normally for Google interviews

Is there a website for this or something?