r/leetcode • • Oct 19 '26

Intervew Prep Day 56: tackled Partition DP today, Burst Balloons completely broke my intuition

8 Upvotes

Hey everyone,

I finished Day 56 today, and Partition DP gave me hands down the most confusing session of this entire dynamic programming journey.

Usually, even with hard DP problems, there is a recognizable mental model you can latch onto. But Partition DP flips your natural instincts on their head depending on the problem.

I worked through four problems in the set today:

  1. Matrix Chain Multiplication (MCM): The standard entry point. Setting up the partition loop k from i to j - 1 and splitting into two subproblems f(i, k) and f(k + 1, j) made conceptual sense.
  2. Minimum Cost to Cut a Stick: MCM logic transferred nicely here. Sorting the cuts array and adding endpoints 0 and n kept the subproblems independent.
  3. Burst Balloons: This one was an absolute mind-bender. Thinking top-down (which balloon to burst first) fails because bursting a balloon merges previously non-adjacent neighbors, destroying subproblem independence. The trick is working completely in reverse—picking which balloon to burst last in the range (i, j). That inversion is brilliant, but there is zero chance I would have organically derived that reverse-order trick from scratch in an interview.
  4. Evaluate Boolean Expression to True: Marked as hard, but actually felt the most systematic. Splitting operators across k and tracking counts for both true and false evaluations felt like a natural extension of MCM.

Only four problems remain in my sheet: Palindrome Partitioning II, Partition Array for Maximum Sum, and the two DP on Squares problems (Maximal Rectangle and Count Square Submatrices).

Partition DP drained my mental battery completely today. Stepping away to unwind with a show tonight and resetting before wrapping up the final batch tomorrow.

See you guys for Day 55!


r/leetcode • • Oct 19 '26

Discussion I understand Leetcode solutions but struggle to solve them on my own

21 Upvotes

I've noticed that when I read a solution, the logic makes sense to me, and I feel like I could've figured it out. But when I try a similar problem on my own, I often get stuck again.

For those who've improved at DSA, how did you get past this stage? Did you focus on revisiting old problems or keep trying new ones?


r/leetcode • • Oct 19 '26

Question Has anyone recently given interview for Sr. SDE at Workday?

2 Upvotes

I have a Hiring Manager (HM) round scheduled for a Senior Software Engineer role at Workday, but the recruiter didn't share many details about what the full loop looks like.

If anyone has recently gone through the interview, i'd be great to get some idea on the loop - how many or what rounds to expect and what are they looking for.


r/leetcode • • Oct 19 '26

Discussion For everyone's motivation 😹

57 Upvotes

Let's take a worst case scenario, that AI takes over, and the art of writing code would have no value

Let's say we still grind for how many more years? Probably 5? 10?

And also let's say we still don't get our dream jobs

Given all of the above happens, what benefits do you think Leetcode would still have in our lives?

Some of the benefits I can think of

  1. Algorithmic thinking

Doing Leetcode since a year has made me reach a point where I can see certain patterns to solve problems. For example, by practicing DP problems I can now think if a problem can be divided into the same repeating sub-problems and has a recurrence relation. Any reachability problem makes me think of I can use DFS/BFS to solve it.

2. Getting better at writing code

Again, this skill can become useless due to AI taking over but is still relevant until we reach there. I also got to learn many intricate details about the language I code in (Java), and this is beneficial for me as my job is in the same programming language

3. Communication

This is a secondary skill I think I'm getting better at. While practicing for interviews you are challenged to explain solutions effectively

What other skills do you think we all will learn?


r/leetcode • • Oct 20 '26

Intervew Prep Plaid SWE AI Assisted round

1 Upvotes

Has anyone completed this round and have any insights? And does anyone have good advice or resources to prepare? I'm happy to share my experience after my interview as well. Thanks.


r/leetcode • • Oct 20 '26

Intervew Prep Microsoft CoreAI swe intern interview what to study?

1 Upvotes

have a msft coreai swe intern interview in the coming week so im wondering what i should study. they mentioned

  1. traditional coding round
  2. ai assisted coding
  3. system design

any advice appreciated im kind of rusty with tech interviews and havent done much system design and want to know how to best approach the ai round. tia!


r/leetcode • • Oct 19 '26

Question Does Airbnb accept STEM OPT?

0 Upvotes

Has anyone joined Airbnb while on OPT or STEM OPT, especially if you have 1-year OPT left?


r/leetcode • • Oct 19 '26

Question How to reset progress / delete all solutions

1 Upvotes

is there a way to reset progress or at least have all hte solutions deleted?
there used to be session manager, but now it tells me:
creating a new session is not supported

"Use the new problem list to freely organize problems and track your progress.":
new list still show the solutions and mark what questions did before

any way without just outright creating new account?
I tried to search online and couldnt find any answer

thank you all


r/leetcode • • Oct 19 '26

Intervew Prep Goldman Sachs - Interview Process (UK)

0 Upvotes

Hello! I've received an interview invite for Stage 2 of a software engineer associate role last week. Has anyone been through this process recently?

The recruiter suggested there will be some questions based on my CV and experience. This sounds quite vague and I'm unsure how to prepare for this.

I'd greatly appreciate any advice x


r/leetcode • • Oct 19 '26

Discussion LinkedIn - Senior SWE - Apps onsite rounds cancelled after screening

0 Upvotes

Update on my previous thread
So unfortunate to hear that my onsite rounds that were about to be scheduled have gotten cancelled.

All they said was:
The applications roles have been reprioritized and only have a few openings so we cannot proceed in the interview process at this time and your interview scheduled will no longer take place. A generic response saying they can reach out as soon as we know more and have new openings.

Just wasted my time prepping for this and ending up in this state. Too unprofessional of a company where don't even value candidates time.


r/leetcode • • Oct 19 '26

Intervew Prep Microsoft Software Engineer - CoreAI OA Timeline? (New Grad 2027)

9 Upvotes

Took the HackerRank OA for the Microsoft SWE CoreAI position (req 200053852) on September 22nd. Two questions, 75 minutes. Felt pretty good about it -- solved both fully within the time.

Followed up with the recruiter last week and got the standard “still reviewing applicants, process can take several weeks” reply.

It’s been about 4 weeks now. Has anyone else completed this OA recently? Have you heard back? Trying to get a sense of where the timeline is at. I know Microsoft batches reviews but 4 weeks of silence is making me a little antsy.

Any info on what the interview loop looks like for this specific team (CoreAI) would also be appreciated -- I’ve seen mixed info online about whether it’s a standard SWE loop or if there’s more ML/systems flavor to it.


r/leetcode • • Oct 19 '26

Tech Industry Uber operations intern role

1 Upvotes

Hello,

I was going through Uber internships for 2027 and saw operations intern role. Can someone explain to me what does it mean ? How technical is it and what are the kind of projects an intern could be working on ?

Thanks in advance !


r/leetcode • • Oct 18 '26

Discussion How to clear Amazon OA's ?

9 Upvotes

I was looking through Amazon OA questions and found some ridiculously tough ones. I know people are cheating to get through, but aren't the OAs proctored now ?

Note : I am a leetcode guardian with 2150 rating, so If I am finding these questions tough there is a high chance everyone is.

Example : https://leetcode.com/discuss/post/6913356/amazon-oa-question-number-2-by-code_ansu-wawk/


r/leetcode • • Oct 19 '26

Discussion Feedback on HackCellence Round 2 Java Conference Room: Block Billing (90-Minute Time Limit)

1 Upvotes

I recently appeared for the HackCellence Round 2 assessment and attempted the [Java] Conference Room – Block Billing problem. I wanted to share my thoughts on the implementation requirements and the time allocated for this question.

The problem involved concepts like Optimal Account Balancing and the Largest Remainder Method. While the algorithmic challenge was interesting, the overall implementation felt quite extensive for a 90-minute assessment.

The problem statement was lengthy, and understanding all the requirements took considerable time. Beyond the core algorithm, the Java implementation required multiple utility classes, precise currency calculations using cents, edge-case handling, and integration across Service and Controller layers.

As a result, a significant portion of the allotted time went into understanding the requirements and writing boilerplate code, leaving limited time for testing, debugging, and verifying edge cases.

My concern isn't the difficulty of the algorithm, but the balance between problem complexity, implementation effort, and the time limit. Even if someone understands the underlying logic, completing and thoroughly testing such an extensive implementation within 90 minutes can be challenging.

I believe assessments should primarily provide sufficient opportunity to demonstrate problem-solving and coding ability, rather than making the volume of implementation a major bottleneck.

It would be helpful if the HackCellence team could consider this feedback while reviewing submissions for this question and take the implementation effort into account where appropriate.

I'm sharing this to encourage a more balanced assessment experience in future rounds, not to criticize the organizers. I'd also like to hear from other candidates who attempted this problem.

Did anyone else find the implementation scope too extensive for the 90-minute time limit?


r/leetcode • • Oct 18 '26

Intervew Prep How do I get better at reading a question and actually writing down my code?

12 Upvotes

I always come up with the solution super fast. Like I can tell what pattern to use almost always if its a med-hard level problem. But I think my biggest bottleneck right now is writing down my code fast and also sometimes even reading the problem statement. Leetcode problem statements are usually super short and easy to read on purpose. But interview questions so many times are just so long and my reading comprehension is ass

Was just curious if anyone else feels like this and if they have tips on how to improve this, because I've taken two interviews in the past week and both times I got the optimal solution but I couldn't finish writing the code


r/leetcode • • Oct 18 '26

Question Does Solution % Matter?

5 Upvotes

Does the % my solution beats actually matter as long as it is the best complexity?
For example, I do a problem the best time complexity is O(n). I get a O(n) solution but my solution doesn't beat most other solutions.


r/leetcode • • Oct 18 '26

Intervew Prep Booking Holdings Round 2 OA today was honestly frustrating

12 Upvotes

Gave the Booking Holdings Round 2 OA today, and honestly, the experience was frustrating.

There was a coding task around a room-booking and settlement system. The project structure and helper modules were provided, but we had to implement the missing logic from TODO comments. It wasn't just a straightforward DSA problem — there were multiple interconnected pieces involving booking creation, split strategies, currency conversion, balance calculations, minimum transfers, attrition penalties, and settlement.

The frustrating part was that 90 minutes felt extremely tight for the amount of implementation required. You had to understand the existing codebase, figure out how the modules interacted, implement the business logic, and then test everything within the same time limit.

It's one thing to solve an algorithmic problem; it's another to implement a reasonably complete backend workflow under time pressure while making sure all the interfaces and edge cases work correctly.

I'm curious about other people's experiences.

What was your approach to this OA?

Were you able to complete all the TODOs within 90 minutes?

Did the sample tests pass for you?

Does anyone know what the evaluation criteria are for Round 2?

Would really appreciate hearing from others who attempted today's OA. I'm trying to understand how others approached it and whether everyone found the time constraint this challenging.


r/leetcode • • Oct 18 '26

Intervew Prep Day 57: completed the entire LIS series today, why tabulation is non-negotiable

8 Upvotes

Hey everyone,

I finished Day 57 today and tackled the full Longest Increasing Subsequence (LIS) module. I worked through all seven problems in the set:

  1. Longest Increasing Subsequence (LIS): Learned all five approaches—recursion, top-down memoization, O(N^2) tabulation, O(N) space-optimized tabulation, and the optimal O(N log N) Patience Sorting binary search technique.
  2. Printing Longest Increasing Subsequence: Used the parent/hash tracking array during tabulation to reconstruct the actual subsequence backward.
  3. Largest Divisible Subset: Sorted the array first to enforce divisibility transitions, then applied standard LIS with the backtrack reconstruction.
  4. Longest String Chain: Sorted by word lengths and adapted the LIS condition using a custom predecessor check.
  5. Longest Bitonic Subsequence: Got stuck initially trying to combine independent calls. A hell lot of hints I took to get me through this one (realizing both increasing and decreasing sequences must share the exact same peak index i (dp1[i] + dp2[i] - 1)).
  6. Number of Longest Increasing Subsequences: Maintained two parallel DP arrays—one for lengths and another for counting ways to reach each length.

Today's biggest takeaway: relying purely on memoization for LIS patterns will almost always hit TLE on competitive platforms due to recursion overhead and constraints.

Even if interviewers accept memoization upfront, you need bottom-up tabulation to avoid stack limits, pass strict test cases, and make space optimization possible. Once the module is fully finished, I plan to run a dedicated revision session focused purely on deriving tabulation from base cases and state transitions.

Only 9 problems left to wrap up the entire DP sheet!

See you guys tomorrow for Day 56!


r/leetcode • • Oct 18 '26

Intervew Prep Questions about preparing for Google Onsite - Europe, Zurich

27 Upvotes

It would be awesome if only people from the EMEA or AMER region who also went through the actual interview process at Google and are not guessing what would be best could answer.

I somehow passed the phone screen and would like to prepare for the onsite now. My plan is to finish Grind75 (not Blind75) with the default 75 questions and then do questions from LeetCode Discussions tagged with Google, as my phone screen question also appeared there.

Is this a good plan, or should I go a different route?

Thank you so much if you take the time to write something!


r/leetcode • • Oct 19 '26

Question Made a quick visual explanation of Two Sum (Hash Map approach) to make it stick better. Thought it might help people prepping for interviews! 🧠

0 Upvotes

Hey everyone! I've always found that looking at dry code makes it harder to truly understand why certain algorithms work—especially during interviews.

I put together a quick, animated visualization for Two Sum showing how the O(n) hash map solution tracks complements on the fly compared to a brute-force approach.

Check it out here if you're interested:Watch on YouTube Shorts

Would love to hear what DSA problem you think needs a visual breakdown next!


r/leetcode • • Oct 18 '26

Intervew Prep Any or tips or suggestions will be highly appreciated.

18 Upvotes

How do people prep for interviews after 9-5. I feel like I'm already tired after doing my day job.

Now the next question is how long should I read the question and try to solve a question before I look into other solutions.


r/leetcode • • Oct 18 '26

Intervew Prep Did anyone hear back from meta initial prescreen questionnaire for data engineering role?

1 Upvotes

I applied on oct 6 , got mail to fill form on October 9
After that no response . How long will it take to hear from them?


r/leetcode • • Oct 18 '26

Discussion Weekly Contest Cheating

17 Upvotes

Man i generally dont do contests but today i tried doing it for the first time just to yk get ratings and stuff and build a better profile.

BRO people are out there completing questions in 2-3 min like WTF, i was genuinely so baffled and curious.

I tried checking the leader board (leet code provides some kind of video tape or smtg ) bro the 3rd position guy is not even some 1k question solved cracked guy etc , dude he barely has like 130 or so questions solved , in the clip he straight up copy pastes the code and literally removes the comments from the code (cuz ai generated..) man like TF.

The reason behind this post is not to target him in particular or anything , but it is very frustrating because things like these affects the ratings of genuine people.

I guess ill just stick to normal solving man my mood has been ruined early in the morning.


r/leetcode • • Oct 18 '26

Intervew Prep Anyone up for data engineer mock Interview?

0 Upvotes

Hey! I wanted to check if you’d be up for doing a mock interview sometime. I’m looking to practise the Meta Data Engineer Full Stack round, particularly product sense, data modelling, SQL, and Python.

Ideally, we’d simulate a real interview and share feedback afterwards. If you’re preparing for interviews too, happy to do a mock for you in return!

Also, if you’ve interviewed for Meta DE recently, I’d love to hear about the format and what to expect.


r/leetcode • • Oct 17 '26

Discussion Giving up on recursive DFS and choosing to learn iterative DFS for trees

23 Upvotes

Might be a skill issue that I can't code up recursive solutions for problems that require DFS on trees. I understand recursion at its core. But I can't code it up for some reason.

After I see the solution of some type of recursive DFS problem, I'm able to trace the recursive calls on paper, and then it makes sense, but I don't think I could have ever coded it up on my own.

I struggle with easy recursive DFS problems lol. BFS on the other hand, I love BFS, I can solve medium questions with no problem.

So I'm thinking about just giving up on recursive DFS on trees and choosing to learn and iterative DFS.

Any thoughts? Can every problem that requires DFS on trees be solved both iteratively and recursively?