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
Using memberships(membership_id, patron_id, creator_id, started_at, ended_at) and creators(creator_id, category), compute October 2026 churn by creator category: memberships active at the start of the month that ended during the month, divided by memberships active at the start.
A temperature sensor in a fulfillment center sends 32-bit readings with the bits in reverse order. Given an unsigned 32-bit integer, return the integer whose bits are in the opposite order.
Given viewer sessions as half-open intervals [join, leave) in seconds, return the maximum number of simultaneous viewers and the earliest time that maximum is reached.
Ports are nodes and priced lanes are directed edges. Find the cheapest way to move a container from an origin port to a destination port using at most K transshipments (intermediate ports), and return both the cost and the port sequence.
Given binary labels and model scores for Microsoft Defender alerts (1 = true incident), write a function that computes ROC AUC without a library, handling tied scores correctly, and explain what the number means.
Given known exchange rates as (from, to, rate) triples and a list of conversion queries, return the rate for each query by chaining known rates, or -1.0 if the currencies are not connected.
Given a sequence of request latencies and a window size k, return the median of each contiguous window of k latencies (the average of the two middle values when k is even).
Given members with a verification time and signup channel, and an events table of posts, comments and reactions, compute for the October cohort the share of members who posted or commented within 7 days of verifying, plus the average hours to that first contribution, by channel.
An asset is worth 101 or 99 with equal probability; a fraction mu of takers know the value and buy only if it is high (sell only if low), while the rest buy or sell at random. Derive the competitive bid and ask, the spread for mu = 0.2, and how an exchange rebate changes it.
Design a class that ingests timestamped bid prices in nondecreasing time order and answers, at any time t, the highest bid seen in the window (t - W, t], in amortized O(1) per operation.
Tell me about a time you shipped or supported a change that your users or another team strongly disliked. What did you do, and how did you rebuild trust afterwards?
Given a directed graph of NuGet package references, return one dependency cycle as a list of package names in order (first package repeated at the end), or an empty list if the graph is acyclic.
Given a flows table with source and destination workload ids, port, policy decision and timestamp, plus a workloads table with application and environment labels, write SQL that returns, per destination application in production, the number of flows that would be blocked in the last 7 days and the top blocked port.
Given daily retention percentages, return the maximum j - i such that i < j and retention[i] <= retention[j], or 0 if no such pair exists.
A position moves up one tick with probability p = 0.51 and down one tick otherwise. With a stop 10 ticks below and a target 10 ticks above entry, find the probability the target is hit first, then give the continuous-time analogue for a stock with daily drift 2 bp, daily vol 2%, and plus or minus 5% barriers.
Design a scheduler for a shared fleet of TPU pods where training jobs need a contiguous slice of chips (for example a 16x16 block) all at once, with priorities, preemption, and fair sharing across research teams.
An engineer ports a Google Lens image classifier to a new serving stack and accuracy drops because dropout behaves differently. Explain what dropout does, why activations must be rescaled, and where the scaling belongs.
Each build step has a duration and a list of prerequisite steps. With unlimited parallel workers, return the minimum total time to finish all steps, which is the length of the critical path, or -1 if the dependencies contain a cycle.
Each BST node has a parent pointer. Given a node (not the root), return its in-order successor, or None if it is the largest.
A mid-sized creator's videos receive user safety reports at an average of 2 per hour, modeled as a Poisson process. What is the chance of an hour with no reports, how often would an alert set at 5 or more reports in an hour fire by chance, and how would you pick a better threshold?
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.