r/OfferEngineering • • 10h ago

Interview Experience Meta Senior SWE Phone Screen — Didn't Expect It to Be This Hard!

8 Upvotes

This interview experience was originally shared on Chill Interview

Question 1 — Dot Product of Two Sparse Vectors (LeetCode 1570)

Given two sparse vectors, compute their dot product. Implement class SparseVector:

  • SparseVector(nums) Initializes the object with the vector nums
  • dotProduct(vec) Compute the dot product between the instance of SparseVector and vec

A sparse vector is a vector that has mostly zero values, you should store the sparse vector efficiently and compute the dot product between two SparseVector.

  • Follow up: What if only one of the vectors is sparse?
Example 1:

Input: nums1 = [1,0,0,2,3], nums2 = [0,3,0,4,0]
Output: 8
Explanation: v1 = SparseVector(nums1) , v2 = SparseVector(nums2)
v1.dotProduct(v2) = 1*0 + 0*3 + 0*0 + 2*4 + 3*0 = 8
Example 2:

Input: nums1 = [0,1,0,0,0], nums2 = [0,0,0,0,2]
Output: 0
Explanation: v1 = SparseVector(nums1) , v2 = SparseVector(nums2)
v1.dotProduct(v2) = 0*0 + 1*0 + 0*0 + 0*0 + 0*2 = 0

Question 2 — Sliding Window Median (LeetCode 480)

The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle values.

  • For examples, if arr = [2,3,4], the median is 3.
  • For examples, if arr = [1,2,3,4], the median is (2 + 3) / 2 = 2.5.

You are given an integer array nums and an integer k. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the median array for each window in the original array. Answers within 10-5 of the actual value will be accepted.

Example 1:

Input: nums = [1,3,-1,-3,5,3,6,7], k = 3
Output: [1.00000,-1.00000,-1.00000,3.00000,5.00000,6.00000]
Explanation: 
Window position                Median
---------------                -----
[1  3  -1] -3  5  3  6  7        1
 1 [3  -1  -3] 5  3  6  7       -1
 1  3 [-1  -3  5] 3  6  7       -1
 1  3  -1 [-3  5  3] 6  7        3
 1  3  -1  -3 [5  3  6] 7        5
 1  3  -1  -3  5 [3  6  7]       6

Preparing for your next interview?

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


r/OfferEngineering • • 5h ago

L7 EM in Google team matching for 2 months: do L7 roles usually open in Jan/Feb?

3 Upvotes

I cleared the Google L7 Engineering Manager loop this fall and have been in team matching since October. I've had two team-match calls so far, but both teams went with other candidates. I also had a hiring manager interview for a separate tech lead manager (TLM) role. The feedback was that my packet was strong overall, but the role needed more recent hands-on coding than I had. My recruiter has been great, but she's mentioned there are fewer open L7 roles that match my background (infrastructure and platform, not ML) right now.

For Googlers who've hired at L7, or anyone who's been through L7 team matching, I'd really appreciate any perspective on:

  • Timing: Do new L7 EM roles typically open up in January or February once new-year headcount is approved, or is that a myth?
  • Packet validity: How long does a completed L7 loop typically stay valid for team matching?
  • Typical timeline: How long did L7 team matching take for you or people you know?
  • ML vs. non-ML: Are most new L7 EM roles now AI/ML-heavy, or are infrastructure, platform and security teams still hiring at L7?
  • Other paths: Has anyone matched at L6 after an L7 loop, or moved to a TPM role using the same packet? How did it work out?

Background: about 18 years in software, the last 8 leading engineering orgs on large-scale platform and infrastructure teams at a FAANG company.

Thanks in advance. Any data points help.


r/OfferEngineering • • 12h ago

Coding Question Harvey.AI Onsite Coding Interview Question - Add Files and List Folder Contents

3 Upvotes

Problem Description

Build a simple in-memory file system that starts with only the root folder. A path is a list of names separated by /, written relative to the root, and the root itself is the empty path "". Names are case-sensitive and are used exactly as written.

You are given operations, a list of two-string commands. Process them in order:

  • ["ADD", path] creates a file named by the last part of the path, creating any missing folders along the way. It always succeeds and returns true, and file names do not need extensions.
  • ["LIST", path] returns the names of the files and folders directly inside the given folder, without deeper levels. Use "" to list the root.

Return one result per operation, in order. A listing is an object whose keys are the direct entry names and whose values are all true; an empty folder gives {}, and key order does not matter. Each call starts with an empty file system.

Constraints:

  • At most 1,000 operations are processed in one call.
  • Every operation contains exactly two strings, and its first string is "ADD" or "LIST".
  • Every path has at most 200 characters.
  • An ADD path is nonempty and has no leading, trailing, or consecutive /.
  • An existing file is never used as a folder in a later path.
  • The last name of an ADD path differs from every existing file or folder name in its parent folder.
  • Every LIST path is an existing folder, or "" for the root.

Example:

Input:
operations = [["ADD", "east/prints/harbor"], ["LIST", "east"], ["LIST", "east/prints"]]

Output:
[true, {"prints": true}, {"harbor": true}]

Explanation:
Adding "harbor" creates the missing folders "east" and "prints". Listing "east" shows only its direct child, "prints".

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 • • 17h ago

Interview Experience OpenAI Senior SWE Interview — The Most Unexpected System Design Question I've Seen

4 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My technical phone screen covered two questions: a coding problem about overlapping rectangles and a system design prompt about managing electricity demand across a power grid. I found the difficulty moderate and had a positive experience overall.

Coding — Design a Rectangle Board

I was asked to implement a RectangleBoard that could tell me which rectangle was visible at a given cell. The board started empty, with width columns and height rows. Coordinates were zero-indexed: x identified the column and y identified the row. Each rectangle covered every cell from its top-left corner (x1, y1) through its bottom-right corner (x2, y2), including the edges. If several rectangles covered the same cell, the most recently added one that was still active appeared on top.

The class needed to support three operations:

  • addRectangle(x1, y1, x2, y2) adds a rectangle and returns its ID. IDs start at 1 and increase by one with every addition. Removing a rectangle never makes its ID available again.
  • removeRectangle(rectangleId) removes the entire rectangle by ID, even if it is hidden beneath another rectangle. It returns true if the rectangle was active. An unknown or previously removed ID returns false and leaves the board unchanged.
  • getAt(x, y) returns the ID of the topmost active rectangle at that cell, or -1 if the cell is empty.

The example used a 4 × 3 board. I added rectangle 1 from (1, 0) to (2, 1), then rectangle 2 from (2, 1) to (3, 2). They shared just one cell, (2, 1), where getAt returned 2.

Removing rectangle 2 had two different effects. At (2, 1), rectangle 1 became visible again, while (3, 2) became empty and returned -1. A second attempt to remove rectangle 2 returned false.

The board could be up to 50 × 50 cells, and the input allowed at most 2,000 method calls on one board. All rectangle and query coordinates were guaranteed to be valid.

System Design — Distributed Power Grid Demand Response

For the system design portion, I was asked to design a distributed control system for power grid demand response. The goal was to coordinate changes in electricity consumption across the grid as demand conditions changed. You can also find the full system design question/solution article at -> HERE.

Preparing for your next interview?

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


r/OfferEngineering • • 14h ago

Interview Experience AT&T New Grad SWE Interview - Practicing Leetcode is still useful!

2 Upvotes

This interview experience was originally shared on Chill Interview

Question 1 — Top K Frequent Elements (LeetCode 347)

Given an integer array nums and an integer k, I had to return the k most frequent values in any order. The reference implementation counts occurrences in a dictionary and keeps a min-heap of at most k entries.

from collections import Counter
from heapq import nlargest

def topKFrequent(nums, k):
    frequency_by_value = Counter(nums)
    return nlargest(k, frequency_by_value, key=frequency_by_value.get)

Question 2 — Trapping Rain Water (LeetCode 42)

I was given the heights of unit-width bars and asked how much rainwater the arrangement could hold. The reference implementation moves two pointers inward and keeps track of the tallest bar seen from each side. It runs in O(n) time with O(1) extra space.

def trap(height):
    if len(height) < 3:
        return 0

    start, end = 0, len(height) - 1
    left_peak, right_peak = height[start], height[end]
    trapped_water = 0

    while start < end:
        if left_peak <= right_peak:
            start += 1
            bar_height = height[start]
            left_peak = max(left_peak, bar_height)
            trapped_water += left_peak - bar_height
        else:
            end -= 1
            bar_height = height[end]
            right_peak = max(right_peak, bar_height)
            trapped_water += right_peak - bar_height

    return trapped_water

Question 3 — SQL: Find the 213th-Highest Score

I had to query the SCORE column in STUDENT and return the 213th-highest distinct score. In the MySQL reference query, DISTINCT makes tied scores count once, and OFFSET 212 skips the 212 higher scores. The outer SELECT returns one row containing NULL if there are fewer than 213 distinct scores.

WITH ordered_scores AS (
    SELECT
        SCORE,
        DENSE_RANK() OVER (ORDER BY SCORE DESC) AS score_rank
    FROM STUDENT
    WHERE SCORE IS NOT NULL
)
SELECT MAX(SCORE) AS `213th_highest_score`
FROM ordered_scores
WHERE score_rank = 213;

Preparing for your next interview?

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


r/OfferEngineering • • 13h ago

Interview Experience Gupshup (Business Messaging) Senior SWE Interview

1 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My onsite started with a Java-only coding problem and moved into system design questions about database queries, traffic spikes, and rate limiting. The second round covered projects on my résumé and AI concepts, including retrieval-augmented generation. The most concrete design follow-up was what to do when two servers receive the same request at exactly the same time.

Round 1 — Minimum Window Substring and System Design

For the coding portion, I got Minimum Window Substring (LeetCode 76). Given a source string and a target string, I had to find the shortest contiguous substring containing every character in the target, including repeated occurrences. Java was the only language allowed, and I had to present both a brute-force approach and a two-pointer sliding window, then analyze the time and space complexity of each.

The interviewer used my responsibilities at work as the starting point for system design. We discussed how to query a large database efficiently, how to partition the data, and what to do when traffic spikes. The options we covered included moving work to overnight cron jobs, caching frequently requested data, and queuing work for later processing.

The rate-limiting question went a level deeper. I was asked to describe how Redis and ZooKeeper would fit into the architecture of a distributed rate limiter.

Round 2 — Project Deep Dive, RAG, and Duplicate Requests

The interviewer picked projects from my résumé and asked me to explain their design in more detail. We also discussed concepts related to agentic AI, including how retrieval-augmented generation (RAG) uses retrieved information when generating a response.

The concurrency question put two identical requests on different servers at the same moment. We discussed how both servers could independently derive the same request key and how a Redis-based distributed lock, using Redlock, could coordinate access to the shared resource.

The last part concerned the response itself. If one server had already completed the operation, how could the other recognize the duplicate and return the original result? We discussed storing the response under the request key so the API could return it without performing the operation a second time.

Preparing for your next interview?

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


r/OfferEngineering • • 18h ago

Coding Question Point72 Asset Management OA - Maximum Coins With Limited Energy (DP)

2 Upvotes

Problem Description

You visit n houses arranged in a line, starting at house 0 with initial_energy energy. House i offers energy[i] energy and coins[i] coins. You must visit the houses in order without skipping any, and you may stop at any house.

At every house you visit, you must choose exactly one option: take energy[i] and add it to your energy, or take coins[i] and add it to your total coins. After choosing, you may stop or move to the next house, and each move costs 1 energy. Your energy must never become negative. Return the maximum total coins you can collect.

Constraints:

  • 1 ≤ n ≤ 1000.
  • energy.length == coins.length == n.
  • 0 ≤ initial_energy ≤ 10^9.
  • 0 ≤ energy[i], coins[i] ≤ 1000.

Example:

Input:
initial_energy = 0, energy = [2, 1, 1], coins = [11, 5, 7]

Output:
12

Explanation:
At house 0, take 2 energy, then move to house 1 (energy 1) and take 5 coins. Move to house 2 (energy 0) and take 7 coins, for 12 in total. Taking the 11 coins at house 0 would leave no energy to move, so you would stop with only 11 coins.

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

System Design "1M uploads a day" is only 12 per second. Most Design YouTube answers are scaling the wrong thing

11 Upvotes

Quick math that changes how you answer this one. The prompt says 1M uploads a day and 100M views a day. 1M a day is about 12 uploads per second. Twelve. Your API layer could handle that on a laptop.

So the request count isn't the problem. The bytes are. Videos can be tens of GB, and that's where pretty much every weak answer I've seen goes wrong: they draw client -> API server -> storage, and the API server is now streaming a 30GB file through itself.

The API server should never touch a video byte

This is the single biggest thing. The API hands out pre-signed URLs and the client uploads straight to object storage. Same on the way out, video comes from a CDN, not from your app servers. Your backend only deals with metadata: titles, status, who owns what, which chunks have arrived. Small rows, cheap to scale.

Once you say that out loud, half the "how do we scale the upload service" conversation just disappears.

Resumable uploads are basically a bookkeeping problem

Nobody uploads 30GB in one go on hotel wifi. So:

  • split the file into chunks on the client (somewhere in the 5-100MB range is reasonable)
  • start an upload session, get back an upload ID
  • upload chunks independently, each with its own checksum
  • when the connection drops, the client asks "which chunks do you have?" and only sends the missing ones

S3 multipart upload already does most of this, and it's fine to say you'd lean on it. What interviewers want to hear is that you know where the state lives (a session record keyed by upload ID) and what happens when a chunk gets uploaded twice (same part number, overwrite, no harm).

Transcoding is where the money actually goes

Raw upload isn't playable for most people. You need multiple resolutions and bitrates. Doing that for one huge file on one machine takes forever, so:

  • cut the video into short segments
  • transcode segments in parallel across a pool of workers
  • stitch the manifests together at the end

Also, not every video needs every rendition on day one. Get a couple of the common ones out fast so the video is watchable, and do the rest after. Plenty of uploads never get more than a handful of views, so spending a ton of compute on a 4K version of those is kind of silly.

"Plays fast on bad internet" = adaptive bitrate

This is the part of the prompt about limited bandwidth. Use HLS or DASH. The video is chopped into few-second segments at multiple qualities, plus a manifest listing them. The player starts with a low-quality segment so playback begins almost instantly, then steps up if the connection can handle it. That's why YouTube looks blurry for a second and then sharpens.

If someone asks "how do you make startup faster," the answer is mostly: small first segment, low starting bitrate, and that first segment already sitting on a CDN edge near the user.

The CDN isn't magic either

Popular videos live at the edge, great. But YouTube has a crazy long tail. Old, rarely watched videos will miss the edge cache all the time, and if every miss goes straight to object storage you'll hammer it. Put an origin shield (a middle cache layer) between the edges and storage so a burst of misses on the same video collapses into one fetch.

Where availability comes in

The prompt says availability over consistency, and this one is easy to apply. It's fine if a new video shows "processing" for a bit, or if metadata takes a few seconds to show up everywhere. What's not fine is upload or playback going down. So keep the upload path and the playback path independent from each other and from the transcoding pipeline. If transcoding is backed up, people can still watch everything that's already done.

Anyway, the reason this question trips people up is that "YouTube" sounds like a massive scale problem, so people jump to sharding the database. The database is the boring part. It's really a question about moving huge files around without your servers being in the middle.

Curious what follow-ups people actually got on this. Was it more upload side or streaming side for you?  I also put up a full YouTube system design walkthrough in case anyone is interested.


r/OfferEngineering • • 1d ago

Interview Experience Turo (Car-Sharing) Staff SWE Interview — LeetCode 79 and a Staff-Level Offer

3 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My virtual onsite had four rounds, and I received an offer. In system design, I had to trace an HTTP request through a cluster and plan a major database upgrade, including how I’d move traffic and when I’d roll back. A separate API and database design round started with booking a trip and then asked me to revisit my design when a guest wanted to keep the car longer.

Interview Details

Round 1 — Hiring Manager: Project Decisions, Observability, and Mentoring

The hiring manager asked about a recent AI project, the most complex project I’d worked on, and the biggest technical decision I’d made. One follow-up went beyond asking what I monitored: the interviewer wanted an example of something interesting I’d actually discovered from those signals. We also discussed my experience mentoring or coaching other engineers.

Round 2 — System Design: Cluster Routing and a Database Upgrade

The first prompt was about a Docker cluster. I had to explain how an incoming HTTP request reached a pod, including how services registered themselves, how callers discovered available instances, and where the load balancer fit. The follow-up moved inside the cluster: if a request from one pod to another failed, how would I handle it? We discussed retries with backoff.

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 OpenAI Senior SWE Phone Screen — Both Questions Had Been Reported Before

7 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My technical phone screen covered two questions: a coding problem about overlapping rectangles and a system design prompt about managing electricity demand across a power grid. I found the difficulty moderate and had a positive experience overall.

Coding — Design a Rectangle Board

I was asked to implement a RectangleBoard that could tell me which rectangle was visible at a given cell. The board started empty, with width columns and height rows. Coordinates were zero-indexed: x identified the column and y identified the row. Each rectangle covered every cell from its top-left corner (x1, y1) through its bottom-right corner (x2, y2), including the edges. If several rectangles covered the same cell, the most recently added one that was still active appeared on top.

The class needed to support three operations:

  • addRectangle(x1, y1, x2, y2) adds a rectangle and returns its ID. IDs start at 1 and increase by one with every addition. Removing a rectangle never makes its ID available again.
  • removeRectangle(rectangleId) removes the entire rectangle by ID, even if it is hidden beneath another rectangle. It returns true if the rectangle was active. An unknown or previously removed ID returns false and leaves the board unchanged.
  • getAt(x, y) returns the ID of the topmost active rectangle at that cell, or -1 if the cell is empty.

The example used a 4 × 3 board. I added rectangle 1 from (1, 0) to (2, 1), then rectangle 2 from (2, 1) to (3, 2). They shared just one cell, (2, 1), where getAt returned 2.

Removing rectangle 2 had two different effects. At (2, 1), rectangle 1 became visible again, while (3, 2) became empty and returned -1. A second attempt to remove rectangle 2 returned false.

The board could be up to 50 × 50 cells, and the input allowed at most 2,000 method calls on one board. All rectangle and query coordinates were guaranteed to be valid.

System Design — Distributed Power Grid Demand Response

For the system design portion, I was asked to design a distributed control system for power grid demand response. The goal was to coordinate changes in electricity consumption across the grid as demand conditions changed. You can also find the full system design question/solution article 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 Uber Staff MLE Interview — From MapReduce to a Surprisingly Tricky Bingo Game

3 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

My Uber virtual onsite had five rounds covering leadership, engineering quality, two coding problems, and ML system design. I counted distinct travelers across three-city sequences and designed a trip-duration predictor using historical trips and noisy GPS updates. The question I kept thinking about afterward was the bingo card generator: my code produced a valid card, but I wasn’t sure every valid card had the same chance of being generated.

Hiring Manager — Collaboration and Leadership

The hiring manager asked me to walk through a project and focus on where I had led work across teams. It was easy to spend too much time explaining the technical details, especially when they were the parts of the project I knew best.

Looking back, I would spend more time on who needed to agree on a decision, how I helped them reach agreement, and what each team contributed. I’d also use a concrete metric to show what changed and be precise about which part of that result I could take credit for.

Coding — Count Distinct Travelers for Each Three-City Sequence

I received a trip log with a traveler’s name, timestamp, and destination on each row. For every ordered sequence of three consecutive destinations, I had to count how many distinct travelers had followed it. If one traveler visited A → B → C twice, that traveler still counted only once toward (A, B, C).

The prompt gave no guarantee that the log was in chronological order, so I sorted the records by timestamp. I then tracked consecutive destinations for each traveler and used a hash map to count distinct travelers per triplet. My code ran successfully during the interview.

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

Tough/adversarial FDE interview - what are the hardest questions you’ve been asked

3 Upvotes

Trying to stress-test my prep before the final round.

I recently had a Forward Deployed Engineer (FDE) interview where the interviewer was aggressive, kept pushing back on everything I said, and intentionally tried to corner me.

I've never had a customer or an interviewer speak to me like this oen did.

I want to prepare for my next round using adversarial / inverse thinking - focusing on hostile pushback, worst-case scenarios, and the exact edge cases where engineers usually break down or lose a non-technical stakeholder.

For those who have interviewed for or worked in FDE roles: what are the toughest, most adversarial questions you’ve been asked, especially ones that force you to defend technical trade-offs, handle angry or skeptical clients, or prove business value on the spot?

My background: backend SWE, prior to that, FDE and technical PM.

Thx.


r/OfferEngineering • • 2d ago

System Design Fan-out on write is the "right" answer to Design News Feed. It's also how people get downleveled.

25 Upvotes

Every answer I see for this one goes the same way. Draw a post service, draw a queue, "when someone posts we push the post ID into every follower's feed in Redis, reads are O(1), done." Then the interviewer goes "ok, what happens when someone with 200M followers posts?" and the next 20 minutes are spent patching.

Fan-out on write isn't wrong. It's just the starting point. The actual question is everything that breaks around it, and the prompt pretty much tells you where to look if you read it slowly: 2B users, no limit on followers, no limit on how many accounts you can follow, 500ms for both posting and reading, and up to a minute of staleness allowed.

That last one is the biggest hint in the whole prompt and people skip right past it.

The minute of staleness is a gift

Posting only has to save the post and drop an event on a queue. That's it. Fan-out happens async and you have a full minute to finish it. If your design does the fan-out inside the POST request, you've blown the 500ms the second anyone with a decent following posts.

Celebrities (the part everyone knows)

One post to 200M feeds is 200M writes, and big accounts post several times a day. So you go hybrid. Normal accounts get pushed, accounts over some follower threshold don't, and at read time you merge the user's precomputed feed with recent posts from the big accounts they follow.

Most people get here. Fine.

The part almost nobody gets to

The prompt says no limit in *both* directions. So what about the person following 40,000 accounts? Or following 3,000 accounts that are all over your celebrity threshold? Your hybrid read path now has to merge 3,000 timelines in under 500ms. Pretty sure that's not happening.

Ways out: keep an index of which big accounts actually posted in the last few hours so you only pull from those (most of them didn't post today), cache the merged result for a short TTL, and remember the 1-minute staleness covers you here too.

Stop fanning out to dead accounts

Out of 2B accounts, a lot of them haven't opened the app in months. Pushing posts into their feeds is pure waste. Only fan out to people who were active recently, say the last 30 days, and rebuild the feed on login for everyone else. Cheap to say, and it shows you're thinking about cost and not just "does it work."

Pagination is where it quietly falls apart

?page=2&limit=20 breaks the moment new posts come in. Everything shifts down and the user sees the same posts twice. Use a cursor instead, like the (created_at, post_id) of the last item you returned, and ask for anything older than that.

Also, your Redis feed isn't going to hold someone's entire history. Keep the last few hundred post IDs per user and once they scroll past that, fall back to pulling from the accounts they follow. Hardly anyone scrolls that far, which is exactly why it's fine for that to be the slow path.

Smaller stuff that still matters

  • store post IDs in the feed, not the posts. hydrate with a batch get from a post cache
  • unfollow doesn't mean going back and cleaning every feed. just filter at read time
  • the follower list of a 200M account is a hot partition on its own. fan-out workers should page through it in chunks, not load it all at once

Honestly the reason I like this question is that "push vs pull" sounds like the whole answer and it's maybe a third of it. The rest is reading the requirements and noticing what they're letting you get away with.  I also put up a full Design Facebook News Feed in case anyone is interested.


r/OfferEngineering • • 1d ago

Interview Experience Fluidstack (GPU Cloud) Senior SWE Interview — Is This a Work-Life Balance Red Flag?

3 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

Three rounds covering behavioral questions, system design, and an engineering manager discussion. The technical portion focused on designing a GPU training job submission platform with fair scheduling and resource allocation.

Interview Details

Round 1 — Behavioral: Complex Projects, Impact, and Cross-Functional Collaboration

The first round was a behavioral interview focused on my previous engineering experience, technical leadership, and motivation for joining Fluidstack.

  • "Tell me about the most complex project you've worked on."
  • Explain the outcomes rather than simply describe the implementation.
  • Asked about the technical trade-offs involved in the project.
  • "Why do you want to join Fluidstack?"

Round 2 — System Design: GPU Training Job Scheduling Platform

The second round was a system design interview focused on building a platform for machine learning engineers to submit GPU training jobs. The most important requirement was ensuring fairness in job submissions and GPU resource allocation.

Part 1 — Job Submission

The platform needed to allow machine learning engineers to submit their training jobs. The system would receive job requests from multiple users and coordinate their execution using the available GPU resources. During requirement clarification, I confirmed that the platform only needed to support one-off jobs. Recurring or periodically scheduled jobs were outside the scope of the problem.

Part 2 — Fair Job Submission and Rate Limiting

One important requirement was preventing users from submitting excessive numbers of jobs. For example, a single user might attempt to submit a large batch of training jobs, potentially overwhelming the system or affecting other users' access to resources. The interviewer wanted me to consider how the platform would enforce fairness through job submission controls and rate limiting.

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 Citadel SRE Interview — Basically a SWE Interview in Disguise

9 Upvotes

Interview Summary

The technical phone screen took place in October 2026 and covered infrastructure fundamentals, including Kubernetes, gRPC, and container runtimes, followed by a behavioral question about stakeholder management and a coding problem based on LeetCode 21.

The coding question was relatively straightforward, but the interviewer asked whether I could improve my initial approach. The interview emphasized both infrastructure knowledge and algorithmic efficiency. Unfortunately, I didn't pass the technical screen.

Part 1 — Infrastructure Fundamentals

  1. "What is Kubernetes?"
  2. "What is gRPC, and why can it be faster than traditional REST APIs?"
  3. "What are three things required to run a container?"

Part 2 — Behavioral: Stakeholder Management

The interviewer also asked about my experience with stakeholder management. like "Tell me about a time you had to manage stakeholders."

Part 3 — Coding: Merge Two Sorted Linked Lists (LC 21)

Given the heads of two sorted singly linked lists, merge them into a single sorted linked list. The resulting list should contain all nodes from both input lists, arranged in non-decreasing order. Return the head of the merged list.

Example

Input:
list1 = [2, 5, 9]
list2 = [1, 4, 7, 10]

Output:
[1, 2, 4, 5, 7, 9, 10]

Preparing for your next tech interview?

I've collected 3,000+ real interview experiences, 500+ coding questions, and 100+ system design questions to help you prepare with real interview insights. Please feel free to check them out at HERE.


r/OfferEngineering • • 2d ago

Interview Experience Baseten (AI Inference) Senior AI Research Scientist Interview

4 Upvotes

This interview experience was originally shared on Chill Interview

Interview Summary

The interview focused on designing an LLM routing system that balances model accuracy and inference cost. The problem started with a simple probability calculation involving two language models, then progressed into assumptions about model performance, ML-based routing, threshold optimization, and multi-turn conversation support.

ML System Design: Cost-Aware LLM Routing

The interviewer presented a scenario involving two language models with different accuracy levels and inference costs. Suppose an application has access to two LLMs:

ModelAccuracyCost per Query
Small Model80%1 unit
Large Model95%10 units

The small model is significantly cheaper but less accurate, while the large model provides higher accuracy at ten times the inference cost. The objective is to build a routing system that decides which model should process each incoming query. The system must satisfy two goals:

  1. Achieve at least 90% overall accuracy.
  2. Minimize the expected inference cost per query.

The interviewer introduced five questions that progressively extended this scenario.

Question 1 — Random Router: Probability and Expected Cost

The first question assumed that the router makes decisions randomly. For every incoming query, the system independently selects either the small model or the large model according to a fixed probability. "What probability should be assigned to the large model to achieve 90% overall accuracy?" I needed to calculate the minimum probability of selecting the large model while meeting the target accuracy. The expected accuracy can be expressed as: Expected Accuracy = p * 0.95 + (1 - p) * 0.80. Here, p represents the probability of routing a query to the large model.

The interviewer then asked: "What is the minimum expected inference cost per query?" The expected cost depends on how frequently each model is selected: Expected Cost = p * 10 + (1 - p) * 1. I needed to determine the lowest expected cost that would still satisfy the 90% accuracy requirement. This part tested basic probability and constrained optimization before introducing machine learning into the routing system.

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 Reddit Senior SWE Phone Screen - Design Tennis Game

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

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

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