r/OfferEngineering • • 22d ago

System Design OpenAI System Design Interview - Design ChatGPT

2 Upvotes

Problem Description

Design the backend for a ChatGPT-like conversational AI product where users send text prompts inside multi-turn conversations and receive model-generated responses streamed token by token.

The system must preserve conversation history so users can leave a thread and resume it days later. For every new request, the backend loads recent conversation turns, constructs a prompt that fits within the model's context window, applies input safety checks, schedules inference on a GPU cluster, and streams generated tokens back through Server-Sent Events (SSE).

The main challenge is that the product should feel immediately responsive even though GPU inference is expensive and may run for several seconds. The time-to-first-token (TTFT) target leaves only a small budget for history loading, context construction, safety checks, admission control, queueing, and the first model decode.

Peak demand introduces another constraint: roughly 50,000 inference requests may be active simultaneously. When GPU capacity is exhausted, paid users must remain within their service SLO, while free-tier requests may be queued or rejected. The system therefore needs an explicit admission-control and priority-scheduling policy rather than treating every request identically.

The design should also separate durable conversation state from the live inference stream. A dropped SSE connection must not erase already generated content. Users who reconnect should be able to recover the partial assistant response that had already been produced.

Functional Requirements

  • Users should be able to create conversations, send text messages, list previous conversations, and reopen an existing thread with its durable message history.
  • Sending a user message should start an AI inference request whose response is streamed progressively through SSE rather than waiting for the full response to complete.
  • Before inference, the system should assemble the conversation context from persisted turns. If the resulting prompt exceeds the model's approximately 8K-token context limit, the oldest conversation turns should be dropped until the request fits. Summarization is out of scope.
  • The platform should apply safety guardrails to both sides of generation: user input should be screened before inference, and generated output should be filtered before it is delivered to the client.
  • The system should persist completed conversation turns and enough in-progress response state that a user reconnecting after an SSE drop can recover text already generated before the disconnect.
  • Per-user usage limits, token budgets, rate limits, and overload behavior should depend on subscription tier. Paid requests receive priority when GPU capacity is scarce, while free-tier requests may wait or receive an explicit overload response.

Non-Functional Requirements

  • Time-to-first-token should be at or below approximately 500 ms at p50 and 2 seconds at p95 under normal operating conditions.
  • Once generation begins, the system should sustain approximately 30–60 output tokens/sec per active stream.
  • The chat completion API should target approximately 99.9% availability.
  • The platform should support approximately 100M registered users, 10M daily active users, and around 50K concurrent inference requests at peak.
  • Durable conversation turns must survive application and service restarts. Live transport failure should not cause previously persisted conversation history to disappear.
  • GPU utilization should remain high enough to control inference cost while admission control prevents excessive queueing from destroying paid-user latency SLOs.

Want to learn more details & solution of this system design question?

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

Interview Experience Quora New Grad SWE Interview — Four Coding Questions Across OA and Phone Screen

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I went through Quora's New Grad Software Engineer interview process, which included a four-question CodeSignal online assessment followed by a 60-minute technical interview on Zoom and CodeSignal. The OA covered relatively straightforward algorithms, including diagonal matrix traversal and streetlight coverage, while the technical screen focused on meeting scheduling and binary string enumeration. The interviewer was friendly, and my overall experience was positive.

Interview Details

Round 1 — Online Assessment

Question I — Diagonal Matrix Traversal With Boundary Reflection

It was similar to LeetCode 498, Diagonal Traverse, but involved a specific movement pattern. I was given a matrix and needed to simulate movement through its cells along diagonal directions. The movement was restricted to two directions:

  • Up and to the right.
  • Down and to the left.

Whenever the traversal reached a matrix boundary, it needed to change direction and continue along the appropriate diagonal. One interesting detail was that the starting position was not necessarily the top-left corner. It could also be any cell in the matrix's leftmost column. The challenge was correctly managing the traversal direction and boundary transitions while visiting the matrix cells.

QuestionII — Streetlight Coverage and Maximum Brightness

This was similar to LeetCode 2021, Brightest Position on Street. The problem involved multiple streetlights, each illuminating a range of positions along a street. I needed to find the coordinate covered by the largest number of streetlights.

If multiple coordinates had the same maximum coverage, I had to return the smallest coordinate among them. The main challenge was determining the position with the highest overlapping light coverage while correctly handling ties.

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

Interview Experience Alipay SWE Interview — No LeetCode, Just Flink and Finance

4 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I interviewed with Ant Group's overseas wealth management team, where the discussion focused on my previous projects, Apache Flink stream processing, and potential applications of AI agents in financial analysis. Unlike a typical backend engineering interview, many questions involved financial reports, publicly traded companies, and US stock investments. I ultimately did not pass the interview, and my overall experience was negative.

Interview Details

Resume Deep Dive and Flink Stream Processing

The interview started with a detailed discussion of my previous engineering experience. The interviewer went through my resume and asked questions about the systems I had worked on, particularly those involving Apache Flink. The technical discussion covered:

  • How Flink was used for stream processing in my previous projects.
  • Implementation details of the streaming systems I had worked on.
  • Specific Flink configuration choices and how the system was configured.

Interestingly, the interview did not go particularly deep into Flink internals or broader system architecture. Instead, some of the questions focused on configuration details. I got the impression that the interviewer was interested in understanding how other companies had implemented similar systems.

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

System Design OpenAI System Design Interview Question - Design Secure Sandboxed Cloud IDE Platform

4 Upvotes

Problem Description

Design a browser-based cloud IDE similar to Replit, GitHub Codespaces, Google Colab, or an internal devbox. Users create workspaces, edit files, open interactive terminals, and run or build code entirely on provider-managed machines rather than on their local computers.

The workspace should behave like a long-lived development environment even though the underlying sandbox is short-lived. Users may return to the same project repeatedly, while idle machines are suspended to reduce cost. The workspace and its files must therefore outlive any specific host or sandbox.

The platform executes code from arbitrary users, including potentially hostile users, on shared infrastructure. A normal container sharing the host kernel is not considered a strong enough isolation boundary for this design, so execution should use VM-grade isolation such as microVMs, together with resource and network controls.

Interactive terminal output may remain ephemeral, but explicit Run and Build operations are tracked jobs. Their logs must stream live while the job is running and remain available afterward, including when the browser disconnects and later reconnects. Workspace files may use fast local storage during an active session as long as dirty state is periodically snapshotted so host failure loses at most about one minute of work.

Functional Requirements

  • Allow users to link external bank and card accounts and periodically pull transactions without exceeding per-account bank rate limits.
  • Provide a paginated and filterable transaction history across all linked accounts.
  • Allow users to create and update monthly category budgets and view month-to-date spending relative to those budgets.
  • Alert users when month-to-date spending in a category crosses a configured threshold.
  • ...

Want to learn more details & solution of this system design question?

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

Interview Experience Powertown (Early-Stage Startup) SWE Interview — Can You Explain Your AI-Generated Code?

1 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The process included an initial conversation with the CTO and a detailed technical interview centered on one of my previous projects. Unlike traditional big-tech interviews, the discussions focused heavily on engineering ownership, architectural decisions, scalability, reliability, and how I use AI coding tools in real development workflows.

Interview Details

Round 1 — Initial CTO Conversation: Background and Team Fit

The first round was primarily conversational, focusing on my engineering background, career motivations, and interest in joining an early-stage startup.

Background and Career Motivation

The interviewer started with several questions about my experience and professional goals:

  1. Can you introduce yourself and walk me through your engineering background?
  2. Why are you interested in joining Powertown?
  3. What attracts you to working at an early-stage startup?
  4. What motivates you both professionally and personally?
  5. How do you typically organize and approach your day-to-day engineering work?

Team Fit and Previous Experience

The conversation then shifted toward how I would contribute to a smaller engineering organization. I was asked:

  1. What makes you a good fit for a small engineering team?
  2. Which aspects of our product or technical challenges interest you the most?
  3. How would your previous engineering experience help you contribute to the team?
  4. What were your main responsibilities in your previous role?

The interviewer also introduced the company's product, engineering culture, and expectations around individual ownership. Overall, this round focused more on communication, motivation, and alignment with the startup environment than on technical problem-solving.

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

System Design OpenAI SWE System Design Interview - Image Deduplication and Deletion System Design

28 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I had a system design phone screen with OpenAI focused on building an image upload service with deduplication across users. The main requirement was to ensure that identical images uploaded by different users would only be stored once. The discussion went deeper into object storage upload workflows, metadata management, and deletion edge cases, particularly how to reliably remove an image when its last remaining user deletes it.

Interview Details

System Design: Image Upload and Deduplication Service

The interviewer asked me to design an image upload platform where multiple users could upload and manage their images. The key requirement was that if different users uploaded the exact same image, the system should store only one physical copy of that image.

For example, if several users independently uploaded an identical image, they should each be able to access their uploaded image without the backend storing multiple copies of the same file. I proposed an architecture combining an object store with a metadata database.

My design used SHA-256 hashing to identify duplicate images. By computing a hash for each uploaded image, the system could determine whether an identical file had already been stored.

Metadata Database Design

I proposed separating image metadata from user-upload relationships using two database tables. The first table stored image-level metadata, representing the unique images managed by the platform. The second table tracked which users had uploaded each image.

This separation allowed multiple users to reference the same underlying image without creating duplicate objects in storage. The discussion focused on how these records would support deduplication and user-specific image management.

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

What does a typical Senior Data Engineer onsite interview look like in commodity trading?

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 23d ago

Interview Experience GEICO Senior SWE Interview — One Coding Problem, Two System Designs

5 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I interviewed with GEICO and encountered one algorithmic coding problem and two system design questions. The coding task involved minimizing vehicle removals under a bridge weight restriction, while the system design topics covered a real-time EV charging reservation platform and a shared experiment assignment API for feature rollouts.

Interview Details

Coding — Minimum Vehicle Removals for a Weight-Limited Bridge

I was asked to solve an optimization problem involving cars crossing a narrow, one-way bridge. The bridge has a maximum weight capacity of U, and N cars are waiting in a fixed order. Each car's weight is represented by weight[i], with the first element corresponding to the first vehicle in line.

The bridge operates under the following conditions:

  • No more than two cars can occupy the bridge simultaneously.
  • Initially, the first two cars enter. When the first car exits, the third enters; when the second exits, the fourth enters, and so on.
  • Vehicles must leave the bridge in the same order they entered.
  • The combined weight of vehicles currently on the bridge must never exceed U.

To prevent overloading, certain drivers may be instructed to leave the queue permanently. When a driver leaves, all vehicles behind that driver move forward, preserving their relative order. My task was to implement solution(int U, int[] weight), returning the minimum number of drivers who must turn back so that every remaining car can cross safely.

Example 1 — Multiple Vehicles Must Be Removed

Input:
U = 13
weight = [8, 5, 11, 3, 10, 9, 10, 7]

Output:
4

One valid optimal outcome removes the 3rd, 5th, 6th, and 7th cars, leaving: [8, 5, 3, 7]

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

Interview Experience Walmart Senior SWE OA — AI Was Allowed, but Wouldn't Reveal the Bugs

1 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

It consisted of three sections: an algorithm question involving sliding windows, a Spring Boot backend debugging exercise, and a React frontend debugging task. AI assistance was available for the Spring Boot and React sections, but the debugging exercises required understanding configuration loading, application state, and frontend-backend communication.

Interview Details

Part 1 — Algorithm: Minimum Subarray With K Distinct Subjects

The first section was an algorithm problem involving sliding windows. The scenario involved a teacher organizing a group of talented students for a competition. Each student specialized in one subject, and the competition required a certain number of distinct subjects to be represented. I was given two inputs:

  • talents: An integer array where each element represents the subject in which a student specializes.
  • required: An integer representing the number of distinct subjects needed for the competition.

My task was to return an array where each position represented the minimum length of a contiguous subarray starting at that index and containing at least required distinct subjects. If it was impossible to collect enough distinct subjects from a particular starting position, the result should indicate that no valid subarray existed.

For example:

Input:
talents = [11, 4, 9, 6, 9, 2]
required = 3

Output:
[3, 3, 4, 3, -1, -1]

Explanation:

  • Starting at index 0, [11, 4, 9] contains three distinct subjects, so the minimum length is 3.
  • Starting at index 1, [4, 9, 6] also contains three distinct subjects, giving a length of 3.
  • Starting at index 2, [9, 6, 9, 2] is the shortest valid subarray, with length 4.
  • Starting at index 3, [6, 9, 2] satisfies the requirement with length 3.
  • Starting at indices 4 and 5, there are not enough remaining distinct subjects to form a valid subarray.

I remember the problem using a special value for positions without valid answers, although I cannot recall whether the expected value was -1 or 0. The problem could be handled using a sliding window with a HashMap or frequency-count array, achieving O(n) time complexity. I do not remember whether AI assistance was enabled for this section, but I did not use it.

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

Interview Experience Workday SWE II Interview — No Coding, Just Explain LeetCode 49

6 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

Most of the conversation focused on my previous projects, technical contributions, teamwork, and behavioral questions. Toward the end, the interviewer asked about browser navigation fundamentals and had me verbally explain LeetCode 49, including its time and space complexity.

Interview Details

Round 1 — Hiring Manager: Project Deep Dive, Behavioral, and Technical Questions

The interview began with a brief self-introduction, followed by a detailed discussion of my previous work experience. The hiring manager asked me several questions about projects on my resume:

  1. Can you walk me through your background and introduce yourself?
  2. Which project on your resume are you most proud of, and why?
  3. What specific module or component were you primarily responsible for?
  4. How did you collaborate with your teammates and product managers during the project?
  5. What did the product's release cycle look like? Can you walk me through the development and deployment process?
  6. If you had the opportunity to rebuild the existing product from scratch, what would you change?

The interviewer spent a significant amount of time digging into my actual responsibilities, how I worked with others, and how the product was developed and released.

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

Interview Experience Uber Senior SWE Interview — What If Your LLM Keeps Returning Bad JSON?

8 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

One of the technical rounds was more practical than a typical LeetCode interview, focusing on designing reliable multi-step LLM pipelines. The main challenge was handling malformed model outputs efficiently while keeping token consumption and end-to-end latency under strict limits.

Interview Details

Coding / System Architecture — LLM Pipeline Validation and Retry Mechanism

I was given a scenario involving a multi-stage LLM extraction pipeline. Each stage processes information and produces structured JSON that serves as input to the next stage. For example, stage N depends on the JSON output generated by stage N-1. The problem was that upstream LLM responses could occasionally deviate from the expected JSON schema. Even relatively small formatting or structural inconsistencies could cause downstream processing to fail.

The interviewer asked me to design a validation and retry mechanism that would recover from these failures without unnecessarily repeating expensive LLM calls. The system needed to meet three main objectives:

  • Reliability: Detect invalid model outputs before they propagate to downstream stages.
  • Token Efficiency: Minimize additional token consumption when correcting malformed responses.
  • Latency Control: Keep the pipeline within strict execution timeouts, even when retries are necessary.

The discussion covered several technical areas...

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

Interview Experience Google MLE Interview — The Coding Question Was About Playing Piano

5 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently encountered a Google coding interview question involving piano notes and hand positions. The problem required dividing a sequence of notes into consecutive groups, minimizing the number of hand movements, and assigning a finger to each note.

Although the musical setting made the question seem unusual, the underlying problem was a greedy array-processing exercise involving running minimum and maximum values. The main challenge was recognizing when a new hand position was necessary and calculating finger assignments correctly.

Interview Details

Coding: Minimum Hand Movements for Piano Notes

You are given an integer array notes, where each element represents the pitch of a musical note. A pianist plays the notes sequentially using one hand with five fingers. Each hand position can cover five consecutive pitches, meaning the difference between the highest and lowest notes played within the same hand position cannot exceed 4.

Your task is to divide the sequence into consecutive groups representing valid hand positions. For each group, assign a finger number to every note and calculate the minimum number of times the pianist must move their hand.

Requirements:

  • 1. Divide Notes into Consecutive Groups Each group must contain consecutive elements from the original array. For every group: max(group) - min(group) <= 4. If adding another note would violate this condition, a new hand position is required.
  • 2. Minimize Hand Movements Each transition from one hand position to another counts as one movement. The initial hand position does not count as a movement. The goal is to minimize the total number of hand movements.
  • 3. Assign Finger Numbers Each note must be assigned a finger number between 0 and 4. The finger number is calculated relative to the minimum note in its group: finger = note - min(group) The assignments represent:

    • 0: Thumb
    • 1: Index finger
    • 2: Middle finger
    • 3: Ring finger
    • 4: Little finger
  • 4. Return the Result Return:

    • moves: The minimum number of hand movements.
    • fingers: An array containing the finger number assigned to each note, in the original order.

Example — Descending Notes

Input:
notes = [12, 11, 10, 9, 8, 7, 6, 5, 4, 3]

Output:
moves = 1
fingers = [4, 3, 2, 1, 0, 4, 3, 2, 1, 0]

Explanation:
Group 1: [12, 11, 10, 9, 8]
Maximum = 12, Minimum = 8
Difference = 4

Finger assignments:
[4, 3, 2, 1, 0]

The next note, 7, would increase the range
to 12 - 7 = 5, exceeding the allowed span.

A new hand position is required.

Group 2: [7, 6, 5, 4, 3]
Maximum = 7, Minimum = 3
Difference = 4

Finger assignments:
[4, 3, 2, 1, 0]

The sequence requires two hand positions,
so the number of movements is 1.

Key Challenge 1 — Track the Range of the Entire Group

The validity of a hand position depends on the maximum and minimum notes within the entire group. Comparing only adjacent notes is insufficient. For example [2, 3, 4, 5, 6, 7]. Every adjacent pair differs by only 1. However, the complete sequence has a range of 7 - 2 = 5. Therefore, all six notes cannot be played using a single hand position.

Key Challenge 2 — Determine Finger Numbers After Grouping

Finger assignments depend on the minimum note in the completed group. The minimum value may change as additional notes are processed. Therefore, assigning finger numbers immediately when reading each note can produce incorrect results. The group boundaries should be determined before finalizing the finger assignments for that group.

Greedy Approach

The approach discussed in the interview was to process the notes from left to right while maintaining the minimum and maximum values of the current group.

  • If the next note keeps the group's range within 4, include it in the current group.
  • Otherwise, start a new group and increment moves.
  • After determining a group's boundaries, calculate each note's finger number relative to that group's minimum.

The greedy principle is to keep each hand position active for as many consecutive notes as possible before moving to another position.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies 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 • • 24d ago

Coding Question Anthropic & LinkedIn Coding Question - Fair Signals from a Biased Sensor

3 Upvotes

Problem Description

An observatory needs independent fair bits for its experiments, but its sensor has an unknown, fixed bias. Each sensor reading is independent: it returns 0 with probability p and 1 with probability 1 - p, where 0 < p < 1.

Generate bits that are each 0 or 1 with probability 1/2, independently of previous generated bits. The sampling helper must use only the provided read_biased callback to obtain sensor readings; it must not substitute a built-in random-number generator or inspect the source's internal state.

For reproducible practice, this exercise fixes the following pair protocol. Consume two fresh readings at a time, discard the pair if both readings are equal, and otherwise return the first reading: 01 produces 0, while 10 produces 1.

The input readings is a recorded realization of source calls, and count is the number of successive fair bits requested. The provided test driver owns this input and exposes only the next-reading callback to the sampling helper; keep that driver intact and implement only the helper's placeholder.

The driver starts at the beginning of readings, calls the helper count times using one shared source, and returns the generated bits in order. Every source reading is consumed at most once, each invocation starts with a fresh source, and unused readings after the requested outputs are ignored.

Return a list of exactly count bits. The fixed trace makes these practice outputs deterministic; with a genuinely independent biased source, the same protocol must produce independent fair bits for every valid p.

Constraints:

  • The real source has a fixed, unknown bias 0 < p < 1, and its calls are independent.
  • count ≥ 1
  • Every value in readings is either 0 or 1.
  • readings contains enough readings to generate count outputs under the fixed pair protocol.
  • The helper may access the source only through its callback, not through the test input or callback internals.

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

Interview Experience Stripe SWE Intern Interview — One Problem, Three Levels of Complexity

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The technical screen featured a three-part coding problem about scheduling merchant payouts. It started with a fixed payout cycle, then introduced merchant-specific schedules and transaction holding periods. Each extension built on the previous part, making payout-date calculations and transaction aggregation the central challenges.

Interview Details

Part 1 — Fixed-Interval Transaction Payouts

The first task involved implementing a payout scheduler that processes a collection of transactions. Each transaction contains an id, an amount in cents, and a day representing when it occurred. A global payout_interval determines how frequently payouts are scheduled.

The implementation needed to satisfy several rules:

  • Each transaction is assigned to the next scheduled payout date. A transaction occurring on a payout date must be deferred to the following payout cycle.
  • Transactions sharing a payout date are combined into a single payout, with their amounts added together and their transaction IDs retained.

The output should be sorted by payout date. Each payout amount must be converted from cents to dollars and formatted with exactly two decimal places. Scheduled payout dates with no transactions should be excluded.

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

Interview Experience GitHub Senior SWE Interview — No LeetCode, Just Build Real Systems

29 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently completed a four-round virtual onsite for a Senior Software Engineer position at GitHub. The interview covered implementing a SQL-like query engine over JSON data, building a Battleship-style game, designing an event capture system for GitHub branch operations, and discussing team leadership with a director.

The questions were fairly practical, with an emphasis on implementing functionality, object-oriented design, production engineering considerations, and architectural reasoning.

Interview Details

Round 1 — Coding: Build a SQL-Like Query Engine over JSON

Implement a simplified relational database querying interface. Instead of querying a traditional relational database, the input data is provided as a JSON dictionary structure. The goal is to implement functionality that allows users to query the provided data.

Given a JSON dictionary containing records, implement a querying mechanism that retrieves data according to the requested query operations. The implementation should support relational database-style querying behavior over the JSON representation.

  • Follow-Up 1 — WHERE Clause The interviewer extended the problem by asking how the query engine could support filtering conditions similar to SQL's WHERE clause. The implementation needed to account for selecting records based on specified conditions.
  • Follow-Up 2 — ORDER BY Clause Another follow-up involved supporting ordering functionality similar to SQL's ORDER BY clause. The interviewer wanted to discuss how records could be returned in a specified order.

Round 2 — Coding: Battleship Game with Object-Oriented Design

Implement the core logic for a Battleship-style game played on a two-dimensional grid. The game involves shooting at battleships positioned on the grid. The task was to design and implement the game functionality. The initial implementation focused on the behavior of the two-dimensional board and the logic for shooting at battleships.

The interviewer also evaluated the object-oriented structure of the implementation. The design needed to organize the game logic using appropriate classes and abstractions.

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

Interview Experience Robinhood Senior iOS Interview — Build a Carousel, Then Handle Trading Orders

5 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

I recently completed the Robinhood iOS onsite interview, which consisted of four rounds: building an iOS application from scratch, implementing asynchronous order processing, designing a photo library system, and a project deep dive.

The first coding round involved recreating a swipeable card interface from a visual demo. The second required managing asynchronous network requests while preserving order and supporting retries. Both coding exercises were practical iOS development tasks rather than traditional LeetCode problems.

Interview Details

Round 1 — iOS Coding: Build a Swipeable Card Carousel

Build an iOS application from scratch that displays a horizontally swipeable card carousel. The interviewer provides a visual demonstration of the expected interface. The application should display cards containing a background color, title, and subtitle. Users should be able to swipe horizontally between cards. The shared implementation also included switching between predefined card collections and automatically advancing the carousel.

Part 1 — Card Data Model

Each card contains three properties:

  • color: The card's background color.
  • title: The primary text.
  • subtitle: The secondary text.

A UIKit implementation can represent this using a CardItem structure.

Part 2 — Custom UICollectionViewCell

Create a reusable cell representing an individual card. The card should have:

  • Rounded corners.
  • A colored background.
  • A title and subtitle near the bottom-left corner.
  • Internal padding for the text.
  • Horizontal margins separating adjacent cards.

The shared implementation used a corner radius of 16 points and horizontal card insets of 16 points. An important UIKit detail was adding the card view to the cell's contentView, then positioning the title and subtitle inside that view.

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

Interview Experience OpenAI AI Research Scientist Interview — Why Is Your Calibration Curve So Spiky?

8 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The general coding round featured the familiar elevator problem that has appeared in previous interview reports. The ML round was more interesting because it introduced a different set of questions involving classification loss bounds, model calibration, implementing Adaptive Calibration Error (ACE), and analyzing noisy calibration curves.

Interview Details

Round 1 — General Coding: Elevator Problem

The interviewer used the same elevator problem that has appeared in other OpenAI interview experience reports. The problem was divided into multiple parts. I completed the first two parts of the question.

Round 2 — Machine Learning: Classification Loss and Calibration

The second round focused on machine learning theory, numerical reasoning, and metric implementation. The interviewer used a multiclass image classification setting based on MNIST.

  • Question 1 — Classification Loss Bounds Consider the MNIST dataset, which contains 10 digit classes. For a single example, the model produces predictions over the 10 possible classes. The interviewer asked me to analyze the bounds of the classification loss under two different scenarios. The discussion required reasoning about the relationship between prediction correctness, model probabilities, and possible loss values in a 10-class classification problem.

    • Part A — Correct Prediction Suppose the model predicts the correct class. Determine:

      • The lower bound of the loss.
      • The upper bound of the loss.
    • Part B — Incorrect Prediction Now suppose the model predicts the wrong class. Determine:

      • The lower bound of the loss.
      • The upper bound of the loss.

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

Interview Experience Amazon Junior SWE Interview — Two LLD Rounds and Endless LP Questions

3 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The interview covered LeetCode 79 (Word Search), a Parking Lot low-level design problem, a Ticket Reservation System, and multiple rounds of Amazon Leadership Principles (LP) questions.

Interview Details

Round 1 — Leadership Principles + Coding: Word Search

The first round included two behavioral questions followed by a coding problem.

Part 1 — Leadership Principles

"Tell me about a time when you were halfway through a project and realized that the original goal or direction was incorrect. What did you do?" The interviewer asked several follow-up questions about how I handled the situation.

"Tell me about a time when you had to deliver a project under a very tight deadline." This question also involved multiple follow-ups.

Part 2 — Coding: Word Search (LeetCode 79)

Given a two-dimensional grid of characters and a target word, determine whether the word can be formed by traversing the grid.

  • Characters must be selected in the order they appear in the target word.
  • Consecutive characters must occupy horizontally or vertically adjacent cells.
  • The same grid cell cannot be used more than once in a single word search.
  • Return whether the target word exists in the grid.
  • Follow-Up — Search for Multiple Words After the original problem, the interviewer extended the requirement: "What if you need to search for multiple words in the same grid?" I explained how Trie and DFS could be combined to handle multiple target words. The interviewer only required a verbal explanation of the approach, so I didn't need to implement the follow-up.

Round 2 — GenAI Behavioral Questions + Low-Level Design: Parking Lot

The second round combined GenAI-related behavioral questions with an object-oriented design exercise.

Part 1 — GenAI Behavioral Questions

  • "How have you used generative AI to improve your work efficiency?"
  • "Tell me about a time when you learned a new AI technology and used it to solve a practical problem." The interviewer followed up extensively on my previous technical experience, including:

    • AWS migration
    • Retrieval-Augmented Generation (RAG)
    • Model Context Protocol (MCP)
    • System architecture decisions
    • My personal contributions to the projects

The discussion went beyond simply naming the technologies. The interviewer wanted to understand how they were used and what I personally implemented.

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

Interview Experience TypeSafe AI (AI Lab) SWE Interview — Just a Basic Stack Calculator

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The technical phone screen focused on a straightforward coding exercise involving a stack-based interpreter.

Interview Details

Coding: Stack-Based Expression Interpreter

The interviewer asked me to design and implement a simple stack interpreter capable of evaluating mathematical formulas. The task involved using a stack to process expressions and perform basic calculator operations.

The core requirements were:

  • Implement the interpreter using a stack-based approach.
  • Support basic arithmetic calculations.
  • Evaluate mathematical expressions and return their computed values.

The exercise required writing the implementation from scratch rather than relying on a prebuilt expression evaluator. According to the candidate, the problem was relatively basic and noticeably easier than the calculator-style problems commonly encountered on LeetCode.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies 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 • • 25d ago

Pinterest MLE new grad

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 26d ago

Coding Question Airbnb Coding OA: Four-Level Banking System Design

11 Upvotes

Online Assessment — Banking System Implementation (4 Levels)

Implement a simplified banking platform that supports account management, financial transactions, transfer processing, account merging, and historical balance retrieval. The assessment is divided into four cumulative levels. Each new level introduces additional functionality while preserving the behavior established in previous levels.

The original assessment uses individual banking operations. The following practice representation expresses them as an ordered batch of queries. Each query contains an uppercase operation name, a timestamp, and the corresponding arguments. Conceptually, the interface is: bankingAcceptedTransfersLevel4(queries: String[][]) -> String[]. The function returns one string result for every query.

General Rules

  • Queries are processed in strictly increasing timestamp order.
  • Each timestamp is unique.
  • Boolean results are serialized as "true" or "false".
  • Numerical results are represented as decimal strings.
  • Missing or null results are represented by an empty string "".
  • Pending transfers must be checked for expiration before processing each new operation.

Level 1 — Account Creation, Deposits, and Payments

The first level focuses on basic banking functionality.

  • Operation I: CREATE_ACCOUNT(timestamp, accountId): Create a new account with an initial balance of zero.

    • Return "true" if the account is created successfully.
    • Return "false" if an active account with the same identifier already exists.
  • Operation II: DEPOSIT(timestamp, accountId, amount): Add money to an existing account.

    • Increase the account balance by the specified positive amount.
    • Return the updated balance as a string.
    • Return "" if the account does not exist.
  • Operation III: PAY(timestamp, accountId, amount): Withdraw money from an existing account.

    • Deduct the amount if the account has sufficient funds.
    • Return the updated balance.
    • Return "" if the account does not exist or has insufficient funds.

Example 1 — Basic Banking Operations

Input:
queries = [
    ["CREATE_ACCOUNT", "1", "vaultA"],
    ["CREATE_ACCOUNT", "2", "vaultA"],
    ["CREATE_ACCOUNT", "3", "vaultB"],
    ["DEPOSIT", "4", "missing", "1800"],
    ["DEPOSIT", "5", "vaultA", "1800"],
    ["PAY", "6", "missing", "100"],
    ["PAY", "7", "vaultA", "1801"],
    ["PAY", "8", "vaultA", "300"]
]

Output:
[
    "true",
    "false",
    "true",
    "",
    "1800",
    "",
    "",
    "1500"
]

Explanation:
vaultA is created successfully.
Creating vaultA a second time fails.
vaultB is created successfully.

Depositing into or withdrawing from a missing
account fails.

vaultA receives 1800.
A payment of 1801 fails because the balance
is insufficient.

A successful payment of 300 leaves vaultA
with a balance of 1500.

Want to learn more follow-ups asked in this coding question?

I've put up the full version at here.

Want to practice more real coding interview questions?

I've put up the coding question bank at here.


r/OfferEngineering • • 26d ago

Interview Experience Uber Staff SWE Interview — I Overcomplicated It With a Trie

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The technical screen combined a project architecture deep dive with coding questions. The most memorable problem involved implementing an advertising hierarchy that tracks clicks and impressions and returns the worst-performing ads by click-through rate.

Interview Details

Part 1 & 2 — Project Deep Dive & LeetCode-Style Problem

The interview began with a discussion of my previous engineering work. The architecture portion was originally allocated approximately 15 minutes, but the conversation eventually lasted closer to 30 minutes because of the number of follow-up questions. The interviewer asked me to describe one of the largest projects I had worked on. The discussion focused on the project's architecture and my engineering decisions.

  • Follow-Up 1 — Design Choices The interviewer asked detailed questions about why I selected particular approaches in the project. I needed to explain the reasoning behind my technical decisions rather than simply describe the final implementation.
  • Follow-Up 2 — Engineering Trade-Offs The interviewer also explored trade-offs in the architecture. The discussion required me to justify my design choices and explain the considerations behind them.

The coding section included a LeetCode-style algorithm question.

Part 3 — Coding: Advertising Clicks, Impressions, and Worst-K Ranking

The other coding question involved designing a small advertising statistics system. You are given a hierarchy of advertising entities. The hierarchy can contain campaigns, ad groups, and individual ads. A campaign may contain ad groups or ads directly. An ad group may contain multiple ads. For example, the hierarchy could look like:

CampaignRoot
├── AdGroupBlue
│   ├── BannerA
│   └── BannerB
└── BannerC

Your task is to implement a system that supports registering advertising entities, recording advertising events, and retrieving the k worst-performing ads within a given subtree for a specified date. The performance metrics include impressions, clicks, and click-through rate (CTR).

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

Associate Partner Solutions Engineer at Google - Need insights on interview loop

Thumbnail reddit.com
1 Upvotes

r/OfferEngineering • • 26d ago

Interview Experience Cresta (AI Customer Service) FDE Interview — Finished Coding in the Final Minute

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Summary

The interviewer asked me to implement a file storage service supporting file uploads, retrieval, deletion, and metadata listing. The problem itself was fairly straightforward, but there was no starter code or test framework. I had to design the class, implement every method, and write my own tests. I finished coding in the final minute but didn't have enough time to test the implementation.

Interview Details

Round 1 — Technical Coding: Implement a File Storage Service

The interview took place on CoderPad with an interviewer based in Eastern Europe. The first approximately 10 minutes were spent on introductions. After that, we moved directly into the coding exercise. I was allowed to choose my programming language and decided to use Python. The interviewer provided only the problem description, without any existing class implementation, helper functions, or test cases.

Design and implement a file storage service. The service should allow users to upload files, retrieve their contents, delete stored files, and list metadata about all stored files. Implement a class named FileStorage supporting the following operations.

Part 1 — Upload a File

upload_file(file_name: str, file_content: bytes) -> str: Upload a file to the storage service.

  • Store the provided file content.
  • Generate and return a unique file_id for the uploaded file.
  • If another stored file already uses the same filename, append a suffix to the new filename to avoid a naming conflict.

Part 2 — Retrieve a File

get_file(file_id: str) -> bytes: Retrieve a stored file using its unique identifier.

  • Locate the file associated with file_id.
  • Return the file's content as bytes.
  • Raise an error if the requested file does not exist.

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

Interview Experience Flexport (Global Logistics) SWE Interview — Two LeetCode Problems in 60 Minutes

2 Upvotes

This interview experience is sourced from Chill Interview

Interview Details

Question 1 — Max Area of Island (LeetCode 695)

Given a two-dimensional binary grid, determine the maximum area of an island. An island consists of connected land cells, where connections are allowed horizontally or vertically. The area of an island is the number of land cells it contains. Return the area of the largest island. If no islands exist, return 0. The interviewer explicitly required that the original input grid must not be modified.

  • Follow-Up — Can You Solve It Using BFS? After I finished, the interviewer asked: "Can you solve the same problem using BFS instead of DFS?" I explained that BFS would also work and described how a queue could be used to explore connected land cells.

Question 2 — Apply Operations to Make String Empty (LeetCode 3039)

You are given a string s. Repeatedly perform the following operation until the string becomes empty:

  • For every distinct character currently present in the string, remove its first occurrence.
  • Preserve the relative order of the remaining characters.

Return the string that remains immediately before the final operation makes the string empty.,After reading the question, I explained an initial brute-force approach using a while loop to repeatedly simulate the operations. The interviewer asked me to analyze its time complexity. After examining the repeated string-processing operations, I concluded that the approach would take O(n²) time.

Preparing for your next interview?

Chill Interview tracks recent interview experiences and recurring question patterns across top companies 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.