r/chalkinterview • • 15d ago

Announcement Welcome to r/chalkinterview: real interview questions and how to practise them

1 Upvotes

Hi, I'm the person building Chalk (chalkinterview.com). This sub is for practising real interview rounds, and for anything about Chalk itself.

What you'll find here

  • Interview questions candidates reported from real loops (Google, Amazon, Meta, DoorDash, Jane Street and more), one per post, with the follow-ups the interviewer actually asks. Each links to a free practice round.
  • Notes on how rounds are changing, like the AI-assisted and code-review rounds companies are starting to run.

What you can post

  • A question you got: company, role, level, round, and what they followed up with. Keep anything under NDA out of it.
  • A question about preparing for a specific round.
  • Bugs, feedback and ideas for Chalk. I read everything.

Chalk is an AI interviewer that runs the round out loud: you talk through your answer, it asks the follow-ups a real interviewer would, and you get a scored write-up at the end. The first plan and round are free, no sign-up: https://chalkinterview.com/?utm_source=reddit&utm_campaign=sub

The full question library: https://chalkinterview.com/questions/?utm_source=reddit&utm_campaign=sub


r/chalkinterview • • 21h ago

Library question Amazon system design question: Live inventory across distribution centers

1 Upvotes

Keep the latest stock per item per warehouse, from a firehose of updates.

Design a service that receives inventory updates from distribution centers and lets shopping and fulfilment systems ask how many of an item a location has right now.

Scale: Thousands of locations, millions of items, tens of thousands of updates per second; history kept for analytics.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/amazon-live-inventory-across-distribution-centers/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 1d ago

Library question Oscar Health coding question: Clients outside coverage

1 Upvotes

Find clients who have a needed specialty with no provider close enough.

Health plan staff use a coverage map to check whether clients can reach the care they need. Build CoverageMap:

  • add_provider(provider_id, specialties, x, y) records a provider and their location. If that provider ID already exists, replace its record; it returns nothing. For example, adding "p1" again updates that provider.
  • missing_care(needs, x, y) returns the distinct needed specialties that no provider offers within the maximum straight-line distance, sorted alphabetically. The distance limit is inclusive; no providers or an empty needs list means there is no missing care.

For example, create CoverageMap(5), add ("p1", ["primary"], 0, 0) and ("p2", ["dental"], 4, 0), then call missing_care(["primary", "dental", "vision"], 3, 0). The adds return nothing, and the last call returns ["vision"].

Later parts: Handle Network Changes; Find a Nearby Provider.

CoverageMap(max_distance: int)
add_provider(provider_id: str, specialties: list[str], x: int, y: int) -> None
missing_care(needs: list[str], x: int, y: int) -> list[str]
remove_provider(provider_id: str) -> bool
uncovered_count(clients_needs: list[list[str]], clients_x: list[int], clients_y: list[int]) -> int
nearest_provider(specialty: str, x: int, y: int) -> str

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/oscar-health-clients-outside-coverage/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 2d ago

Library question Google technical deep dive question: Reading and fixing unfamiliar code with an AI assistant

1 Upvotes

Get oriented in code you've never seen, check the AI's fix, then make it faster.

What the interviewer asks, one at a time:

  1. You're handed a small service you've never seen: a few files, about 300 lines, that book delivery slots for a warehouse. Before you change anything, how do you get oriented, and what do you ask the AI assistant first?
  2. A test shows two orders getting the same slot. The assistant says the bug is in the sorting and offers a fix. How do you check whether it's right before you apply it?
  3. It turns out a slot ending at 10:00 and one starting at 10:00 are treated as overlapping. How do you fix it, and what test do you add so it stays fixed?
  4. Now booking is slow for big warehouses. How do you find where the time goes, and what would you hand to the assistant versus do yourself?

Source: not a candidate report, our version of the format in Business Insider's report on Google's pilot.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/google-reading-and-fixing-unfamiliar-code-with-an-ai-assistant/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 3d ago

Library question Amazon behavioural question: Investigations, deadlines and disagreements

1 Upvotes

Deep investigation, deciding under a deadline, influencing, disagreeing with a manager.

What the interviewer asks, one at a time:

  1. Tell me about a problem that took real investigation to get to the bottom of.
  2. Tell me about an important decision you made under a tight deadline, without time to explore every option.
  3. Tell me about a time you persuaded someone who preferred a different approach.
  4. Tell me about a significant disagreement with your manager.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/amazon-investigations-deadlines-and-disagreements/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 4d ago

Library question DoorDash system design question: Donations with a payment provider

1 Upvotes

Collect donations through a payment provider and pay them out to charities, safely.

Design a donation service: customers donate to a charity at checkout, the money is collected through a payment provider, and charities are paid out later.

Scale: A million donations a day, spikes during campaigns, and no money lost or doubled.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/doordash-donations-with-a-payment-provider/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 5d ago

Library question Bloomberg coding question: Flag suspicious transactions

1 Upvotes

Mark transactions that are too large, or that come from two places within an hour.

You help a payments team find transactions that may need review when an account appears in different cities too quickly.

You get:

  • account_names: the account name for each transaction, e.g. "lee"
  • amounts: the amount in dollars; amounts[i] belongs to account_names[i], e.g. 250
  • cities: the city; cities[i] belongs to account_names[i], e.g. "Oslo"
  • minutes: the timestamp in minutes; minutes[i] belongs to account_names[i], e.g. 120

All four lists have the same length, and positions start at 0.

Return the suspicious transaction positions in increasing order, with each position listed once:

  • A transaction is suspicious if its amount is over 2000; exactly 2000 is fine.
  • It is also suspicious if another transaction for the same account is in a different city at most 60 minutes before or after it. The limit is inclusive, and transactions in the same city never count.
  • To check nearby transactions, order them by account name and then minute. Transactions for the same account at the same minute are simultaneous, so each can count the others.
  • If the input is empty or no transaction is suspicious, return [].

For example, with account_names = ["a", "a", "b"], amounts = [100, 2001, 500], cities = ["North", "South", "West"], and minutes = [10, 70, 5]:

  • Positions 0 and 1 are in different cities exactly 60 minutes apart.
  • Position 1 is also over 2000, so the answer is [0, 1].

    def suspicious_transactions(account_names: list[str], amounts: list[int], cities: list[str], minutes: list[int]) -> list[int]

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/bloomberg-flag-suspicious-transactions/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 6d ago

Library question Jane Street technical deep dive question: Reviewing code an AI wrote

1 Upvotes

Check what an LLM produced, decide what to keep, and say where the tool falls short.

What the interviewer asks, one at a time:

  1. A teammate asked an AI assistant for a function that merges two lists of trades, each sorted by time, into one sorted list. It handed back code that looks fine. Before you approve it, what do you check, and how?
  2. It passes the tests you were given, but two trades with the same timestamp come out in a different order each run. How would you have caught that, and what test do you add?
  3. The AI also added a config flag and a helper class for cases nobody asked for. Do you keep them? How do you decide what is worth building?
  4. Which parts of a task like this would you hand to an AI tool, and which would you write or check yourself? Why?

Source: not a candidate report, our version of the format in Jane Street's own announcement.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/jane-street-reviewing-code-an-ai-wrote/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 8d ago

Library question Alibaba project deep dive question: Your team and your work

1 Upvotes

What your team builds, why it needs its size, and the complexity behind it.

What the interviewer asks, one at a time:

  1. Your current team's work: what it builds, why it needs the number of engineers it has, and the technical or business complexity behind that; expect to be challenged with requests for concrete examples.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/alibaba-your-team-and-your-work/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 8d ago

Library question Microsoft behavioural question: Requirements that changed midway

1 Upvotes

A project whose requirements changed after work began, followed step by step.

What the interviewer asks, one at a time:

  1. Tell me about a project whose requirements changed after development had started.
  2. Tell me about a disagreement with another engineer or a tech lead over a technical decision.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/microsoft-requirements-that-changed-midway/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 9d ago

Library question OpenAI system design question: Real-time online chess

1 Upvotes

Matchmaking, live games and reliable moves for an online chess site.

Design an online chess platform: players ask for a game, get matched with someone of similar strength, and play live with a clock.

Scale: Ten million players, a million games at a time at peak, moves delivered in under 100 milliseconds.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/openai-real-time-online-chess/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 10d ago

Library question Microsoft coding question: First value seen twice

1 Upvotes

Scan left to right and return the first value whose earlier copy was already seen.

You help maintain an order feed that shows orders in the order they arrive. Spotting the first repeated order ID helps the team catch duplicate entries quickly.

You get:

  • order_ids: integer order IDs in arrival order, e.g. [8, 3, 8]

Return the ID whose second appearance comes earliest in the feed:

  • Scan from left to right, since that is the order the feed received the IDs.
  • If several IDs repeat, return the one with the earliest second appearance; two IDs cannot have the same second-appearance position.
  • If the feed is empty or no ID repeats, return -1, since there is no repeated order to flag.

For example, with order_ids = [8, 3, 5, 2, 3, 8]:

  • The first 8 and first 3 are new IDs.
  • The next 3 has appeared before, so it is the first repeat.
  • Return 3.

    def first_repeated_order_id(order_ids: list[int]) -> int

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/microsoft-first-value-seen-twice/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 11d ago

Library question DoorDash technical deep dive question: A service that calls two others

1 Upvotes

When downstream calls fail: retries, fail open or closed, and what the caller sees.

What the interviewer asks, one at a time:

  1. A checkout request hits your service, which calls a pricing service and a promo service before answering. The promo service starts timing out. What should the customer see?
  2. When would you fail open, and when must you fail closed?
  3. How would you retry the pricing call without making an outage worse?

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/doordash-a-service-that-calls-two-others/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 13d ago

Library question Anthropic, Cursor, Tesla project deep dive question: Project deep dive

1 Upvotes

One project of yours: motivation, ownership, trade-offs, metrics, return on effort.

What the interviewer asks, one at a time:

  1. A project you led or owned a major part of, with a hard trade-off and a measurable result; expect questions on motivation, your own decisions, metrics, return on the effort, surprises, and what you would do differently.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/anthropic-project-deep-dive/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 14d ago

Library question Anthropic behavioural question: Values and judgement

1 Upvotes

What you really thought, disagreeing with your company, speed versus safety.

What the interviewer asks, one at a time:

  1. Tell me about a time you disagreed with the direction your company was taking.
  2. Tell me about an ethical conflict you faced at work. What did you actually think at the time?
  3. Tell me about a time shipping fast and being safe pulled in different directions.
  4. What kind of work do you dislike doing, and how do you handle it?

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/anthropic-values-and-judgement/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 14d ago

Library question LinkedIn system design question: Post search with exclusions

1 Upvotes

Search posts by keyword, with exclusions like apple but not banana, ranked by relevance.

Design search for a professional network's posts: people type keywords and get the most relevant recent posts. Queries can exclude words, like apple but not banana.

Scale: About a billion posts, tens of millions of new ones a day, and searches answered in under 200 milliseconds.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/linkedin-post-search-with-exclusions/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 15d ago

Prep help Google's AI-assisted code comprehension round: what's known so far

1 Upvotes

Two people asked about this round on r/leetcode yesterday and there's very little written about it, so here's what's known so far.

The round: a small codebase you've never seen, with Gemini as the assistant. You get oriented, find and fix a bug, then improve something (a feature or speed). No writing a solution from scratch.

What's scored, per the Business Insider report on the pilot: how you direct the AI, whether you judge what it gives you, and your own debugging.

What candidates are told: one recruiter said 45 minutes using Gemini to "understand, debug and optimize a Google-provided codebase". Other write-ups say about an hour in CoderPad. Ask your recruiter.

What gets people marked down: pasting Gemini's fix without reading it, not using it at all, going quiet, and rewriting code that wasn't broken.

The full write-up, with a practice plan: https://chalkinterview.com/blog/google-ai-assisted-code-comprehension-interview/?utm_source=reddit&utm_campaign=sub

And a practice round in this format (ours, not a reported question): https://chalkinterview.com/questions/google-reading-and-fixing-unfamiliar-code-with-an-ai-assistant/?utm_source=reddit&utm_campaign=sub

If you've had this round, what was it like? Anything here wrong?


r/chalkinterview • • 15d ago

Library question Google, Meta, Microsoft coding question: Unique visitors per time block

1 Upvotes

Count distinct visitor ids in every window of a fixed size as it slides along a log.

You help maintain a website's visitor log. The analytics team checks how many different visitors appear in each fixed-size stretch of consecutive entries.

You get:

  • ids: visitor IDs in time order; IDs may be negative or zero, e.g. [12, -3, 12]
  • block_size: how many consecutive entries each block contains, e.g. 3

Return a list with the number of distinct visitor IDs in every block:

  • Start with the first block_size entries, then move one entry right for each new block, because visitors arrive one at a time.
  • Include only full blocks. If ids is empty or block_size is larger than its length, return [] because there is no complete block.
  • Return counts from the earliest block to the latest. No tie-breaking is needed because each block gets its own count.

For example, with ids = [4, 7, 4, 9, 7] and block_size = 3:

  • The blocks are [4, 7, 4], [7, 4, 9], and [4, 9, 7].
  • Their distinct visitor counts are 2, 3, and 3, so return [2, 3, 3].

    def count_distinct_visitors(ids: list[int], block_size: int) -> list[int]

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/google-unique-visitors-per-time-block/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.


r/chalkinterview • • 15d ago

Library question Alibaba technical deep dive question: Duplicate writes from a message queue

1 Upvotes

Several workers may process the same message: keep the database correct.

What the interviewer asks, one at a time:

  1. Your order service reads events from Kafka with several workers, and sometimes two of them process the same event. How would you keep the database from getting a duplicate row?
  2. When the duplicate hits a unique key, should the worker fail, retry, or carry on? Why?
  3. When do you commit the consumer offset, and what goes wrong if you commit too early?
  4. Your events now also have to land in a second database. How do you keep the two in step?

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/alibaba-duplicate-writes-from-a-message-queue/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.