r/OfferEngineering • • 41m ago

Interview Experience Reddit Senior SWE Phone Screen - Design Tennis Game

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

I recently completed a technical phone screen with Reddit. One of the coding questions was Design Tennis Game, an object-oriented simulation problem involving tennis scoring, deuce, advantage, and game-winning conditions.

Coding: Design a Tennis Scoring System

I was asked to implement a scoring system for a single tennis game between two players, A and B. Both players begin with zero points. Points are awarded one at a time, and the system must update the game state according to tennis scoring rules. The implementation must handle tied scores, deuce, advantage, and the condition for winning a game.

Part 1 — Implement the TennisGame Class

The required interface contained four methods:

  • 1. TennisGame() Initialize a new tennis game.

    • Player A starts with zero points.
    • Player B starts with zero points.
    • Neither player has won the game.
  • 2. pointTo(char player) Award one point to the specified player. The argument must be either 'A' or 'B'. If the game already has a winner, additional calls to pointTo() must have no effect.
  • 3. getScore() Return the current numeric score as a string: "A:B". Here, A and B represent the number of points scored by each player. There is one special rule for deuce: When both players have scored at least three points and their scores are equal, the returned score must be "3:3"**.** For example: The implementation should preserve the internal scores while displaying the normalized score for deuce.

    • Internal score 3:3 → "3:3"
    • Internal score 4:4 → "3:3"
    • Internal score 6:6 → "3:3"
  • 4. getWinner() Return the winner of the game:

    • 'A' if Player A has won.
    • 'B' if Player B has won.
    • '#' if neither player has won.

Want to practice more real interview coding questions?

You can practice real interview coding questions at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 3h ago

Coding Question Grammarly(Superhuman) SWE OA

0 Upvotes

Question 1 — Binary Search: Find the First Index

The first coding question asked me to implement binary search to find the first index satisfying a given condition. Unlike a basic binary search that returns any matching index, this variation focused on identifying the first qualifying position. The main challenge was implementing the search boundaries correctly so that the algorithm returned the appropriate index rather than an arbitrary match.

Question 2 — Interval List Intersections (LC 986 Variant)

The second question was a variation of LeetCode 986 — Interval List Intersections. The standard problem involves two lists of sorted, non-overlapping intervals. The goal is to identify the intersections between intervals from the two lists.

For example:

Input:
firstList = [[2, 6], [10, 14], [18, 22]]
secondList = [[4, 12], [16, 20]]

Output:
[[4, 6], [10, 12], [18, 20]]

Each resulting interval represents a range shared by an interval from the first list and an interval from the second list. The interview question was based on this problem but included a variation of the standard version.

Want to practice more real interview coding questions?

You can practice real interview coding questions at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 5h ago

Coding Question [Hard] Google Coding Screening Problem - Expedition Sample Kit Assembly

2 Upvotes

Problem Description

An expedition laboratory has 14 samples identified by integer codes in sample_codes. To prepare one complete kit, the laboratory must divide all samples into exactly four packs of three samples and exactly one reserve pair.

Each three-sample pack must contain either three identical codes or three consecutive codes, such as [4, 5, 6]. The reserve pair must contain two identical codes, and every individual sample must belong to exactly one group.

The order of the samples does not matter, and a code may appear any number of times among the 14 samples. Consecutive codes do not wrap from 9 to 1; return true if a complete kit can be assembled, or false otherwise.

Constraints:

  • sample_codes.length = 14.
  • 1 ≤ sample_codes[i] ≤ 9.

Example:

Input:
sample_codes = [2, 2, 3, 3, 4, 4, 6, 6, 6, 7, 7, 7, 9, 9]

Output:
true

Explanation:
Use [2, 3, 4] twice, [6, 6, 6], and [7, 7, 7] as the four packs. The two samples with code 9 form the reserve pair.

Want to practice more real interview coding questions?

You can practice real interview coding questions at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 6h ago

Interview Experience Snap Senior MLE Interview — I Thought I Did Well. But bombed it

3 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The onsite interview process consisted of four rounds covering coding, ML fundamentals, applied machine learning, and ML system design. Each round started with approximately 10 minutes of values-related and project questions, including how I use AI in my daily work and how I handle competing priorities.

Round 1 — Coding: Print Employee Organization Chart (DFS)

The coding interview involved a tree traversal problem called Print Employee Org Chart. I was given a collection of employee records and asked to generate a hierarchical text representation of the company's organizational structure. Each employee is represented by three strings:

  • employee_id: A unique identifier for the employee.
  • manager_id: The identifier of the employee's direct manager.
  • name: The employee's name.

The company has exactly one CEO, identified by the special condition: employee_id == manager_id. Every other employee reports to exactly one manager. The input records can appear in any order, so the implementation cannot assume that managers are listed before their direct reports.

Implement a function that generates an organization chart as a single formatted string. The output must satisfy the following requirements

Round 2 — Machine Learning Fundamentals: Model Lifecycle and Evaluation

The second round focused on machine learning fundamentals, with the interviewer asking detailed questions based on my previous projects. Rather than presenting isolated theoretical questions, the interviewer used my project experience as the starting point and then explored the underlying ML concepts.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 8h ago

doordash nyc swe culture

2 Upvotes

So i recently got an offer for doordash swe in nyc and ive heard many bad stories about doordash and the culture there being bad and all that. But i don’t really take that to heart because i know with every big company, the wlb and how good/bad the teams are is dependent on the individual team. For context im in the marketplace org and dont know my team yet, but for those who have worked there how’s the culture there exactly?

How’re the managers and general engineering folk there?

Also whats the pay progression like at doordash as well? Because from what I know everyone starts with the same pay and moves up, so please im very interested in knowing more about this and any other information people can share like rate of layoffs and bureaucracy

Thanks!


r/OfferEngineering • • 19h ago

Coding Question Microsoft Staff SWE OA

4 Upvotes

Problem 1 — Maximum Money on a Prime-Jump Journey

A traveler goes through a row of cities given as an integer array. Each value is the money earned in that city (positive) or spent there (negative). The trip starts at city 0 and has to end at city n - 1. From any city, the traveler can either move to the next city or jump ahead p cities, where p is any prime number whose last digit is 3. The task is to return the most money the traveler can have at the end of the trip.

cities = [0, -40, 70, -300, 60, -200, -90, 30]
output = 50

In this example, the array is short enough that 3 is the only usable prime ending in 3, so every move is either +1 or +3. The best route starts at city 0 and steps to city 1 (total −40). From there it jumps three cities to city 4 (−40 + 60 = 20) and jumps three more to city 7 (20 + 30 = 50).

The function to implement was optimalJourneyTotal(int cities[n]), which returns an int. The constraints were:

  • 1 <= n <= 10^4 and -10^4 <= cities[i] <= 10^4
  • cities[0] = 0

Problem 2 — House Robber IV (LeetCode 2560)

There are several consecutive houses along a street, each of which has some money inside. There is also a robber, who wants to steal money from the homes, but he refuses to steal from adjacent homes.

The capability of the robber is the maximum amount of money he steals from one house of all the houses he robbed. You are given an integer array nums representing how much money is stashed in each house. More formally, the ith house from the left has nums[i] dollars.

You are also given an integer k, representing the minimum number of houses the robber will steal from. It is always possible to steal at least k houses. Return the minimum capability of the robber out of all the possible ways to steal at least k houses.

Example 1:

Input: nums = [2,3,5,9], k = 2
Output: 5
Explanation: 
There are three ways to rob at least 2 houses:
- Rob the houses at indices 0 and 2. Capability is max(nums[0], nums[2]) = 5.
- Rob the houses at indices 0 and 3. Capability is max(nums[0], nums[3]) = 9.
- Rob the houses at indices 1 and 3. Capability is max(nums[1], nums[3]) = 9.
Therefore, we return min(5, 9, 9) = 5.

Want to practice more real interview coding questions?

You can practice real interview coding questions at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 21h ago

Interview Experience AWS SDE II Interview — Did I Just Win the LeetCode Lottery?

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My AWS SDE II process was a phone screen followed by a four-round onsite: two coding rounds, one system design round and a Bar Raiser. The questions were variants of connected components, LRU Cache with TTL, Task Scheduler and Optimal Account Balancing, plus a design for real-time game statistics that went deep on Redis. Almost every round included a live dry run and complexity analysis. The Bar Raiser asked for more than one approach to the same problem.

Phone Screen — Graph Connected Components

I got a graph problem similar to Number of Connected Components in an Undirected Graph (LeetCode 323). You have a graph of n nodes labeled from 0 to n - 1. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is an edge between ai and bi in the graph. Return the number of connected components in the graph.

Onsite Round 1 — Coding: LRU Cache with TTL

Design and implement something similar to LRU Cache (LeetCode 146). The interviewer explicitly asked me to build it with a HashMap and a doubly linked list, and then to dry run it live. The follow-up asked how I'd change the design if entries had a TTL (time-to-live). The round ended with time and space complexity analysis.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 22h ago

Interview Experience Shopify SWE Intern OA — Why Can't I Just Use One Programming Language?

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The assessment included three coding problems covering game theory and dynamic programming, polynomial expression parsing, and discount calculations for grouped products.

The coding questions used different programming languages, including Ruby and C++, and were followed by a series of quiz questions. The coding problems were generally approachable, but each required careful handling of the problem rules and edge cases.

Question 1 — Coding: Optimal Card Picking Game

The first coding question involved a two-player card game in which both players make optimal decisions. Two players are given a sequence of n cards, where n is even and every card contains a positive integer. The cards are arranged in a row. Players alternate turns, and on each turn, the current player must take exactly one card from either end of the remaining sequence.

The value of the selected card is added to that player's score. Both players start with a score of zero, know the entire card sequence in advance, and play optimally to maximize their own final scores.

Task

Implement the following function: max_score(cards). The function takes a list of integers representing the cards from left to right and returns the final score of the player who moves first, assuming both players play optimally.

Example

Input:
cards = [2, 8, 11, 4, 7, 3]

At each turn, the current player can select only the leftmost or rightmost remaining card. The challenge is that choosing the card with the highest immediate value does not necessarily produce the best final result, because the decision affects which cards the opponent can select later.

Key Considerations

The problem requires considering both players' future decisions rather than simply selecting the larger card at each turn. Since both players play optimally, the implementation must account for the opponent's best possible responses when calculating the first player's final score.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 23h ago

Interview Experience Gusto (Payroll & HR Tech) Senior SWE Interview — Wait, Why Is the Legal Team Interviewing Me?

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

I recently completed Gusto's Software Engineer onsite interviews, which were spread across two days. The process included two coding rounds, an engineering manager behavioral interview, a restaurant scheduling system design interview, and an additional value alignment interview conducted by someone from the legal team.

Round 1 — Coding: Federal Income Tax Calculator

The first coding round involved implementing a federal income tax calculator. The task was to calculate the tax owed based on applicable tax rates and brackets. The initial problem was fairly standard, but the interviewer introduced several follow-ups that required extending the original design.

I was asked to implement a tax calculation system that applies different tax rates to different portions of a person's income. The implementation needed to represent the applicable tax brackets and calculate the total tax owed. This was primarily a business logic and software design problem rather than a traditional LeetCode-style algorithm question.

  • The interviewer asked how I would extend the implementation to support multiple tax years. Because tax brackets and rates can change from year to year, the design needed to accommodate different configurations without requiring a complete rewrite of the calculation logic.
  • The next follow-up involved supporting different tax filing statuses. For example, different filing statuses may use different tax brackets, so the calculator needed to apply the appropriate rules depending on the taxpayer's filing status.
  • Another follow-up asked how the system could support custom tax rates, including a fixed-rate configuration. This required thinking about how to make the calculation logic flexible enough to handle different tax structures rather than assuming every calculation would use the same progressive tax brackets.

Round 2 — Coding: Fair Money Distribution

The second coding round involved distributing a pool of money among multiple recipients. This was another frequently reported Gusto coding problem. The scenario was representative of financial allocation problems, where individually simple rules can become more complicated when applied together.

At Gusto, payments sometimes need to be distributed to multiple recipients from a single pool of funds. Given an amount of available money and a collection of recipients with their outstanding balances, implement a function that determines how much each recipient should receive.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 1d ago

Coding Question Block/Square Common Coding Screen Questions

1 Upvotes

Question 1 — Number of Black Blocks: 2×2 Grid Counting and Generalization

The first problem involved a large two-dimensional grid containing black and white cells. The task started with counting black cells inside 2×2 subgrids and gradually expanded into identifying affected subgrids and supporting arbitrary subgrid sizes.

Part 1 — Count Subgrids by Number of Black Cells

Given an m × n grid and a list of coordinates representing black cells, return the number of 2×2 subgrids containing exactly 0, 1, 2, 3, or 4 black cells. All cells not explicitly listed as black should be considered white.

Input Constraints

  • 2 ≤ m, n ≤ 100,000
  • 0 ≤ k ≤ min(100,000, m × n)
  • The input contains k distinct black-cell coordinates.
  • Each coordinate is within the grid boundaries.

The function should return an array of five elements: ans = [count0, count1, count2, count3, count4]. Here, countX represents the number of 2×2 subgrids containing exactly X black cells.

My Approach — Count Only Affected Subgrids

The straightforward approach would be to enumerate every possible 2×2 subgrid and count the black cells inside it. However, the total number of such subgrids is (m - 1) × (n - 1). With grid dimensions as large as 100,000, enumerating them would be too expensive.

The important observation was that each black cell can belong to at most four different 2×2 subgrids. Instead of scanning the entire grid, I could iterate over the black-cell coordinates and update only the subgrids affected by those cells.

I used a hash map keyed by the top-left coordinates of each affected 2×2 subgrid. Each map entry stored the number of black cells contained in that subgrid. After processing all black cells, the map contained the counts for every subgrid with at least one black cell. The number of completely white subgrids could be calculated directly: ans[0] = (m - 1) × (n - 1) - numberOfAffectedSubgrids. This avoided iterating through the full grid.

Part 2 — Find All 2×2 Subgrids Covering a Black Cell

The interviewer then changed the requirement. Instead of returning the overall histogram, the function needed to return every valid 2×2 subgrid containing each specified black cell. Each subgrid should be represented by its top-left coordinate.

For a black cell at (r, c), the possible top-left coordinates are:

  • (r, c)
  • (r - 1, c)
  • (r, c - 1)
  • (r - 1, c - 1)

Only coordinates representing subgrids fully contained within the original grid should be returned. This follow-up encouraged extracting the logic for finding subgrids around a particular cell into a reusable helper function.

Part 3 — Generalize to Arbitrary Subgrid Sizes

The final follow-up changed the subgrid size from a fixed 2×2 square to an arbitrary size × size square. Given a cell (R, C), the task was to identify all valid top-left coordinates of subgrids containing that cell. The valid top-left row coordinates satisfy: max(0, R - size + 1) ≤ r ≤ min(m - size, R)

Similarly, the valid top-left column coordinates satisfy: max(0, C - size + 1) ≤ c ≤ min(n - size, C). By iterating over these two ranges, the same helper function could support arbitrary square sizes while respecting the grid boundaries.

Want to practice more real interview coding questions?

You can practice real interview coding questions at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 1d ago

Interview Experience Capital One SWE Interview — Claude Fixed the Bug, But I Still Had to Prove It ??

2 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

Overall, I had a positive experience, and the difficulty felt moderate. The most distinctive parts were designing an online banking platform, debugging a full-stack payment application using Claude Code, and implementing changing credit card validation rules.

Round 1 — Behavioral Interview

The first round was a traditional behavioral interview consisting of three main questions.

  1. "Tell me about a time you challenged the status quo." I was asked to describe a situation where I questioned an established process, approach, or decision rather than simply following existing practices.
  2. "Tell me about a time you encountered a significant obstacle and how you resolved it." The interviewer wanted to understand how I approached difficulties and worked toward a solution.
  3. "Tell me about a time you had to learn something new." This question focused on how I acquired new knowledge or skills in response to a situation.

Round 2 — System Design: Design an Online Banking Application

Design an online banking platform that allows Capital One customers to manage their bank accounts and perform financial transactions. The application should support the following operations:

  • Create new bank accounts.
  • Deposit money into an account.
  • Withdraw money from an account.
  • Transfer money to another Capital One account.
  • Send money through Zelle.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 1d ago

Interview Experience Optiver (Quant Trading Firm) Quant Researcher OA — Is This a Job Interview or a Math Olympiad?

5 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The questions covered a broad range of topics, including probability distributions, stopping times, random walks, combinatorics, conditional events, and expected values.

Questions

  1. A keyboard has four keys labeled D, O, N, and E. Each time a key is pressed, one of the four letters is selected independently and uniformly at random. We continue pressing keys until the sequence DDDD appears for the first time as four consecutive presses. What is the expected total number of key presses required?
  2. A needle of length 2/3 is dropped randomly onto a surface containing parallel straight lines spaced one unit apart. What is the probability that the needle crosses exactly two lines?
  3. A fair six-sided die is rolled repeatedly, and the results are added to a running total. The process stops immediately when the cumulative sum becomes strictly greater than 80. What is the probability that the final die roll is a 3**?**
  4. A single-elimination tournament contains 64 teams ranked from strongest to weakest. The teams are randomly assigned to positions in the tournament bracket, and the stronger team always wins whenever two teams play. What is the probability that the teams ranked second and third meet each other in a semifinal match?
  5. I start with a bankroll of $31 and repeatedly bet on a fair coin flip. The first bet is $1, and each successful bet pays even odds. After every loss, I double the amount of my next bet. I stop betting as soon as I win once or when I can no longer continue because my bankroll is exhausted. What is my expected profit from this betting strategy?
  6. A stick of length 1 is broken at two points independently selected from a uniform distribution along its length. This produces three pieces of random lengths. What is the probability that the three pieces can form an acute triangle?

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 1d ago

Interview Experience Amazon SWE OA — I Completely Bombed the Django Debugging Task

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The assessment lasted 100 minutes and consisted of two very different questions: a dynamic programming problem involving merging two strings while minimizing priority conflicts, and a repository debugging exercise involving recurring payments in a Django application.

Question 1 — Minimum Merge Conflicts

The first question was an algorithmic problem involving two development branches, represented by strings named primary and secondary. Each lowercase letter represented a commit priority, with alphabetically smaller characters indicating higher priority.

I was asked to merge the two branches into a single string while preserving the original relative order of characters within each branch. The objective was to minimize the number of priority conflicts in the resulting merged sequence.

Problem Description

A conflict occurs when a lower-priority commit appears before a higher-priority commit in the merged string. Since smaller letters have higher priority, a conflict occurs whenever an alphabetically larger character appears before a smaller character.

The merge must preserve the order of characters within both original strings. I could interleave characters from the two branches, but I couldn't rearrange the commits within either branch.

The required function was:

getMinimumConflicts(primary, secondary)

The function needed to return the minimum number of conflicts across all valid merges.

Example — Merge Two Commit Sequences

Consider the following input:

Input:
primary = "db"
secondary = "a"

Possible Merges:

"dba" -> 3 conflicts
"dab" -> 2 conflicts
"adb" -> 1 conflict

Output:
1

All three merges preserve the order of d and b from the primary branch. However, their conflict counts differ depending on where the character a from the secondary branch is inserted.

The minimum possible conflict count is 1, achieved by "adb". The remaining conflict occurs because d appears before the higher-priority character b.

Constraints

  • 1 <= primary.length <= 1000
  • 1 <= secondary.length <= 1000
  • Both strings contain only lowercase English letters.
  • The relative order of characters within each original string must be preserved.

Question 2 — Full-Stack Debugging: Wallet Recurring Payments

The second question was a repository debugging exercise in HackerRank's Web IDE. I was given an existing digital wallet application built with Python, Django, and Django REST Framework (DRF). The platform supported wallet management, transfers, and recurring payments. However, the recurring payment functionality contained several bugs, and my task was to inspect the codebase and fix the implementation so that the provided automated tests would pass.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 1d ago Bravo

Community Discussion Senior engineers aren't getting down-leveled because of coding. It's these two rounds.

42 Upvotes

There's a pattern I keep seeing with experienced engineers on the job market right now:

They grind LeetCode for weeks, pass the coding rounds, and then either get rejected or get an offer one level below where they interviewed.

When you dig into why, it's almost never coding. Coding is mostly pass/fail. Behavioral and system design are where the level actually gets decided, and they're the rounds people prep for the least.

Here's what separates a Senior/Staff signal from a mid-level one in each.

Behavioral: where levels quietly get lost

1. "We" doesn't get you leveled. "I" does.
The interviewer has one job: figure out what you did. If every story is "we shipped," "we decided," "we migrated," they have nothing to give you credit for. Even if you led the whole thing.

  • ❌ "We rebuilt our notification pipeline and cut delivery failures by 60%."
  • ✅ "I spotted that most failures came from one retry bug, wrote the proposal to rebuild the pipeline, and aligned three teams on the rollout plan. The team shipped it in a quarter, and failures dropped 60%."

Same project, very different level signal.

2. Your stories need to cover more than "I solved a hard bug."
At Senior+, interviewers are checking whether your impact goes beyond your own code. Across your set of stories, try to cover:

  • Technical depth: problems you personally cracked
  • Direction: roadmaps, technical strategy, decisions you owned
  • People: mentoring, conflict, raising the team's bar
  • Execution: working across teams, getting things unstuck

And check the scope. A Staff-level story should affect more than one team. If it doesn't, the interviewer will notice.

3. Lead with the answer.
Most people tell stories in chronological order, so the actual answer shows up two minutes in. Flip it: one-sentence answer → why it was hard → what you did → result.

4. Keep it under ~90 seconds.
A tight answer invites follow-up questions, which is where you get to show depth. A long one burns your time, and the interviewer's attention goes with it.

System design: where "good enough" caps your level

1. Structure beats brilliance.
Interviewers don't need your design to be perfect. They do need to be able to follow it. A predictable flow helps a lot: user flows → requirements → core entities → high-level design → deep dive.

Just as important is knowing what to leave out at each stage. Don't name databases while discussing user flows. Don't tune cache TTLs during the high-level design. Spend your time where the interviewer is leaning in.

2. Narrate. Constantly.
In a design interview, silence reads as being stuck. Say what you're doing and why, even the obvious parts. Call out shortcuts on purpose, like "I'm keeping this simple for now and will come back to it once we talk about scale." The interviewer then knows you see the gap and won't count it against you.

3. The 5-step decision pattern.
This is the biggest difference between mid-level and senior answers. For every major decision:

  1. The problem: what are we solving here?
  2. The obvious approach: and where it breaks
  3. A better approach: and why it's better
  4. The cost: what did we give up?
  5. The mitigation: how do we get some of it back?

Example: rate limiting an API

  1. Need to cap each user at N requests/min across many servers.
  2. Obvious: an in-memory counter per server. Breaks as soon as you have more than one server.
  3. Better: a central counter in Redis, so every server sees the same count.
  4. Cost: one extra network hop per request, and Redis is now on the critical path.
  5. Mitigation: local token buckets that sync with Redis periodically, and fail open if Redis is down.

Most candidates stop at step 3. Steps 4 and 5 are where the interviewer writes "strong senior signal."

Questions for this sub:

  • Have you ever been down-leveled? Did you get any hint about which round caused it?
  • What's the toughest behavioral follow-up question you've gotten?
  • Do interviewers at your target companies let you drive the system design, or do they take over?

Share below, or post your interview experience on Chill Interview -> LINK.


r/OfferEngineering • • 1d ago

System Design "Just run it in Docker" is how you fail Design LeetCode

13 Upvotes

Most candidates draw the same diagram for Design LeetCode: API server, a problems table, a submissions table, and a box labeled "Docker" that runs the code. Then they spend 30 minutes on pagination for the problem list.

That's backwards. The problem list is a cached read: a few thousand rows that barely change. The real question hiding inside is: you are building a service whose entire job is to run arbitrary code from strangers on the internet, return results in under 5 seconds, and survive 100K people hitting it at the same moment during a contest.

Here's where the interview is actually won or lost.

1. "Docker" is not a security boundary

Containers share the host kernel. One kernel exploit in a submission and the attacker is on your worker, next to everyone else's code and test cases. Stronger answers:

  • Run each submission in a gVisor sandbox or a Firecracker microVM, not a plain container
  • No network. None. Otherwise your judge becomes a crypto miner or a scanner
  • cgroup limits on CPU, memory, and process count (while(1) fork(); is a classic)
  • Two timeouts: CPU time and wall-clock time (sleep(1000000) uses zero CPU)
  • Read-only filesystem, non-root user, seccomp to block dangerous syscalls

If you say "Docker" and stop, a good interviewer's next question is "what happens when someone submits a fork bomb?"

2. The 5-second budget disappears faster than you think

Compiling C++, Java, or Rust can eat a big chunk of that budget before a single test runs. Then you run 50+ test cases. So:

  • Keep warm pools of sandboxes per language. Never boot a fresh environment on the request path
  • Cache test cases on the worker's local disk. Don't fetch them from object storage per submission
  • Run all tests inside one sandbox and stop at the first failure
  • Make submission async: POST /submissions returns an ID right away, and the client polls (or uses SSE) for the verdict. Don't hold an HTTP request open while a queue backs up

3. Contests are the only traffic spike you get a calendar invite for

At 100K participants, a huge share of submissions land in the first few minutes, all against the same few problems. But unlike a viral post, you know exactly when it starts. So:

  • Pre-scale the worker fleet before the contest starts. Reactive autoscaling will be too late
  • Put a queue between the API and the workers so the burst turns into a backlog, not dropped requests
  • Use a separate queue or priority for contest submissions, so 100K practice users can't starve them (or the other way round)

4. The "live" leaderboard is a trap

Pushing a leaderboard update to 100K websockets on every accepted submission is the fastest way to set money on fire. Instead:

  • One Redis sorted set per contest. 100K members is small for Redis
  • Encode the ranking into a single score, e.g. problems_solved * 10^9 - penalty_seconds, so ties break correctly with one ZADD
  • Snapshot the top N every few seconds and serve it from a cache or CDN. Your own rank is a separate ZREVRANK call
  • "Live" means a few seconds old. Nobody can tell the difference, and it's the availability-over-consistency trade-off the requirements ask for anyway

5. Things that separate a hire from a strong hire

  • Idempotent submissions. A double-click or a client retry shouldn't create two submissions (or two penalties)
  • Rejudging. When a problem's test cases turn out to be wrong mid-contest, can you re-run every affected submission and recompute the leaderboard?
  • Never leak hidden test cases in error output. "Expected 42, got 41" on test #37 is a gift to cheaters

TL;DR: The CRUD part is 10% of the score. The interview is really about sandboxing, a latency budget, a burst you can schedule for, and a leaderboard that's "live enough."

Curious what others got pushed on for this one. Did your interviewer care more about the sandbox or about contest scale? I also put up a full full Design Leetcode article in case anyone is interested.


r/OfferEngineering • • 2d ago

Google DeepMind Polaris Research Engineer – Anyone interviewed yet?

1 Upvotes

Has anyone received an interview invitation or gone through any interview rounds for the Research Engineer role on Google DeepMind’s Polaris team (which includes former Mechanize engineers)?
There seems to be very little information available about this team’s interview process.
I’d particularly appreciate any insights into:
Interview format and overall experience
Reasoning interview question types, topics, and difficulty
AI-assisted repository comprehension interview
Recommended preparation materials
If you’ve completed any rounds or are currently going through the process, I’d love to hear from you. Feel free to DM me if you prefer not to share publicly.
Any general insights or preparation tips would be greatly appreciated. Thanks!


r/OfferEngineering • • 2d ago

Interview Experience Oracle SWE Interview — Coding and System Design Felt Easy, Still Got Rejected. Is Competition That Brutal?

7 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The process consisted of an initial phone screen followed by four virtual onsite rounds covering coding, system design, project deep dives, and behavioral questions.

Round 1 — Phone Screen: Trapping Rain Water and Behavioral Questions

The coding problem was LeetCode 42 — Trapping Rain Water, I was given an array of non-negative integers representing the heights of bars in an elevation map. The task was to calculate how much rainwater could be trapped between the bars after rainfall.

The interviewer also asked a behavioral question about managing changes in project scope. I needed to discuss my experience dealing with evolving requirements and how I responded when the scope of a project changed. After passing this screen, I advanced to the four-round virtual onsite.

Round 2 — Onsite: Project Deep Dive and Behavioral Questions

The first onsite round focused on my previous engineering experience. The interviewer selected one or two projects from my resume and asked me to explain the work in greater detail. The discussion also included several standard behavioral questions:

  • Tell me about a time you experienced conflict at work.
  • Describe a situation where you mentored someone.
  • How do you prioritize tasks when multiple things need your attention?
  • Tell me about a project or situation where you experienced failure.

This round combined project experience with behavioral evaluation. I needed to use concrete examples from my previous work rather than solve a new technical problem.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 2d ago

Interview Experience Discord Senior SWE Interview — Can You Handle a Never-Ending Event Stream?

0 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary: The technical screen involved building a real-time user session aggregation system from a continuous stream of messaging events. The problem was based on a practical data engineering scenario rather than a traditional LeetCode algorithm.

Coding Phone Screen: Real-Time User Session Aggregation

I was asked to design and implement a system that processes message events generated by Discord users. Whenever a user sends a message to a channel, the backend produces a send_message event containing the user ID, channel ID, and timestamp.

The system needs to continuously monitor these events and produce a new stream of aggregated user sessions. Each session represents a period of messaging activity for a particular user.

Part 1 — Parse Incoming Message Events

The input consists of newline-delimited JSON records, with one event per line. Each record contains the following fields:

  • event_name: The event type, which is send_message.
  • timestamp: The time the message was sent, represented as an ISO 8601 timestamp.
  • user_id: The identifier of the user who sent the message.
  • channel_id: The identifier of the channel where the message was sent.

For example, the incoming stream could contain:

{"event_name": "send_message", "timestamp": "2025-09-12T09:15:20Z", "user_id": "42", "channel_id": "7"}
{"event_name": "send_message", "timestamp": "2025-09-12T09:18:45Z", "user_id": "42", "channel_id": "7"}
{"event_name": "send_message", "timestamp": "2025-09-12T09:21:10Z", "user_id": "19", "channel_id": "3"}

The interviewer specified that events would arrive in chronological order. I could also assume there were no missing, duplicated, or corrupted records, so the problem didn't require handling out-of-order delivery or invalid event data.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 2d ago

Interview Experience Brex (Fintech) Senior SWE Interview — AI Can Code, But You Still Need to Know Java

6 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary: The interview started with a simple affordability check, then progressed to purchasing cards and updating player state. The final follow-up introduced a discount mechanism where previously purchased cards reduced the number of gems required for future purchases. I implemented the functionality in Java using classes, maps, and lists.

Interview Details

Coding: Card Purchasing and Discount System

The interviewer presented a game involving players, collectible gems, and purchasable cards. Each card had a color and a cost expressed as a collection of colored gems. The game supported five gem colors:

enum Color {
    BLUE,
    WHITE,
    GREEN,
    RED,
    YELLOW
}

A player maintained an inventory of gems and a collection of purchased cards. The task was to implement the operations needed to determine whether a player could afford a card, purchase it, and eventually apply discounts based on cards already owned.

Part 1 — Check Whether a Player Can Purchase a Card

The first task was to implement a function called can_purchase() that accepts a card and a player's gem collection. The function should return true if the player has enough gems of every required color to afford the card, and false otherwise.

Each card's cost was represented by a mapping from gem colors to required quantities. The player had a corresponding mapping representing the number of gems available for each color.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 2d ago

Coding Question Stripe SWE Coding Screen Problem - Makerspace Grant Disbursements

5 Upvotes

Problem Description

A makerspace reimburses members for approved supply purchases on a regular schedule. You receive a list receipts in input order, with each record written as "<receiptId>,<cents>,<day>". The integer release_interval sets the number of days between reimbursements.

Release days are the positive multiples of release_interval. Assign each receipt to the first release day strictly after the day of purchase. A receipt dated on a release day goes into the next batch.

Return one string per release day that has at least one receipt, sorted by release day in ascending numeric order. Each string uses the format "<releaseDay>,<amountInDollars>,<receiptIds>": add the amounts in cents, convert the total to dollars with exactly two decimal places and no currency symbol, and join the receipt IDs with | in their original input order. Include batches with receipts totaling zero, and return an empty list if there are no receipts.

Constraints:

  • 0 ≤ receipts.length ≤ 1,000
  • 1 ≤ release_interval ≤ 1,000
  • 0 ≤ day ≤ 10⁶ and 0 ≤ cents ≤ 10⁶ for every receipt.
  • Each receipt ID is unique, contains 1 to 30 characters, and contains neither a comma nor a vertical bar.
  • All records are well-formed.

Example:

Input:
receipts = ["ink,870,0", "wire,9,3", "clamp,220,4"]
release_interval = 4

Output:
["4,8.79,ink|wire", "8,2.20,clamp"]

Explanation:
The first two receipts total 879 cents and are released on day 4. The clamp receipt is dated on day 4, so it is released on day 8.

Want to practice it before interview?

You can practice it and view solution code at here.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.


r/OfferEngineering • • 2d ago

Microsoft promotion cycles and annual bonus eligibility – December vs. January joining date (L61 SWE)

3 Upvotes

I'm an incoming Software Engineer II (L61) at Microsoft in the US with 5+ years of engineering experience. I'm currently evaluating whether to join in December 2026 or early January 2027 and wanted to understand a few aspects of Microsoft's performance evaluation, annual rewards and promotion process.

Performance reviews and promotions:

  • At what cadence do promotions typically happen at Microsoft? Are there specific promotion windows, or can promotions happen throughout the year?
  • How does the performance evaluation and Connect process work for new hires?
  • Are there any minimum tenure requirements for promotion eligibility?
  • Would joining in January instead of December affect eligibility for the 2027 performance review or promotion cycles?
  • What has been the typical progression timeline from L61 to L62 and subsequently L63 for strong performers?

Annual bonus and rewards:

  • If I join in December 2026 or January 2027, when would I receive my first annual performance bonus and stock refreshers?
  • Assuming a target annual bonus of 10% of base salary and meeting performance expectations, how would the bonus be prorated for each joining date?
  • Is the proration calculated based on time employed during the fiscal year or another evaluation period?
  • Are there any eligibility cutoffs that make December joining more beneficial than January joining?
  • Does receiving a sign-on bonus have any impact on annual performance bonus or stock refresher eligibility during the first year?

Would appreciate insights from current or former Microsoft employees, particularly those in engineering roles in the US.

Thanks!


r/OfferEngineering • • 3d ago

Unpopular opinion: Design Google Calendar is harder than Design Uber

21 Upvotes

Hot take: Uber is a scale problem, and scale problems have well-known answers (geo index, sharding, queues). Google Calendar is a correctness problem: recurring rules, exceptions, timezones, sync, and reminders that must never fire twice. There's no standard diagram you can memorize for it. Here's why.

1. In Uber, a ride is a row. In Calendar, an event is a rule.

A ride has a start and an end, and then it's done. A weekly standup is an RRULE that describes an unbounded future. You can't store every occurrence, so you store the rule plus a table of exceptions (this one moved, that one cancelled) and expand occurrences at read time.

Then the interviewer asks: "Edit this and all following events." Now you're splitting a series in two: ending the old one, starting a new one, and deciding what happens to exceptions and RSVPs after the split point. Bonus trap: if you key exceptions by occurrence index instead of original start time, every rule change silently attaches exceptions to the wrong occurrences.

There's no Uber equivalent of this. Nobody asks you to "edit this ride and all future rides."

2. In Uber, time is a timestamp. In Calendar, time is a bug.

Store your 9am standup in UTC and it moves to 8am or 10am twice a year when daylight saving changes. Recurring events have to be stored in local wall time plus a timezone. And all-day events aren't instants at all. Give a holiday a timezone and it shows up across two days for someone in Tokyo.

Uber never has to answer "what does 9am mean next March?"

3. Uber's clients are online. Calendar's clients disappear for a week.

A driver's app is either connected or the driver isn't working. A phone in airplane mode for a week still needs to come back with a correct calendar, without re-downloading everything. That means a sync token per client, a change log, and tombstones for deletes. Otherwise that cancelled meeting lives on the offline phone forever. Push notifications are only a hint that "something changed." The sync token is the truth.

4. Uber's "exactly once" is a lock. Calendar's is a moving target.

Uber's correctness problem is "don't assign a driver twice," and a lease plus a conditional write solves it. Calendar's version is "never send a reminder twice," even when someone edits a recurring series five minutes before it fires. The approach that works: schedule reminders only for a rolling window, stamp each job with the event version it was created for, skip it at send time if the version is stale, and dedup on (event, occurrence, user, offset). Each piece is simple. Getting all of them right under edits is not.

5. In Uber, a trip has two parties. A meeting has an owner and N opinions.

The organizer owns the title, time, and recurrence. Every attendee owns their own RSVP. Copy the event per attendee and you get conflicting versions the first time the organizer edits it. And if you share your calendar, private events must show only as "busy," on the read path and in the sync feed. That second one is the one teams forget.

To be fair to Uber: matching 100K riders leaving a stadium at once is genuinely hard. But it's hard in ways that are well documented: batch matching, geo sharding, hot cells. You can find a blog post for every piece of it. Calendar's hard parts are scattered across RFC 5545, DST edge cases, and sync protocols nobody blogs about.

So, change my mind. Which one would you rather get in an interview? And has anyone actually been asked "this and all following events" as a follow-up? I also put up a full design Google Calendar system design article in case anyone is interested.


r/OfferEngineering • • 3d ago

Coding Question Confluent Senior SWE OA — The Screening Bar Is Getting Ridiculous

2 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

Two algorithmic coding questions with a combined time limit of 75 minutes. The first problem involved partitioning a sequence of disk sectors into contiguous clusters while calculating the minimum and maximum possible costs.

The second problem focused on permutations and required identifying which values of k could form a contiguous subarray containing exactly the integers from 1 through k. Both questions required careful reasoning about array structure and constraints rather than implementing a conventional application feature.

Interview Details

Question 1 — Minimum and Maximum Disk Clustering Cost

The first problem involved dividing a computer's hard disk into a specified number of clusters. The disk contained n sectors, and each sector had an associated cost stored in an integer array called sectorCost.

I was given an integer clusterCount representing the exact number of clusters to create. Each cluster had to contain a non-empty contiguous segment of the original sector array, and all sectors had to be included in exactly one cluster.

The cost of an individual cluster was defined as the sum of the first and last sector costs within that cluster. If a cluster contained only one sector, that sector's cost was counted twice. For a cluster covering indices [l, r], its cost was: sectorCost[l] + sectorCost[r]

The total clustering cost was the sum of the costs of all clusters. My task was to implement getClusteringCost and return a two-element array containing the minimum and maximum possible total costs across all valid partitions.

Example

Suppose the disk contains five sectors and must be divided into exactly three clusters.

Input:
sectorCost = [2, 4, 1, 5, 3]
clusterCount = 3

Output:
[16, 19]

For the minimum cost, one valid partition is:

[2, 4] | [1] | [5, 3]

Cluster costs:
(2 + 4) + (1 + 1) + (5 + 3)
= 6 + 2 + 8
= 16

For the maximum cost, one valid partition is:

[2] | [4, 1, 5] | [3]

Cluster costs:
(2 + 2) + (4 + 5) + (3 + 3)
= 4 + 9 + 6
= 19

The function should therefore return [16, 19], representing the minimum and maximum achievable clustering costs.

Edge Cases and Considerations

The problem required creating exactly clusterCount non-empty contiguous clusters. I couldn't rearrange sectors or assign nonadjacent sectors to the same cluster.

The cost of a single-sector cluster also needed special attention because its first and last elements were the same. The challenge was finding both extreme total costs while respecting the required partition structure.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 3d ago

Interview Experience Apple Agentic AI Engineer Interview - Even AI Engineers Can't Escape LeetCode

6 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The technical discussions included designing an agentic AI system for processing data streams, implementing LRU Cache, explaining LFU Cache and CAS concepts, and designing a ChatGPT-like system. The final round also covered multi-agent architectures, RAG versus regular expressions, long-context management, and context assembly. Unfortunately, I didn't pass the onsite interviews.

Interview Details

Round 1 — Resume Deep Dive and Agentic AI System Design

The first onsite interview was divided into two parts. The first half focused on my resume and previous engineering experience, while the second half was a system design exercise involving agentic AI.

The interviewer started by examining my previous experience and asking detailed questions about projects on my resume. I needed to explain my technical background and discuss the work I had done. This portion was fairly intensive, with the interviewer spending approximately half the round on my experience before transitioning to the system design question.

The system design question was to design an agentic AI system that processes a data stream. The problem combined agent-based AI architecture with continuous data processing rather than a traditional standalone LLM application. I was expected to discuss the overall system design and how an agentic AI application could handle incoming stream data. This was the main technical design topic in the first round.

Round 2 — Coding: LRU Cache, LFU Cache, and CAS

The second onsite round focused on coding and data structure fundamentals. The main implementation question was LRU Cache, followed by questions about alternative implementations, LFU Cache, and CAS.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.


r/OfferEngineering • • 3d ago

Interview Experience Anthropic Contract SWE Interview — An AI Interviewed Me About AI-Written Code

2 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The entire evaluation consisted of a single online assessment with three parts: evaluating AI-generated code fixes, reviewing a large pull request, and participating in a technical interview conducted by an AI interviewer.

Interview Details

Online Assessment: AI Code Review and Technical Deep Dive

The assessment contained three separate parts. The first two focused on evaluating AI-generated code changes in real open-source projects, while the final part was an interactive AI interview covering my review decisions, technical experience, and daily use of AI coding tools. For the first two parts, the platform provided a built-in Claude assistant that could not access the internet. I could use it to understand the codebase, but it wasn't intended to make the review judgments for me.

Part 1 — Evaluate Four AI-Generated Code Fixes

The first task presented four relatively small code diffs. Each case came from a real issue in an open-source project, along with a proposed solution generated by an AI coding agent. I needed to review each issue and its corresponding code changes, then complete a structured evaluation. The platform provided several predefined criteria, and I had to write a few sentences explaining my judgment for each one.

The main evaluation questions included:

  • Does the proposed code change actually resolve the reported issue?
  • What evidence supports the conclusion?
  • Why do I believe the change is correct or incorrect?
  • How confident am I in my assessment?

For each case, I needed to assign a confidence score along with my written explanation. This made the exercise different from ordinary code review because I was explicitly evaluating the correctness of an AI agent's solution.

The built-in Claude assistant was useful for navigating unfamiliar code and understanding the surrounding implementation. However, I still needed to inspect the changes and independently determine whether they addressed the original issue.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.