Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,568 questions · 341 companies · 1,114 reported by candidates
Showing 11,568 results
Given a ledger_entries table of signed amounts per user and asset, compute running balances and return, for each user and asset, the first entry after which the balance went below zero.
A warehouse scanner client sends messages to a server over a raw TCP socket, and the server sometimes sees half messages or two messages glued together. Explain why and implement length-prefixed framing that decodes correctly regardless of how bytes are split across reads.
Given a grid of characters representing pixel colors, return True if there is a cycle of length four or more made of same-colored pixels connected horizontally or vertically, otherwise False.
Tell me about a time you discovered a user problem by using the product yourself, rather than from metrics or a request. What did you do about it?
Songs on Suno can be extended, covered or remixed from a parent song, recorded as (id, parent_id, user_id). In Python, compute for each lineage tree its root, maximum chain depth, total song count, and number of distinct creators.
A Python worker that enriches feed candidates for Toutiao grows from 2 GB to 12 GB over a day until it is OOM-killed; explain how you would find the cause and fix a typical culprit.
Users join group-buy teams for products; a team opens with its first joiner and succeeds once it has k distinct members within a time window, otherwise it fails and members are refunded. Given a stream of join events, return the formed teams and the failed teams.
You receive a list of constraints over named config flags, each of the form (x, "==", y) or (x, "!=", y). Return True if some assignment of values to the flags satisfies every constraint at once, otherwise False.
Implement experiment assignment in pandas: hash each user_id with an experiment-specific salt into 1,000 buckets, map buckets to arms given an allocation like {'control': 0.5, 'treatment': 0.5}, and run a sample ratio mismatch check on the result.
With no labeled fraud cases, build a model that ranks a client's journal entries by how unusual they are so auditors can target their testing, and explain how you would validate and explain the rankings.
Design a structure over an m x n heatmap of click counts that supports update(r, c, value) to overwrite a cell and sum(r1, c1, r2, c2) to return the total inside an inclusive rectangle, both in polylogarithmic time.
A Google Pay ledger is a singly linked list of signed integer amounts. Repeatedly delete consecutive sequences of nodes that sum to zero until none remain, and return the head of the result.
Design an extensible API for searching a Drive-like file tree with criteria such as extension, minimum size, and name, combinable with AND, OR, and NOT, so new criteria can be added without modifying the search code.
Suno Studio places generated and recorded clips on a timeline. Given clips as (id, start, end) with end exclusive, assign each clip to a lane so no two clips in a lane overlap, using the minimum number of lanes and reusing the lowest-numbered free lane.
A model flags accounts likely belonging to users under 13 so they can be reviewed or restricted. Explain how you would choose an operating point between precision and recall.
Six client teams own different parts of an insurance customer portal (quotes, policies, claims, billing, documents, profile). Design a micro frontend architecture that lets each team deploy independently while users get one fast, consistent application.
Design the model and data pipeline that predicts the probability an ad impression leads to a conversion (such as an app install or purchase) for TikTok's auction, given that many conversions arrive hours or days after the impression from advertiser postbacks.
Compute the truncated quotient of two 32-bit signed integers using only addition, subtraction and bit shifts, clamping the single overflow case to the maximum 32-bit value.
Design a service that keeps a brand's wholesale catalog and stock levels in sync with the brand's own e-commerce store (for example a Shopify shop), so retailers do not order items that are out of stock. Cover initial import, ongoing updates, and conflicts with edits made directly in the marketplace.
On an n x n airspace grid, count the ways to place n drones so that no two share a row, a column, or a diagonal, since drones on a shared line could collide.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.