Word break II: every way to split a sentenceCodingGiven a string s and a list of dictionary words, insert spaces into s so that every piece is a dictionary word. Return every sentence you can make this way.
Design an ad frequency capping serviceSystem designDesign the service that decides, while an ad is being served, whether this user may see another ad from this campaign. Advertisers set caps such as "at most 3 impressions per…
Last asked Nov 2026
Weighted cache that evicts the heaviest entriesCodingImplement WeightedCache, a key-value cache with a total-weight budget instead of an item count. Each entry has a positive integer weight.
Accounts merge: group accounts that share any attributeCodingYou get records [account, attribute]: an attribute is something like a phone number, an email or a device id. Two accounts that share any attribute belong to the same person, and…
Project deep dive: present a project you ledBehavioral"Walk me through a project you led." Present it in about 20 minutes: the context and why it mattered, your role, the architecture, three hard trade-offs and what you chose, the…
Add one delivery center to minimize the worst distanceCodingA grid marks delivery centers with 1 and ordinary locations with 0. The distance between two cells is max(|r1 - r2|, |c1 - c2|), so moving diagonally counts as one step.
Debug missing and extra results in a Django movie search APICodingA Django movie database returns wrong search results: some movies that should match are missing and some that shouldn't are returned. Earlier digging pointed at the api/search…
Tell me about a time you met a tight deadlineBehavioralTell me about a time you had to deliver something on a very tight timeline. What made the date hard to move, what did you decide to cut or change, and what shipped in the end?
Course schedule: finish every course and find an orderCodingYou have n courses, numbered 0 to n - 1, and a list of prerequisite pairs [a, b] meaning course b must be taken before course a. First decide whether every course can be…
Last asked Nov 2026
+2
Best time to buy and sell stockCodingGiven a list of daily prices for one asset, return the most profit you can make. First allow any number of buy-then-sell trades, holding at most one share at a time.
Design a notification systemSystem designDesign a notification service that other teams call to tell users that something happened, such as "someone you follow published a new post". It sends push, email and SMS through…
Fewest road reversals in a directed networkCodingA road network has n cities and one-way roads. You may drive a road against its direction, but each time you do it counts as one violation.
Last asked Nov 2026
+1
Friend recommendation by mutual friendsCodingGiven a social graph where friendship goes both ways, recommend people a user might know: people who are not already their friends, ranked by how many friends they share with the…
Last asked Nov 2026
+4
Implement multi-head self-attention from scratchAI/ML designWrite masked multi-head self-attention from scratch, the layer at the core of a Transformer. Given a batch of token embeddings, project them to queries, keys and values, split…
Dot product of run-length encoded vectorsCodingVery long integer vectors contain long runs of repeated values. Design a compact representation that stores each run as a value and a length, and compute the dot product of two…
Last asked Nov 2026
+7
How do you use AI in your work?Behavioral"How do AI tools fit into your work as an engineer?" Be specific: which tools, for which tasks, where…
Predict the speedup from porting a CPU application to GPUAI/ML designA team that builds GPU-accelerated data science libraries (the RAPIDS family) wants a model that says, for an application running on CPU today, how many times faster it would run…
Last asked Nov 2026
Sliding-window attention in C++ with a KV cache you designCodingYou are dropped into an existing C++ inference codebase and have 30 minutes to add sliding-window attention: a token attends to the latest W positions only, not to everything…
Design a refund processing workflowSystem designDesign the workflow that takes a customer's refund request from submission to a final outcome.
Last asked Nov 2026
Route requests to the nearest healthy data centerCodingBuild an in-memory router that sends each client request to a nearby data center. The exercise comes in parts, each building on the last, so earlier operations must keep working.
Range sum query 2D (immutable)CodingAn m x n matrix of integers is fixed. Many queries follow; each one names a rectangle by two cells, its upper-left and lower-right corners, and wants the sum of all cells inside…
Last asked Nov 2026
Mean IoU of matched bounding boxes with unordered cornersCodingA detector predicts axis-aligned boxes, and each prediction is already paired with its ground-truth box. Score a pair by intersection over union (IoU): the area the two boxes…
Last asked Nov 2026
+1
Design an evaluation platform for a design-editing AI agentSystem designAn AI agent edits design files when users ask it to, for example "make every button use the brand blue" or "make this landing page feel more playful". Design the platform that…
Binary tree right side viewCodingReturn the values you would see looking at a binary tree from its right side: the last node of each level, from top to bottom.
Design YouTube: video upload, transcoding and streamingSystem designDesign YouTube: creators upload recorded videos, the system transcodes them into many formats and resolutions, and viewers stream them on demand worldwide with adaptive bitrate…
Convert a sorted linked list to a height-balanced BSTCodingYou get the head of a singly linked list whose values are in strictly increasing order. Build a binary search tree holding exactly those values that is height-balanced: at every…
Settle group debts with the fewest transfersCodingA group of friends shared costs, and the record of who owes whom is a list of debts (debtor, creditor, amount). Return the smallest number of money transfers that settles every…
Last asked Nov 2026
+1
Serialize and deserialize a binary treeCodingWrite two functions for a binary tree of integer values: encode turns a tree into a string, and decode rebuilds a tree with exactly the same structure and values from that…
Design a pizza price calculatorOO designDesign a price calculator for a pizza shop. A pizza starts from a size and a crust, which set its base price, and each topping adds to the price, with topping prices that can…
Stack with constant-time minimumCodingDesign a stack that, besides the usual operations, returns its smallest element, with every operation in constant time.
Design durable execution for long-running agent queriesSystem designAn answer engine runs each query in memory inside the request that started it. That was fine when answers took seconds, but agentic queries (many rounds of search and model…
Static IR checks for tensor shape and layout in an ML compilerSystem designA compiler for ML models keeps hitting structural bugs that only show up when the compiled program runs on the accelerator: tensors whose shapes don't line up, or data laid out…
Last asked Nov 2026
+2
Jump game: can you reach the last index?CodingYou get a list of non-negative integers and start at index 0. nums[i] is the longest jump you may make from index i: you can move forward to any index from i + 1 up to i +…
Basic calculator II: evaluate + - * / without parenthesesCodingEvaluate a string expression of non-negative integers, the operators +, -, and /, and spaces. There are no parentheses. and / bind tighter than + and -, and division truncates…
Last asked Nov 2026
Count legal tic-tac-toe game sequencesCodingCount how many different tic-tac-toe games can be played. A game is the ordered list of moves from the board you start on to the end: X and O alternate, and play stops the moment…
Reported by 2 members · Last asked Nov 2026
+7
Design a rate limiterSystem designDesign a service that limits how many requests each API client can make.
Reported by 1 member · Last asked Nov 2026
Key-value store on a block device with 8-character blocksCodingYou get a small project with a block device already written and a KVStore class to finish so the unit tests pass. Keys may live in memory, but every value must be stored on the…
Reported by 1 member · Last asked Nov 2026
Recipe shopping cart with bulk discountsCodingA cooking app lets people put whole recipes in a shopping cart. The store runs bulk discounts on single ingredients: buy enough of one ingredient across the recipes in your cart…
Reported by 1 member · Last asked Nov 2026
+4
Word search with a word search II follow-upCodingYou get an m x n grid of lowercase letters. A word can be traced if a path of cells spells it in order, where each cell shares an edge with the previous one and no cell is used…
Reported by 1 member · Last asked Nov 2026
+5
Design an ad click aggregation systemSystem designDesign a system that counts ad clicks per ad and per time window from billions of click events a day.
Flood fill: recolor a connected region of an imageCodingAn image is a grid of integer colors. Given a starting pixel (sr, sc) and a new_color, recolor the starting pixel and every pixel connected to it through up, down, left or right…
Last asked Nov 2026
+1
Merge k sorted listsCodingYou get k singly linked lists, each sorted in ascending order. Merge them into one sorted linked list and return its head, reusing the existing nodes.
Agentic RAG take-home projectCodingA take-home: build an agentic retrieval-augmented pipeline. A model with a search tool must answer questions over a document set, including questions that need more than one…
Last asked Nov 2026
+5
Top K frequent elementsCodingGiven an integer array and k, return the k values that occur most often. Order them by count, highest first; break ties by the smaller value.
Design promotion codes for a checkout pageSystem designAdd promotion codes to an existing checkout page. Merchants set promotions up; a customer types a code at checkout to get the discount.
Design a read-only lookup service for a billion identifiersSystem designDesign a backend that serves read-only data for about one billion identifiers. Explain how the data is organized, how a request finds the machine that holds its answer, and where…
Find the second-largest distinct value in an arrayCodingGiven a list of integers that may contain repeats, return the second-largest distinct value: the largest value that is strictly smaller than the maximum. If the list has fewer…
Review a series of pull requestsCodingYou are shown two or three pull requests, one after another, each harder than the last, in Python or Java. Review each as you would at work: read it, then type the comments you…
Last asked Nov 2026
+1
Design an AI prompt playgroundSystem designDesign a web workspace where developers write prompts, run them against several models and settings, watch responses stream back, compare outputs side by side, and save, version…
Last asked Nov 2026
Entropy from logits, stable and then streamingCodingCompute the entropy, in nats, of the distribution softmax(logits) for a vector of logits, without overflow or underflow even for very large or very negative logits. Then the…