r/OfferEngineering • • 3h ago

Interview Experience Netflix Senior SWE Coding Screen - Design a Fixed-TTL Cache

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Details

I was asked to design a time-based cache in which every stored value has the same fixed time-to-live (TTL). Once a value reaches its expiration time, it should no longer be considered valid. The central task was to implement the cache while accounting for the expiration of stored values. Unlike a conventional cache that only stores and retrieves data, this problem also required considering how expiration affects the cache's behavior over time.

After discussing the basic implementation, the interviewer asked me to analyze its time and space complexity. The discussion focused on the computational costs associated with cache operations and how those costs could change as the cache grew.

The interviewer then asked about possible optimizations to the cache implementation. I needed to consider how the design could be made more efficient, particularly when handling expiration-related work.

Another follow-up focused on eviction behavior. The interviewer wanted me to discuss how the cache should manage entries that were no longer valid and how eviction decisions would affect the overall implementation.

The final topic involved cleaning up expired cache entries. The interviewer asked me to reason about how expired values should be removed from storage and what trade-offs different cleanup strategies might introduce.

This extended the problem beyond checking whether a cached value had expired. The discussion also considered the ongoing management of expired data and its implications for resource usage and performance.

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

Interview Experience Millennium Management Full Stack Engineer Interview - from client-server communication to java coding

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently had a 45-minute video interview for a Full Stack Engineer position at Millennium Management. The interview covered my previous projects, client-server communication, scalability, and three Java code analysis questions involving floating-point precision, hash-based collections, and multithreading.

The interviewer mentioned that the team was hiring for only one position, which made the process feel quite competitive. I also had difficulty understanding some of the questions because they weren't communicated very clearly, and I didn't feel the interviewer was particularly engaged. I'm still waiting for the final result, but I suspect I may not move forward.

Interview Details

Project Discussion: Client-Server Communication and Scalability

The interview started with questions about my previous engineering projects. I was asked to explain some of the systems I had worked on and discuss how different services communicated with client applications.

The interviewer also brought up scalability and asked questions related to designing systems that could handle increasing workloads. Unfortunately, the questions were sometimes difficult to interpret, which made the discussion less productive than I had hoped.

Question 1 — Java: Floating-Point Precision and Equality

The first coding question involved a short Java program performing arithmetic with double values. I was asked to predict the printed output and explain why two calculations that appeared mathematically equivalent might produce different results.

The code was similar to the following:

public class DecimalCheck {
    public static void main(String[] args) {
        double x = 0.3 - 0.2;
        double y = 0.2 - 0.1;

        System.out.println((float) x);
        System.out.println((float) y);
        System.out.println(x == y);
        System.out.println(x == y);
    }
}

After predicting the output, I was asked how I would modify the code so that the two calculated values could be compared as equal. The question focused on Java floating-point representation, precision, numeric casting, and equality comparisons.

Question 2 — Java: HashSet, ArrayList, and Mutable Objects

The second question involved a custom class representing a two-dimensional point. The class implemented equals() and hashCode() based on its coordinates, but the coordinate fields were mutable. The interviewer provided code similar to this:

import java.util.*;

class Coordinate {
    int x, y;

    Coordinate(int x, int y) {
        this.x = x;
        this.y = y;
    }

    
    public int hashCode() {
        return Objects.hash(x, y);
    }

    
    public boolean equals(Object obj) {
        if (!(obj instanceof Coordinate)) {
            return false;
        }

        Coordinate other = (Coordinate) obj;
        return x == other.x && y == other.y;
    }

    
    public String toString() {
        return "(" + x + ", " + y + ")";
    }
}

public class CollectionCheck {
    public static void main(String[] args) {
        Collection<Coordinate> set = new HashSet<>();
        Collection<Coordinate> list = new ArrayList<>();

        Coordinate p = new Coordinate(3, 4);
        set.add(p);
        list.add(p);

        System.out.println(set.contains(p));
        System.out.println(list.contains(p));

        p.x = 6;
        Coordinate q = new Coordinate(6, 4);

        System.out.println(set.contains(q));
        System.out.println(set.contains(p));
        System.out.println(list.contains(p));

        set.remove(p);
        System.out.println(set);
    }
}

I was asked to predict what each println statement would output. The interviewer specifically wanted me to reason about what happens when an object is inserted into a HashSet, its fields are modified afterward, and another object with equivalent coordinate values is created.

The discussion also involved comparing the behavior of HashSet and ArrayList when checking for or removing objects. The central concepts were object equality, hash codes, mutability, and how Java collections handle objects whose hash-relevant fields change after insertion.

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

Interview Experience Nvidia SWE Intern Interview — No LeetCode, But You'd Better Know Networking, a lot!

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The technical portion was particularly interesting because it combined code quality analysis with a neural network computation graph problem. Rather than asking a standalone LeetCode question, the interviewer provided an existing Network abstraction and asked me to complete several related tasks.

Interview Details

Part 1 — Introduction and Resume Deep Dive

The interview began with approximately five minutes of introductions, during which the interviewer and I briefly introduced ourselves. We then spent about 15 minutes discussing my resume, including my previous projects and technical experience.

During the resume deep dive, the interviewer occasionally asked fundamental computer science and engineering questions related to the technologies mentioned in my background. These questions were integrated into the project discussion rather than presented as a separate technical quiz.

Part 2 — C++ Code Review: Network and Layer APIs

The 35-minute technical portion began with an existing C++ implementation of a Network class. The class exposed two important methods:

  • addLayer: Adds a new layer to the network.

  • addLayerOutput: Establishes data dependencies between layers by connecting their outputs.

My first task was to review the provided C++ code and evaluate its quality. The interviewer wanted me to examine the existing implementation and identify potential issues or areas that could be improved.

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

Interview Experience Anthropic Staff SWE Interview (before IPO) - questions are manageable, but the bar is extremely high!

26 Upvotes

Interview Summary

I recently went through the interview process for a Growth Software Engineer position at Anthropic but unfortunately didn't receive an offer. The process included a take-home growth experiment, a TypeScript pull request review, a system design round, and several interviews focused on my experience and cultural fit.

The technical rounds were quite different from traditional LeetCode interviews, emphasizing real product workflows, code review judgment, experimentation, and system design trade-offs. The most memorable parts were reviewing four PRs under a tight time limit and designing a prompt-saving Playground with concurrent editing and sharing considerations.

Interview Details

Take-Home Assessment — API Onboarding and Growth Experiment

The take-home assignment was conducted through CodeSignal and took approximately two hours. I was given a test account and asked to experience the onboarding process as a new developer, starting with creating an API key and continuing until I successfully made my first API request.

The objective was to identify where new users might encounter friction or get stuck during their initial experience with the platform. I needed to examine the onboarding journey from a growth perspective and identify opportunities to improve the experience.

After reviewing the workflow, I was asked to propose two experiments: one larger experiment and one smaller experiment. I then had to select one of them, turn it into a concrete A/B test, and explain which metrics I would use to evaluate whether the experiment was successful.

Round 1 — Slop Review: Four TypeScript Pull Requests

One of the technical rounds was called Slop Review, where I had 55 minutes to review four TypeScript pull requests. AI assistance was allowed, but I still needed to understand the code changes and independently evaluate whether the proposed modifications were correct.

For each PR, I was expected to identify what the change was trying to accomplish and determine whether there were serious issues that should block merging. After reviewing the PRs, I also needed to choose one and implement a fix.

The time constraint made this round particularly challenging because there were four separate changes to evaluate before moving into implementation. I found that when AI identified a potential bug, it was important to trace the relevant call chain myself and determine the actual conditions under which the issue could occur.

Simply repeating an AI-generated warning wasn't enough to demonstrate that the bug was real. The interview required me to understand the surrounding code and clearly explain why a particular change could cause problems.

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

VO面经|一道披萨算价题,面试官追问了什么

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 1d ago

System Design Anthropic, OpenAI, FAANG all asked - Design GPU Cluster Scheduling Platform

14 Upvotes

Problem Description

Design the scheduling and execution layer for a shared GPU cluster used by multiple teams for ML training, fine-tuning, and batch inference workloads. Users submit containerized jobs with GPU, memory, and priority requirements, and the platform decides where and when those jobs should run.

Each job fits entirely on a single GPU node. Distributed multi-node training and gang scheduling are out of scope for the core design. The scheduler therefore needs to choose one suitable node, reserve its resources, launch the container through a node agent, and track the job until completion or failure.

The key correctness challenge is keeping the scheduler, persistent database, and remote node agent consistent during partial failures. A scheduler may reserve GPUs and then crash, or a selected node may disappear before the container starts. Reservations therefore need bounded leases or expiration so GPU capacity is never permanently consumed by a ghost placement.

Priority also affects execution. When no capacity is available, a high-priority job may preempt a running job of strictly lower priority, but never one of equal priority. The platform sends a graceful stop signal and requeues the evicted job; preserving application checkpoints is the workload's responsibility.

Functional Requirements

  • Users should be able to submit a GPU job specifying a container image, requested GPU count, memory requirement, priority level, and execution metadata.

  • The scheduler should place pending jobs onto nodes based on priority, resource fit, available GPU capacity, and per-team fairness. Each job should run entirely on one node.

  • Target nodes should pull the specified container image and execute it with appropriate GPU, memory, and network isolation so one user's job cannot interfere with another's resources.

  • When a higher-priority job arrives and no suitable resources are available, the platform may preempt running jobs of strictly lower priority. The preempted container should receive a graceful termination signal and the job should return to the pending queue.

  • The system should track durable job and placement state so scheduler restarts do not lose pending jobs, running assignments, retry history, or final outcomes.

  • Users should be able to query job status and retrieve execution logs or references to output artifacts after completion or failure.

I also put together a full system design walkthrough covering the architecture and trade-offs for anyone interested.


r/OfferEngineering • • 1d ago

Interview Experience Harvey AI (Legal AI) Senior SWE Interview - Weeks of interview prep, ended up with an automated email rejection !!

1 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently completed the full interview process for a Senior Software Engineer position at Harvey, including a technical screen and four onsite rounds. The interviews covered spreadsheet construction, citation tagging, a large-scale LLM document processing system, AI-assisted coding, and a deep dive into my previous projects.

I was able to complete all three parts of the technical screen and two parts of the onsite live coding round, and I felt particularly good about my project deep dive. Unfortunately, I received an automated rejection email afterward, and the recruiter hasn't responded to my requests for feedback.

Interview Details

Round 1 — Technical Screen: Building Spreadsheets

The initial technical screening involved a coding problem centered on building spreadsheets. The problem was divided into three parts, and I managed to complete all three during the interview. This interview report mentioned this coding problem. After passing the technical screen, I moved on to the onsite stage, which consisted of four additional rounds.

Round 2 — Live Coding: Citation Tagging

The first onsite round was a live coding exercise involving citation tagging. I was asked to work through a problem related to identifying and tagging citations, with the task divided into multiple parts. I completed the first two parts and still had some time remaining. I felt reasonably good about my performance in this round.

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 Meta FAIR Research Scientist — six interviews across two consecutive days was mentally draining

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The loop consisted of three research design interviews, one coding round, one behavioral interview, and one ML fundamentals round. The most unexpected question involved explaining why a classifier produced slightly different logits for batched versus sequential inference, while the coding round focused on compressed vector representations and fuzzy word matching. Unfortunately, I didn't pass the loop, and I felt that the compressed schedule affected my performance.

Interview Details

Research Design — Three Rounds: Research Deep Dive and Numerical Precision

Three of my interviews focused primarily on my previous research. I was asked to explain my work, discuss the underlying ideas, and communicate the technical details to interviewers with different backgrounds.

In one round, the interviewer specifically asked me to explain my research as if I were speaking to a first-year college student with almost no technical knowledge. The challenge was to simplify the research enough to make it understandable without losing the essential ideas.

Research Puzzle — Batch vs. Sequential Inference Logit Differences

Another research interviewer reserved approximately 20 minutes for a technical puzzle. The question described a classifier that produced slightly different output logits depending on whether the inputs were processed together in a batch or individually in sequence. The observed difference was extremely small, approximately 10^-11, even though the underlying model and inputs were the same. The interviewer asked two main questions:

  • What could cause the classifier to produce different logits under batched and sequential inference?

  • How could this numerical discrepancy be addressed or eliminated?

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 Sierra (AI Customer Service) Senior SWE Interview — From Cursor Pagination to LLM Compaction

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently completed a 45-minute hands-on Agent Coding interview with Sierra, where I had to work within an existing codebase rather than implement a standalone algorithm. The assignment focused on retrieving paginated conversation history through existing APIs and compacting that history to fit within a token budget.

The most interesting part was that several requirements were intentionally left open for clarification, so understanding the existing classes and API contracts was essential before writing code. The follow-up discussion explored streaming large histories, summary token accounting, failure recovery, and testing compaction behavior.

Interview Details

Round 1 — Agent Coding: Conversation History Retrieval and Compaction

I was given an existing codebase containing several API classes responsible for retrieving conversations and their content. Before implementing anything, I needed to understand how these classes interacted, what each API returned, and how conversation history was represented. I started by asking the interviewer several clarification questions about the API behavior and the expected compaction rules. These questions covered the following areas:

  • Pagination Contract: Which class or method retrieves a page, what does each page contain, and how is the end of pagination indicated? Is it determined by a missing next_cursor, a null value, or an empty page?

  • Conversation Structure: Does the API return a collection of conversations, the messages within a conversation, or both? How is the ordering defined?

  • Token Metadata: Is token_count directly available on each message, or does it need to be extracted from text or nested metadata?

  • Compaction Semantics: Does compacting mean deleting old messages, merging messages, or replacing earlier content with a summary? What token budget should the implementation target?

  • Message Preservation: Are there messages that must remain untouched, such as system instructions or the most recent user turn?

Part 1 — Retrieve Complete Conversation History Using Cursor Pagination

The first implementation task was to retrieve the complete conversation history using the provided paginated API. Each API response returned a page of data along with a next_cursor, which could be used to request the following page.

I needed to continue fetching pages until pagination was complete and return the entire history in the correct order. The implementation had to avoid missing messages, introducing duplicates, or accidentally skipping the final page.

The task also required considering API reliability and pagination edge cases. In particular, I needed to account for transient API errors, repeated cursor values, and situations where pagination could continue indefinitely because of an invalid cursor sequence.

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

Sony Interactive Entertainment (SIE) Dublin – Hiring Manager round for SDE 2 next week, what should I expect?

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 1d ago

System Design Classic System Design Question - Design Ad Click Event Aggregation System

1 Upvotes

Ad click aggregation is a classic, but the version I came across (reported from Airbnb) is stricter than most. Ad-serving events and user actions come from separate streams and have to be joined before anything gets counted, with at-least-once delivery, out-of-order arrivals, and hot ads.

The numbers: 150K serving events/s + 80K action events/s = 230K/s. Dashboard freshness 30–90 s. Keep 14 days of raw events and 180 days of aggregates. 5–10% of traffic concentrates on a few hot ads.

Quick math: 230K/s × 86,400 ≈ 20B events/day. At ~300 bytes each, that's ~6 TB/day, or ~84 TB for the 14-day raw window before replication.

Things I think matter most:

1. Two shuffles, keyed differently.

  • Join stage, keyed by impression_id**:** match each click or view to its serving event. Impression IDs are uniformly distributed, so this stage has no hot keys at all, even when one ad is going viral.

  • Aggregation stage, keyed by (ad_id, action, region, minute)**:** this is where the skew lives, and it's a plain sum.

Most answers do everything keyed by ad_id and then spend 10 minutes fighting hot keys in the join. Split the stages and each problem gets much simpler.

2. Unmatched actions must wait, not drop.
A click can arrive before its serving event. Keep both sides in keyed state for a join window. Rough size: 150K/s × 1 hour × ~100 bytes ≈ 54 GB across the cluster, which is fine for a RocksDB-backed state store. Actions still unmatched after the window go to a side store for batch reconciliation. The prompt explicitly says they must stay recoverable.

3. count += 1 plus at-least-once equals double counting.
If your sink does increments, every retry or replay inflates the numbers. Either:

  • dedup by event ID in state within the window, and

  • write aggregates as overwrites of the full window value (upsert (key, window) → count) instead of increments, so reprocessing the same window is harmless.

Exactly-once with transactional sinks also works, but idempotent overwrites are easier to reason about and survive replays.

4. Hot keys are easy once aggregation is separated.
A sum is associative, so salt the hot keys (ad_id#0..N), pre-aggregate the partial sums, then merge. Or combine locally before the shuffle. This only works cleanly because the join already happened upstream.

5. Corrections = deterministic replay into a new version.
Freshness comes from 1-minute windows with early firing. Late events within allowed lateness just update the window. For anything later, or when you fix a logic bug, replay the same job over the 14-day log, recompute the affected (day, ad) partitions, and replace them rather than adding to them. One codebase for streaming and backfill, instead of separate Lambda-style stream and batch code.

6. 180 days of history stays cheap through rollups.
Keep minute-level data for the recent window, hourly and daily rollups for the rest, in an OLAP store like Pinot, Druid, or ClickHouse. Dashboards never touch raw events.

Where would you push back? I'm least sure about the join window. An hour covers most delayed clicks, but some ad platforms attribute conversions days later, and that changes the state math a lot.

I wrote out the full design here covering the architecture and trade-offs for anyone interested.


r/OfferEngineering • • 2d ago

AI coding round help

1 Upvotes

I fumbled my last ai coding round! How do you guys deal with this? I am decent on leetcode style but struggling to deal with agentic coding round. Love to hear tips/tricks from folks


r/OfferEngineering • • 2d ago

NVIDIA IC4 Offer Evaluation – 8 YOE | Current TC: $340K

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 2d ago

Interview Experience Amazon SDE II Interview — Four Rounds, One Verbal Offer

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently completed a four-round virtual onsite loop for an Amazon SDE II position and received a verbal offer afterward. Each 60-minute round was split into approximately 25 minutes of Leadership Principles (LP) questions and 35 minutes of technical discussion, covering graph algorithms, low-level design, distributed systems, and streaming data structures.

The interviewers went fairly deep into my behavioral examples, often asking three or four follow-up questions about the decisions, trade-offs, and outcomes in my STAR stories. The technical questions were also substantial, with each round testing a different area of software engineering.

Interview Details

Round 1 — Ownership & Dive Deep: Warehouse Delivery Routing

The first round started with behavioral questions centered on Amazon's Ownership and Dive Deep Leadership Principles. The interviewer explored my past experiences in detail before moving into a coding problem involving warehouse delivery routing.

For the coding portion, I was given an M × N grid representing a city map with three types of cells: warehouses (W), delivery locations (D), and blocked roads (#). My task was to calculate the minimum total distance needed to serve all delivery locations, assuming each delivery was assigned to its nearest warehouse. If any delivery location was unreachable, the function needed to return -1.

The problem was essentially a multi-source BFS question presented in a logistics scenario. I discussed how BFS could be used to reason about shortest distances from multiple warehouse locations and how blocked cells affected reachability.

The interviewer then introduced an additional constraint: What if each warehouse could fulfill at most K deliveries? This changed the problem from simple shortest-path computation into one that also required considering assignment and capacity constraints. We discussed how those additional restrictions affected the original graph traversal problem, including more advanced assignment techniques.

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

GEICO Distinguished MLE Offer — $749K TC

4 Upvotes

Recently saw this GEICO Distinguished Machine Learning Engineer offer from Chill Interview

  • Experience: 12 YOE / Master's

  • Base: $400K

  • RSU: $300K over 3 years

  • Annual Bonus: $250K

  • Year 1 TC: ~$749K

  • Decision: Declined

The numbers are huge. But what I'm more curious about is the actual scope of a Distinguished MLE at a non-tech company like GEICO.

At Google or Meta, Distinguished Engineers typically influence technical direction across large organizations, sometimes even company-wide.

But at GEICO, what would that look like?

Would they be building company-wide ML infrastructure, developing models for insurance pricing and fraud detection, leading AI transformation across departments, or mostly setting technical strategy and mentoring teams?

And how much hands-on engineering would someone at this level actually do?

If you got an offer or did interviews recently, would appreciate your data points shared here.


r/OfferEngineering • • 2d ago

System Design Designing URL shortener (Bitly) Sounds Easy — Until You Hit 1B URLs

6 Upvotes

This is probably one of the most common system design questions, but I think a lot of answers stop too early at: short_code → original_url

The interesting part starts when you add the actual constraints:

  • ~1B shortened URLs

  • ~100M daily active users

  • ~1000:1 read/write ratio

  • <100ms redirects

  • 99.99% availability

At that point, two questions become much more interesting:

  • How do you generate short codes without collisions across multiple servers?

  • And for redirects, do you actually need strong consistency?

For the read path, availability probably matters more. A slightly stale cache is usually much better than making a popular short link unavailable because your primary database is having issues.

But the write path is different. If two users request the same custom alias at the same time, only one of them can win. You suddenly need a much stronger uniqueness guarantee there.

So even for something as simple as Bitly, different parts of the same system can want very different consistency models. That distinction is what makes this question more interesting than “put Redis in front of a database.”

I wrote out the full design here covering the architecture and trade-offs for anyone interested.


r/OfferEngineering • • 2d ago

Interview Experience Affirm Senior SWE Interview — The AI Coding Round Came With All the Tests

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I went through a three-round virtual onsite interview with Affirm, consisting of a traditional coding round, an AI-assisted coding round, and a hiring manager interview. The first round involved aggregating merchant transaction amounts over the past 24 hours, while the AI coding round required debugging an existing full-stack learning platform and implementing a new API.

The AI coding round was particularly different from similar interviews I've had with other companies because the requirements were unusually detailed and came with complete tests. Unfortunately, I didn't pass the onsite, and I've already been searching for a job for quite some time.

Interview Details

Round 1 — Coding: Hourly Merchant Transaction Totals

The first round was a traditional coding interview involving a fairly unfamiliar problem with a surprisingly long description. It took some effort to understand all the requirements, but I didn't need to implement CSV parsing because the interviewer provided a test harness that already converted the input file into a list of dictionaries.

The problem involved transaction records containing the following fields:

  • user_id: The customer associated with the transaction.

  • merchant_id: The merchant receiving the transaction.

  • start_time: Transaction start timestamp.

  • end_time: Transaction end timestamp.

  • status: Transaction status, such as Completed or Failed.

  • amount: Transaction amount.

I was asked to implement a function that accepts a list of merchant IDs and calculates the total amount of completed transactions for each merchant, grouped by the number of hours ago they occurred. Only transactions within the last 24 hours should be included, and transactions that were not completed should be excluded.

The returned structure needed to map each merchant ID to another dictionary, where each key represented the number of hours ago and each value represented the total completed transaction amount for that hour.

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

System Design Classic system design: Design Google News. Five things I'd make sure to cover.

4 Upvotes

Came across "Design Google News" as a reported Amazon system design question. The prompt: aggregate articles from thousands of publishers across countries into one feed, keep it fresh, keep it highly available.

Most answers I've seen jump straight to the feed service and caching. That part is fine but fairly standard. The interesting parts are elsewhere:

1. Ingestion is a scheduling problem, not a "crawler box."
Thousands of publishers have very different publishing rates. Polling every RSS feed every minute wastes most requests. Polling everything hourly makes breaking news stale. I'd use adaptive polling per source based on how often it actually publishes, plus conditional GETs (ETag / If-Modified-Since) so unchanged feeds cost almost nothing. Add push (WebSub) where publishers support it, and per-domain rate limits so you don't hammer anyone.

2. The same story shows up hundreds of times.
One wire story (AP, Reuters) gets republished by hundreds of outlets with tiny edits. Without dedup, your feed is the same headline 40 times. You need URL canonicalization (strip tracking params, follow canonical tags) plus near-duplicate detection on the body (SimHash or MinHash). If the interviewer wants it, go one step further and cluster articles into "stories," which is what makes Google News feel like Google News.

3. The read path is mostly NOT personalized, so precompute it.
The top feed for "US / Technology" is the same for millions of readers. Build feeds per (region, category) every ~minute and serve them from cache or a CDN. Reads stay cheap no matter how many users you have, and freshness becomes a TTL decision rather than a database load problem.

4. Offset pagination breaks with infinite scroll.
New articles constantly land at the top. With ?page=2, a user scrolling down sees duplicates or skips items whenever new articles arrive in between. Use cursor-based pagination (e.g. published_at plus article_id) so the next page is anchored to the last item the user actually saw. It's a small detail that signals you've built a feed before.

5. A broken publisher should never break your feed.
Decouple ingestion from serving with a queue and your own article store. If a crawler backlog builds up or a publisher goes down, readers get the last good feed (stale-while-revalidate) instead of an error. Same for thumbnails: fetch, resize, and serve them from your own CDN rather than hotlinking publisher images that can disappear or be slow.

Curious what others prioritize here. Would you bring up story clustering on your own, or wait for the interviewer to ask? It feels like it could easily eat the whole interview. I also put together a full system design walkthrough covering the architecture and trade-offs for anyone interested.


r/OfferEngineering • • 2d ago

Interview Experience Paypal SWE Intern OA - 3 Easy Coding Problems

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The PayPal online assessment consisted of three relatively easy coding problems covering greedy algorithms, sliding-window rate limiting, and array traversal. Each problem focused on a common algorithmic pattern and could be handled efficiently using standard data structures such as heaps, hash maps, and queues.

Interview Details

Question 1 — Minimum Cost to Merge Array Elements

Given an integer array A, repeatedly select any two elements a and b, remove them from the array, and insert their sum a + b. Each operation incurs a cost equal to a + b, and the process continues until only one element remains.

The objective is to determine the minimum total cost required to merge the entire array into a single value. The key challenge is choosing the order of merges efficiently, making this a classic greedy problem involving a min-heap.

Question 2 — Per-User Sliding Window Rate Limiter

Given four inputs, users[], times[], k, and t, each request i is associated with user users[i] and timestamp times[i]. The timestamps are provided in sorted order, and each user is allowed at most k accepted requests within any sliding window of t seconds.

The task is to return an integer array results[], where results[i] = 1 if request i is accepted and results[i] = 0 if it is rejected. Each user's request history must be tracked independently, and timestamps outside the current window should no longer count toward the limit.

The main challenge is efficiently maintaining the relevant timestamps for each user as new requests arrive. The problem naturally involves a hash map combined with per-user queues.

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

System Design Airbnb ML System Design Question - Design Airbnb Relisting Detection System

2 Upvotes

Came across this ML system design prompt (reported from Airbnb interviews) and I think it’s one of the better ones I’ve seen, because the “standard” answer is easy to give and easy to poke holes in.

The prompt: A host gets a listing removed for policy violations. They come back with new photos, a rewritten description, a slightly changed address, different pricing, maybe a new account. Detect it at listing creation time (~500 ms–1 s budget) and return P(relisting). Downstream enforcement is graduated: auto-remove, hide from search, block booking, human review, or allow with monitoring. Auto-remove needs ≥90% precision. Removed-listing corpus is ~50K, with hundreds to thousands of new listings per hour.

The standard answer (which is fine):

  • Two stages: ANN retrieval over embeddings of removed listings, then a pairwise classifier on the top-K candidates

  • Pair features from independent signals: image similarity (embeddings + perceptual hash, max over photo pairs), text embedding similarity, geo distance after address normalization, host identity overlap (device, payment, phone, IP), price ratio, amenity Jaccard

  • GBDT on pair features, calibrated, take the max over candidates, map to tiers by threshold

  • Fail open with a batch re-sweep if the online path is down

Where I think the interesting discussion actually is:

  1. 50K items doesn’t need ANN. Brute-force cosine over 50K vectors is a few milliseconds. Proposing ANN on autopilot is a small signal that you aren’t sizing the problem. ANN starts to make sense once you index every photo separately or the corpus grows 100x.

  2. Hard negatives are the whole game. Identical units in the same apartment complex. A property manager running 40 near-identical listings. A new owner who bought a property that was removed under the old owner, sometimes reusing the old photos. All of these look like relistings on content similarity alone. That’s why the identity signal has to carry real weight for the auto-remove tier.

  3. Your labels are biased. You only get ground truth for listings that were flagged and reviewed. Train only on those and the model learns “what reviewers saw,” not “what relistings look like.” You need some random audit sampling below the threshold, or you can never measure recall.

  4. The adversary adapts. Once hosts learn photos get matched, they reshoot. Adding signals the host can’t cheaply change (device, payment instrument, geo cluster) matters more than squeezing another point of AUC out of the image model.

  5. 90% precision at auto-remove is a measurement problem as much as a modeling one. How do you verify it in production when positives are rare and appeals are slow?

I also put together a full system design walkthrough covering the architecture and trade-offs for anyone interested.


r/OfferEngineering • • 3d ago

Interview Experience Google Senior Security Engineer Interview — How Would You Steal Source Code?

5 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The coding and behavioral rounds were relatively similar to those commonly reported by other candidates, so I wanted to share the security-specific interview instead.

This round consisted of two questions. The first focused on security considerations when migrating a traditional monolithic LAMP application from on-premises infrastructure to the cloud. The second explored a security threat scenario from an attacker's perspective, involving the theft of source code from another person's laptop.

Interview Details

Question 1 — Securely Migrate a Monolithic LAMP Application to the Cloud

The interviewer presented the following scenario: "Suppose you have a monolithic LAMP application currently running on-premises. The organization wants to migrate it to the cloud. What security considerations should you evaluate during the migration?"

The application uses a traditional LAMP stack:

  • Linux: Operating system.

  • Apache: Web server.

  • MySQL: Relational database.

  • PHP: Application backend.

The application currently runs on infrastructure managed within the organization's own environment. The organization plans to move the application to a cloud platform. The core task is to identify and explain the security considerations involved in migrating the existing application from an on-premises environment to the cloud. The discussion was framed from the perspective of a Security Engineer responsible for understanding the security implications of the migration.

Because the position was within Google Cloud, I felt that this question was intended to assess foundational cloud security knowledge. It was less about writing code and more about understanding how security responsibilities and considerations change when moving a traditional application into a cloud environment. The question required evaluating the migration from a security perspective rather than focusing only on application functionality or infrastructure performance.

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

$452K TC at Figma vs. “AI will eat SaaS”: would you take it?

1 Upvotes

Saw this data point from Chill Interview

  • Figma, Senior SWE, San Francisco, ~8 YoE

  • Base: $230K

  • RSU: $750K over 4 years (25/25/25/25), so $187.5K/yr

  • Bonus: $34.5K (15%)

  • Year 1: ~$452K

That’s a strong offer. But the part I keep thinking about isn’t the number. It’s the 4-year vest.

The bear case: Claude, GPT, v0, Lovable and the rest can already go from prompt to working UI. If PMs and engineers can skip the mockup step, a big chunk of “design in Figma, then hand off to eng” disappears. Seat-based SaaS pricing also looks shaky if one person with AI does the work of three.

The bull case: Figma was never just a drawing tool. It’s where design systems, review, and cross-team collaboration live. AI tools still need a source of truth for “what does our product actually look like,” and Figma is pushing hard on exactly that: AI features in the editor, and handing design context to coding agents. Being the system of record that AI plugs into is a pretty defensible place to be.

What I’d actually weigh with this offer:

  • The RSU is ~40% of year-1 comp, so the stock’s AI narrative matters more than the base.

  • Are you building the AI layer or maintaining the legacy editor? Team choice probably matters more than company choice here.

  • Senior + Figma on your resume stays valuable either way.

Curious what people here think, especially anyone at Figma, Canva, or Adobe, or anyone who’s watched their own SaaS company deal with this. Is design tooling the next thing AI commoditizes, or the thing AI makes more central?

If you want more Figma data points (other offers and interview experiences), they’re here.


r/OfferEngineering • • 3d ago

Coding Question OpenAI & Perplexity Coding Screen Problem - Cloud Credit Balance Replay

3 Upvotes

Problem Description

A cloud platform gives customers GPU credits through time-limited grants. Each grant has:

  • a unique grant ID

  • an amount of credits

  • a start time

  • an expiration time

A grant is active during: [startTime, expirationTime). This means it is usable at startTime, but not usable at expirationTime.

The system also receives credit usage events. A usage event consumes credits at a specific timestamp. Events may arrive out of order. For example, the system may receive a usage event first and a grant event later, even if the grant started earlier. So every balance query must replay all currently known events in chronological order.

When consuming credits at time t:

  • only grants active at time t may be used

  • credits should be consumed from the grant that expires soonest first

  • if the usage cannot be fully covered, the query should return -1

Implement the CloudCreditSystem class:

  • CloudCreditSystem() initializes an empty credit system.

  • void addGrant(String grantId, int amount, int startTime, int expirationTime) adds a credit grant.

  • void useCredits(int amount, int timestamp) records a credit usage event.

  • int getBalance(int timestamp) returns the total remaining available credits at timestamp after replaying all known grants and usages up to that time. If any usage event up to timestamp cannot be fully covered, return -1.

Rules:

  • Grant and usage events may arrive in any order

  • No two mutation operations share the same timestamp

  • Grants can overlap

  • Usage consumes active credits with earliest expiration first

  • A grant is expired when expirationTime <= timestamp

  • Query results may change after later events are added

Constraints:

  • All amounts and times are in [0, 1000]

  • grantId is unique

  • Number of operations can be large enough that each query should process events efficiently

  • A grant is active on [startTime, expirationTime)

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

Interview Experience Whatnot (Live Shopping) SWE Interview — I Forgot to Mention GMV

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The AI coding round involved extending an existing auction application with two features: a new bidding strategy and a new auction format. The system design round focused on designing a donation system, while the final rounds evaluated product judgment and alignment with Whatnot's company values.

Interview Details

Round 1 — AI-Assisted Coding: Extend an Auction System

I was provided with an existing auction application containing starter code. The task was to understand the codebase and implement two additional features using an AI coding assistant.

Part 1 — Add a New Bidding Strategy

The first requirement involved introducing a new type of auction participant. This participant needed to follow a bidding strategy different from those already supported by the application. One example was a last-second bidder who waits until near the end of an auction before placing a bid. The implementation needed to integrate the new participant behavior into the existing auction system.

Part 2 — Add a New Auction Format

The second requirement involved implementing an additional auction type. A Dutch auction was given as an example of the kind of functionality that might be introduced. This required extending the existing system to support another auction mechanism while maintaining compatibility with its current features.

AI Coding Environment

The interview followed a structured format:

  • The complete session lasted approximately two hours.

  • I received around 45 minutes to independently implement both features using AI assistance.

  • The implementation phase included writing test cases.

  • The final 30 minutes were reserved for presenting and explaining my implementation to the interviewer.

During the presentation, I walked the interviewer through the code and explained how the two features worked. The interviewer evaluated my implementation, the edge cases I had considered, and my ability to communicate the solution.

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

System Design Design WhatsApp for Billions of Users — What Happens When Someone Goes Offline for 30 Days?

1 Upvotes

Designing a chat app sounds straightforward until you start thinking about message delivery at scale. Imagine you're building a WhatsApp-like messaging system for billions of users.

The requirements:

  • Real-time messaging: Deliver messages to online users within 500ms.

  • Offline delivery: Preserve undelivered messages for users who stay offline for up to 30 days.

  • Group chats: Support conversations with up to 100 participants.

  • Media sharing: Handle text, images, and videos.

  • Reliability: No message loss, even when individual servers fail.

WebSockets seem like the obvious choice for real-time communication. But what happens when the recipient is offline?You could store pending messages in a database and deliver them when the user reconnects.

But that raises some interesting questions:

  1. How do you avoid losing or duplicating messages when a server crashes during delivery?

  2. How do you know when a message is safe to delete from server storage?

  3. For a 100-person group chat, would you maintain separate pending-message queues for each recipient?

The trade-off between reliable delivery and storage efficiency gets pretty interesting at this scale. How would you design the offline message delivery system?

I also put together a full WhatsApp system design walkthrough covering the architecture and trade-offs for anyone interested.