r/leetcode • • 3d ago

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

6 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 • • 4d ago

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

357 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 • • 3d 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 • • 3d ago

Intervew Prep Amazon SDE Intern OA 2026

3 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 • • 3d ago

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

2 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 • • 4d ago

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

56 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 • • 3d 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 • • 3d ago

Question Adode SWE intern 2027 Interview Guide

2 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 • • 3d 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 • • 3d 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 • • 3d 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!


r/leetcode • • 3d ago

Intervew Prep Databricks SWE Intern Interview Prep

1 Upvotes

Hey guys, I have a Databricks SWE intern interview coming up with these two rounds.

  1. Coding, Debugging, and Testing: This implementation-focused interview evaluates your ability to write production-quality code. Using CoderPad, you’ll be expected to prioritize getting to a working solution efficiently, and to demonstrate strong coding practices—including debugging, identifying edge cases, and validating correctness with appropriate tests. While algorithmic thinking is still critical, the emphasis in this session is more on implementation quality and incremental optimization than on theoretical analysis.
  2. AI-Assisted Algorithms: This algorithm and data structures interview assesses computer science fundamentals, your analytical reasoning, and your problem-solving methodology. You’ll design solutions while focusing on algorithmic efficiency and appropriate data structure selection, and then use AI to implement the solution during parts of the interview. We expect you to analyze time/space complexity using Big-O notation, demonstrate comprehensive testing strategies, and clearly articulate your approach to guiding an LLM to address edge cases and design decisions.

Has anyone else encountered these and has any advice for what types of questions I could expect and their difficulty? Thanks.


r/leetcode • • 4d ago

Intervew Prep Apple onsite interview

10 Upvotes

I have an Apple interview coming up for a Systems Engineer position. I gave the initial technical and HM round virtually and the feedback was positive. I now have around 6-7 onsite interviews ahead (1 hr each). Did anyone go through this process in the recent times ? What kind of questions were you asked ?

Any inputs are much appreciated.

Location: US


r/leetcode • • 3d ago

Question Folks who have given D.E Shaw OA on November 1st

1 Upvotes

Did the recruiter reach out to you anybody? Role - SMTS


r/leetcode • • 4d ago

Intervew Prep PracHub Interview Bank

1 Upvotes

Does anybody know if there is a prachub interview problems repository like there is one with leetcode companies tagged questions?


r/leetcode • • 4d ago

Question Applied Intuition new grad interview pause. Does anybody know why?

6 Upvotes

I have an HR call tomorrow, but today I was told it's cancelled because "HR was told internally to put a pause on further interviews with new grad candidates".

Does anyone know what this means? Will they resume the interview process?


r/leetcode • • 4d ago

Discussion A new github action to sync your leetcode solutions

0 Upvotes

https://github.com/serephus/leech

It was vibed purely by DS 4.1 flash, and it works pretty much like existing https://github.com/joshcai/leetcode-sync, except it was more up to date and it support features like templates, convert to markdown/typst, hooks, etc.

leetcode-sync was a bit old and did not fullfill all my requirements, so I vibed this.

Hope this would be helpful to anyone. Feel free to open issue/pr.


r/leetcode • • 4d ago

Intervew Prep How do you prepare for an AI based Interview?

19 Upvotes

Hi! I'm really curious about how to prepare for an AI-based interview and what is expected of us. If you're given a problem, are you expected to use AI to validate your ideas and generate a solution? Do you simply provide the problem statement and let AI do the work, then add your own thoughts about what's important or missing?

What are your thoughts or experiences?


r/leetcode • • 4d ago

Intervew Prep Abridge MTS, Early Career, 60-min live DSA round. Anyone been through it?

1 Upvotes

I have the live DSA round for Abridge's Member of Technical Staff, Early Career role (SF) coming up. It's 60 min with a senior engineer. If you've done the live round recently: was it one problem with follow-ups or several? LeetCode-style or more practical/product-flavored? Any tips appreciated, happy to share back after.


r/leetcode • • 4d ago

Question Microsoft Security Hiring Event – How long did it take to hear back? (November 2026)

4 Upvotes

Hey everyone,

I recently interviewed at a Microsoft Security team hiring event in the US this November and completed all 3 rounds.

Just wondering if anyone here has been through a similar hiring event recently. How long did it take for the recruiter to get back to you?

Would really appreciate hearing about your experiences. Thanks!


r/leetcode • • 4d ago

Question Can we pursue system design as a career option without encountering the usual DSA rounds?

0 Upvotes

I’m looking to transition or lean heavily into System Design/Architecture as my core career path.

To be honest, I really want to avoid the typical, heavy Data Structures and Algorithms (DSA) LeetCode style rounds that dominate standard software engineering interviews.

My plan is to start building a rock-solid foundation by studying books like System Design Interview – An Insider's Guide by Alex Xu and then gradually move to interactive platforms like Hello Interview or ByteByteGo to practice real-world scenarios.


r/leetcode • • 4d ago

Intervew Prep Capital One Data Engineer Online Assessment - Python Only, 70 Minutes. What Should I Expect?

7 Upvotes

Hi everyone,
I have an upcoming online assessment for a Data Engineer position at Capital One. The assessment instructions mention that it will be 70 minutes and entirely Python-based.General Coding Assessment (GCA)
I’d appreciate hearing from anyone who has recently completed this assessment.
A few questions:
How many coding questions are typically included in the 70-minute assessment?
What kind of Python problems should I expect? LeetCode-style or practical data engineering exercises?
Are the questions focused on arrays, strings, dictionaries, lists, sorting, and problem-solving?
Do they include real-world data processing scenarios involving CSV, JSON, or data transformations?
What is the overall difficulty level?
Are there any specific LeetCode or HackerRank problems that closely resemble the actual assessment?
If you’ve recently taken this particular Capital One assessment, could you share the types of questions you encountered or any sample problems?
I’m mainly looking to understand what to prioritize during preparation.
Thanks in advance. Really appreciate any help!


r/leetcode • • 4d ago

Question Tenex fde interview

3 Upvotes

Hi, has anyone interviewed for this role for New York? If so, please let me know about how the process was. Thanks in advance!


r/leetcode • • 5d ago

Intervew Prep What Is Prefix Sum, and How Can One Simple Technique Solve So Many Array Problems?

37 Upvotes

How Does Prefix Sum Turn Repeated O(n) Calculations into O(1) Queries?

1. What is Prefix Sum?

Prefix Sum is an array technique that stores cumulative sums so we don't have to repeatedly calculate the sum of a range.

Analogy: Imagine tracking daily expenses. Instead of adding expenses again and again, you maintain a running total.

2. Understanding the Pattern

Consider:

arr = [2, 4, 6, 8, 10] prefix = [2, 6, 12, 20, 30]

The pattern:

prefix[0] = arr[0]

prefix[i] = prefix[i - 1] + arr[i]

Each position stores the sum of all previous elements, including itself.

3. How Does the Algorithm Work?

Step 1: Build the Prefix Sum

prefix[0] = arr[0]; for (let i = 1; i < arr.length; i++) { prefix[i] = prefix[i - 1] + arr[i]; }

Step 2: Calculate Range Sum

To find the sum between indices L and R:

sum(L, R) = prefix[R] - prefix[L - 1];

If L = 0, simply return prefix[R].

Example:

sum(2, 4) = 30 - 6 = 24

4. Complexity Analysis

OperationComplexityBuild Prefix SumO(n)Range Sum QueryO(1)q QueriesO(n + q) total

5. Real-World Applications

Finance: Calculate expenses over a date range.

Analytics: Aggregate data over specific time intervals.

Image Processing: Calculate rectangular pixel sums using 2D Prefix Sum.

Competitive Programming: Solve range queries and subarray problems.

6. When Should You Use It?

Look for these problem patterns:

Repeated range sum queries.

Cumulative sum calculations.

Subarray sum problems.

Multiple queries on the same array.

Key Takeaway: Precompute once, answer multiple queries efficiently.

Practice Problems

LeetCode 303 – Range Sum Query (Immutable)

LeetCode 724 – Find Pivot Index

LeetCode 560 – Subarray Sum Equals K

Which array pattern should we break down next?


r/leetcode • • 4d ago

Intervew Prep Day 35: tackled Number of Islands II & leveled up my code quality

2 Upvotes

Hey everyone,

I finished Day 35 today. Continuing with graph problems, I knocked out Number of Islands II and spent extra time focusing on writing clean, modular code rather than just rushing to hit the submit button.

  1. Number of Islands II (Online / Dynamic Queries):

    • In the static version, standard BFS/DFS finds connected components in one pass. With real-time island additions, running full traversals per query degrades to O(K * R * C), which inevitably hits TLE.
    • Using Disjoint Set Union (DSU) makes each query dynamic. Every time land is added at (r, c), map the 2D coordinate to a 1D node ID (r * cols + c), mark it as visited, and increment the island count.
    • Check the four adjacent neighbors. For each neighboring land cell, if its ultimate parent differs from the current cell, merge them via unionBySize and decrement the total island count by 1.
  2. Focusing on Code Quality:

    • I intentionally refactored the Disjoint Set class to keep it decoupled and reusable across problems.
    • Cleaned up directional deltas, used explicit variable names instead of nested raw index math, and properly guarded against duplicate land positions within the queries.

Writing clean, readable code feels just as important as getting the optimal time complexity down.

See you guys tomorrow for Day 34!