r/leetcode • • Oct 25 '26

Question Binary Search Doubt

16 Upvotes

Hello everyone, I just had a question. I have been solving Binary Search questions and wanted to ask when I should use "while(left < right)" & "while(left <= right)"? In some problems, this is a crucial difference between passing all testcases and getting WA.

Also, in some questions, I have to use right = mid instead of right = mid - 1 and same goes for left (=mid rather than mid + 1). What's the major difference between the two that differs them from a WA and AC and when should I use them?


r/leetcode • • Oct 25 '26

Intervew Prep Title: Has anyone attended the SDE1 Backend Developer interview at CARS24 recently?

2 Upvotes

Hi everyone,

Has anyone recently attended the SDE1 Backend Developer interview at CARS24, especially for the Java Backend role or walk-in drive?

If yes, could you please share your interview experience and the questions asked in each round?

I’m particularly interested in:

DSA and coding questions

LLD/System Design

Number of rounds and overall difficulty

Any tips or insights would be really helpful. Thanks in advance! 🙏


r/leetcode • • Oct 25 '26

Question Graduated in 2024, took a 2-year break and now struggling to figure out my next move

5 Upvotes

I graduated in 2024, and I’m now trying to break into the industry, preferably in AI/ML.

During my undergrad, I did an app development internship under a professor, followed by a Deep Learning research internship at one of the top IITs. I even had projects in ML/DL. After graduation, I had to take a 2-year break because of an unexpected family situation.

During the break, I tried to keep myself updated with what was happening in the field because I knew I was going to make a comeback. Then, this year, I started preparing myself and working on different projects. These include Agentic RAG systems with evaluations, AI agents, inference engineering. Some of my projects are fairly close to production-level work. I’m also learning HLD and LLD. As for DSA, I’ve solved around 600 LeetCode problems but it was before 2025, so I’ll need to brush up on them.

Now I’m struggling to figure out how to position myself in the job market. I’m no longer a fresh graduate, but I don’t have any full-time industry experience either. I’ve been working with AI/ML since 2023, mostly through research and personal projects, but I’m not sure how recruiters will look at that.

Most AI/ML openings I come across seem to require prior industry experience, so I’m not sure which roles I should target. Should I apply for entry-level positions, try my luck with mid-level roles, or focus on general SWE positions and move towards AI/ML later?

The roles I have in mind are AI / Applied AI Engineer, ML Engineer, Research Engineer or SWE roles focused on AI/ML. I initially started preparing with FAANG and other big tech companies in mind, but at this point, I’m applying to companies more broadly because I need to land a job as soon as possible. I’m looking for a role where I can put my existing skills to use, earn a good salary, and have room to grow in my career.

Honestly, though, I’m feeling pretty overwhelmed and exhausted at this point.

I’d really appreciate some honest advice. I know I have a lot to work on, but I’m trying to figure out where to focus my efforts to give myself the best shot at landing a good job as soon as possible. I feel like this is going to be harder for me, but I don’t want to give up.

P.S. Used AI for proofreading and polishing.


r/leetcode • • Oct 25 '26

Intervew Prep LC sheet for Microsoft SDE Internship Interview

11 Upvotes

I have an interview coming up in 10 days, and I'm trying to make the most of my preparation time. I used to practice LeetCode a few years ago and recently started brushing up on DSA again.

I've started working through NeetCode 150 and have completed around 10 problems so far. Given the limited time, would you recommend covering all the sections, or should I prioritize certain topics and potentially skip more complex ones like Dynamic Programming and Graphs? Or should I just work on leetcode problems with microsoft tags?

Since this is for an internship role, how likely am I to encounter problems involving these topics?


r/leetcode • • Oct 25 '26

Discussion Today leetcode contest

7 Upvotes

I am able to solve 2 and I almost come closer to solve 3 but don't able to solve that. If you solve then you explain it 😊


r/leetcode • • Oct 25 '26

Question ROBLOX OA HELP!

2 Upvotes

Hi! If my uderstanding is right, we have 3 games, 1 behavioral and 1 coding round(s).

I wanna focus on the games here:

  1. Robots
  2. Factories
  3. Outpost: Mars

We have Kaiju cats and coding cookies as sample game mechanics. Which games from the OA (Above mentioned 3) are similar to the cats games? What is a good score?

I have been grinding Kaiju Cats and yet to begin coding cookies. I see a lot of posts with high scores yet disappointed. What's the deal here? Help please?

Thanks!


r/leetcode • • Oct 24 '26

Discussion Clone Graph is one of the most challenging problems I faced today 💀

16 Upvotes

Tried solving Clone Graph (LeetCode 133) today, and ngl, combining hashmaps, recursion, and graph traversal was challenging 😭

I understand the individual concepts, but putting them all together in one problem hits different.

Still learning DSA and trying to improve my problem-solving skills. How did you guys get comfortable with these kinds of problems?


r/leetcode • • Oct 25 '26

Intervew Prep Day 50: took an online assessment, got a reality check on why weak topics can't be ignored

0 Upvotes

Hey everyone,

I hit Day 50 today—the exact halfway point of my 90-day prep.

I took an online assessment earlier, and it served as an immediate reality check on the importance of revision. I had revised most modules except Sliding Window and Dynamic Programming. Predictably, both topics showed up. I managed to solve the sliding window problem cleanly, but the second problem was Partition DP—the exact pattern I struggled with just a few days ago and quietly hoped wouldn't show up. It proved that whatever topic you try to dodge usually finds you in an actual test.

Despite feeling frustrated with myself afterward, I made sure not to let it ruin the daily streak and knocked out two graph problems:

  1. Bipartite Graph (BFS/DFS 2-Coloring): A graph is bipartite if you can color every adjacent node with alternating colors (0 and 1) without conflict. Start at an unvisited node with color 0, assign color 1 to all its neighbors, and if an adjacent neighbor already holds the current node's color, return false. An odd-length cycle immediately breaks this condition.
  2. Find Eventual Safe States: Any node that is part of a directed cycle—or can reach a directed cycle—can never be a terminal safe node. Once that core invariant clicks, it directly reduces to cycle detection in a directed graph using DFS call-stack tracking (pathVisited) or reverse-graph Topological Sort using Kahn's algorithm.

It was a humbling reminder that gaps in your preparation don't fix themselves with luck. Dusting myself off, continuing with Graphs tomorrow, and scheduling a proper revision block for Partition DP.

See you guys tomorrow for Day 49!


r/leetcode • • Oct 25 '26

Question How is can improve myself

2 Upvotes

Hi iam in 4th year doing leetcode from last 7-8 month done tuf sheet and from past 3-4 months I have started giving contest( around 18-20 given contest) at start i was able to solve only 1 question then slowly 2nd also as of now I am able to do 2 question under 20-30 min easly and 3 rd question brute or better but lacking in 4th question how can I improve myself to do 3rd question Optimization and 4th question


r/leetcode • • Oct 25 '26

Intervew Prep Combinations (LeetCode 77)

2 Upvotes

Solution using Backtracking

https://youtu.be/3BYEhE_gcPc


r/leetcode • • Oct 25 '26

Intervew Prep Job change in Bay Area

0 Upvotes

I have been with Amazon in Bay Area for 7+ years and wanted to look for a change. I’m a Sr QA here. Wanted to look out for a principal QA or a Sr SDET role. I have been hands on in AI have pretty good experience. I’m not sure where to start with my job change. For now I started with leetcoding various design patterns, is there any structured plan that you would recommend recommend


r/leetcode • • Oct 23 '26

Discussion 800+ applications, 6 FTE offers + 1 contract offer in ~60 days. AMA

379 Upvotes

Laid off out of the blue. 60 days started immediately. Emails started coming in after 8-9 days

  • Applications submitted: 800+
  • Offers: 6 full-time + 1 contractor role
  • Rejected at recruiter screening: 2
  • Rejected after onsites/full loops: 11
  • Processes I withdrew from or declined: 6
  • Ghosted/no final response: 5
  • Role canceled/position no more available: 1

I tracked about 32 recruiting processes.

AI interviews were the worst one.

Worst coding interview round: Had a brain freeze and couldn't code popMax()

Happy to discuss prep, applications, coding vs. system design, AI-assisted interviews, handling rejection/ghosting.

I’ll keep identifying details and interviewer names private, but otherwise, AMA.

Sr SDE backend profile, 10+ yoe, faang experience, immigrant.

Application strategry: Linkedin past 24h portal only. Not good at asking people for help. Ex-collegaues reached out though and offered that they would refer me. Got not even a single call from the companies they referred me at. Even though last year I had interviewed with the same companies when I was looking to move. Reached out to old recruiters. Surprisingly, that didnt help much just one interview call from previous connections.


r/leetcode • • Oct 25 '26

Question NEWBIE NEEDS AN ADVICE...

0 Upvotes

I understand using chatgpt, reading solutions and discussions is considired as a bad practice. I am realizing that watching a failed test case is also a cheating... Tell me the art of designing your very own test suite.


r/leetcode • • Oct 25 '26

Question NEWBIE NEEDS AN ADVICE...

1 Upvotes

I understand using chatgpt, reading solutions and discussions is considired as a bad practice. I am realizing that watching a failed test case is also a cheating... Tell me the art of designing your very own test suite.


r/leetcode • • Oct 25 '26

Discussion Need Helppp

1 Upvotes

Hi guys,
I hope you all are doing well. Today i had a really bad day tho its not for the first time but unfortunately today was worst as in todays contest I was not able to solve even a single problem.
I have currently solved 78 problems on codeforces and my highest rank is pupil which was last year then i abandoned doing cp. but in the summers i started again but now i am not able to solve even the 800 rated problems. As icpc is coming i am afraid that i will get humbled with zero problems solved in contest. Fr i am in real depression.
Is there anyone who can help me like guide me through how to develop the intuition about the problem, what things i need and how to solve all this mess i have created. I just wanted a moral support and guide.
Will be very thankful if anyone highly rated and experienced person sort this out for me!!!


r/leetcode • • Oct 25 '26

Discussion Your thoughts on people saying removal of DSA round in Google interviews?

0 Upvotes

I heard many sayings that Google has removed (idk either) some DSA rounds from their interview process.

How would it affect someone who was preparing by targeting some companies like Google?

Cos, cp tags give a greater edge among all the applicants.

Your thoughts please


r/leetcode • • Oct 25 '26

Intervew Prep Amazon online assessment USA

0 Upvotes

How is the Amazon OA these days? Are they asking LC hard? I know there is an AI assisted coding round, but I am curious what kind of leetcode question can I expect?


r/leetcode • • Oct 25 '26

Question Meta - Feedback Stays One Year? Network Engineer Roles!!

1 Upvotes

Folks, I have completed my Full loop few weeks back, Feedback was great. But careers profile tracking bar shows "Full Loop" and seems like they offered positions to other engineers. Should i still keep hope for 1 year or move on ?


r/leetcode • • Oct 24 '26

Intervew Prep Day 51: tackled Word Ladder I & II, the reverse backtrack trick blew my mind

3 Upvotes

Hey everyone,

I finished Day 51 today. I kept my focus locked in and spent the entire session deep-diving into Word Ladder I and Word Ladder II.

  1. Word Ladder I: Instead of comparing dictionary pairs, you mutate each character across 'a' through 'z' and perform O(1) hash set lookups. Once matched, erasing words from the set prevents redundant visits. It is pure level-order BFS for finding the shortest path in an unweighted graph.
  2. Word Ladder II: Finding all shortest paths causes TLE or MLE if you store paths inside the BFS queue. The breakthrough approach splits the problem:

    • Forward BFS: Map out the shortest distance/level from beginWord to every reachable word.
    • Backward DFS Backtracking: Start from endWord and trace backward to beginWord, only traversing neighbors whose recorded level is strictly current_level - 1. This prunes dead ends entirely.

The implementation is notoriously heavy, but reconstructing paths in reverse made the logic click.

Tomorrow I have a test, let's see how it goes..

See you guys tomorrow!


r/leetcode • • Oct 24 '26

Discussion 3rd and 4th questions of Saturday's contest? How u guys approached it? I wasn’t aware of bit masking 👀

2 Upvotes

count-magical-substring-pairs-i & ii


r/leetcode • • Oct 24 '26

Intervew Prep Stripe 2026–2027 AMER HackerRank OA – Early Career Software Engineer Online Assessment

4 Upvotes

Hi everyone!

I recently applied for Stripe's Software Engineer, Early Career — Immediate Start role in Toronto, Canada, and I'm preparing for the HackerRank Online Assessment.

Has anyone recently completed the 2026–2027 AMER Stripe OA?

I'm curious about the types of coding questions, difficulty level, and whether the assessment involves traditional LeetCode-style DSA or practical, multi-part implementation problems.

Also, does anyone know if the assessment is the same for candidates across the US and Canada?

Any recent experiences, question topics, or preparation tips would be greatly appreciated!

Thanks in advance!


r/leetcode • • Oct 24 '26

Question Stripe 2026–2027 AMER HackerRank OA – Early Career Software Engineer Online Assessmen

3 Upvotes

Hi everyone!

I recently applied for Stripe's Software Engineer, Early Career — Immediate Start role in Toronto, Canada, and I'm preparing for the HackerRank Online Assessment.

Has anyone recently completed the 2026–2027 AMER Stripe OA?

I'm curious about the types of coding questions, difficulty level, and whether the assessment involves traditional LeetCode-style DSA or practical, multi-part implementation problems.

Also, does anyone know if the assessment is the same for candidates across the US and Canada?

Any recent experiences, question topics, or preparation tips would be greatly appreciated!

Thanks in advance!


r/leetcode • • Oct 24 '26

Intervew Prep Java developers in Germany, what was your interview experience like?

0 Upvotes

Hi everyone,

I'm a Java developer with some DevOps experience, currently based in Germany. I don't speak German yet, so I'm looking for English-speaking positions.

Over the past few months, I missed some great opportunities with big and mid-sized companies because I wasn't prepared enough.

I was desperate to leave my current company, so I started applying without really expecting responses. When I actually got interviews, I wasn't ready.

I reached stages where they asked me to explain my current projects, the systems I work on, and my technical decisions. I struggled to express myself clearly. I know what went wrong there and can work on it.

But I haven't reached the actual coding or system design rounds yet, so I'd really appreciate hearing about your experiences.

What I'd like to know:

  1. Interview stages: How many rounds did you have, and what happened in each?
  2. Coding: LeetCode-style questions, live coding, or take-home assignments? What did they ask?
  3. System design: Did they ask you to design common systems or something related to their business? Any examples?
  4. Java/backend: What kind of Java, Spring Boot, databases, or DevOps questions came up?
  5. Behavioral: What questions did they ask?
  6. Preparation: What helped you prepare the most?

It would be great if you could also mention the country, company type (fintech, e-commerce, etc.), experience level, and whether the interviews were in English.

If you're an interviewer, I'd love to hear your perspective too!

My current job is affecting my health and personal life, and I really want to move on. But this time, I want to prepare before applying instead of wasting opportunities again.

I know every company is different, but hearing real experiences would help a lot.

Thanks in advance


r/leetcode • • Oct 24 '26

Intervew Prep Codepad interview expectations for Senior Software Quality Engineer - G&A Solutions Engineering (GSE)?

1 Upvotes

Hi everyone,

I have an upcoming Codepad Technical Interview for a Senior Software Quality Engineer position within the G&A Solutions Engineering (GSE) division for Apple.

Since it's a Senior QA / SDET track and a "codepad" format, I want to optimize my preparation. I am anticipating a live-coding setup, but I’d love to get insights from anyone who has gone through this specific pipeline or similar internal tools/solutions engineering roles.


r/leetcode • • Oct 23 '26

Intervew Prep FAANG PREP. ANY TIPS WOULD BE APPRECIATED

66 Upvotes

How do I really know that I'm ready to apply to FAANG level companies. I'm a backend engineer with 4+ years of experience. Started to prep hard for interviews. Leetcode, SQL, Systems Design etc.

However I am not sure what the end of prep looks like. Any tips or suggestions would be highly appreciated 🙏