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
Design a feature that lets multiple users join a single ChatGPT conversation, see each other's messages and the assistant's replies in real time, and decide when the model should respond.
A network topology is a binary tree. A monitor placed on a node covers that node, its parent and its children. Return the minimum number of monitors needed so every node is covered.
Derive the bias-variance decomposition of expected squared error for a model that estimates the shipping cost of a package, and use it to explain why a very deep regression tree and a constant predictor both perform poorly.
Given the words of a subtitle cue and a maximum line width in characters, break the words into lines so no line exceeds the width and the sum of squared unused characters on every line except the last is minimized; return the lines.
Members who complete LinkedIn Learning courses and add the certificate to their profile change jobs more often. Without running an experiment, estimate whether completing a certificate causes a higher job change rate.
Upstart's personal loan flow starts with a soft-pull rate check and ends with a funded loan. Propose a primary success metric for the funnel team, plus the guardrails you would pair with it.
An LLM proposes edits as (quote, prefix, suffix, replacement), but the lawyer may have edited the document since. Write a function that locates each quote in the current text using its surrounding context, rejects missing or ambiguous anchors, rejects edits that overlap an already accepted edit, and applies the rest.
A bettor starts with 10 dollars and repeatedly bets 1 dollar on a game they win with probability 0.55, stopping at 20 dollars or at zero. What is the probability they reach 20, and how many bets does that take on average?
Implement an array of length n supporting set(index, value), snap() which returns a snapshot id, and get(index, snap_id) which returns the value at that index when that snapshot was taken.
A randomized test of a $3 off coupon for lapsed riders shows a small average lift that does not cover the coupon cost. Explain how you would find a profitable subset to target and validate that targeting honestly.
Write a parser and comparator for dotted version strings such as 6.10, 6.5.2 and 7.0.1, then decide whether a cluster on version A can upgrade directly to version B given a table of minimum source versions required before crossing into a new major release.
Prefabs can contain instances of other prefabs. Given a mapping from each prefab to the prefabs nested directly inside it, detect whether any circular nesting exists and return one cycle as a path, or None if the hierarchy is valid.
A brand lift survey export has one row per respondent with columns q1_score through q5_score plus a test or control group label. Reshape it to long format and compute, for each question, the mean score and response count per group, ignoring skipped answers.
Given a time-ordered list of MagicBand taps as (band_id, gate_id, timestamp_seconds) and a window k, return the band ids that tapped the same gate twice within k seconds, in the order they were first flagged.
Given a page stored as a tree of typed blocks (numbered items, bullets, to-dos, plain text), produce the plain-text outline a user would see, with numbering that restarts whenever a run of numbered siblings is broken.
Given a table of playback heartbeat events per user, group events into viewing sessions where a new session starts after more than 30 minutes of inactivity, and report each user's number of sessions and average session length in seconds.
Describe a time you needed another team with its own standards and priorities to take on responsibility for something you built. How did you persuade them?
Given an unsorted list of half-hourly read timestamps that may contain duplicates and a requested date range, return the missing half-hour periods as contiguous (first_missing, last_missing) ranges.
Given a binary array where 1 means the user was active that day and 0 means inactive, return the length of the longest contiguous run of days that contains at most k inactive days.
Given accounts and transactions tables, return every open checking account with no customer-initiated transaction in the last 365 days, with its last activity date and current balance.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.