Structured Problem Solving and Decomposition Questions
Methodical problem solving for open-ended and ambiguous situations once the problem is defined: decomposing a goal or problem into mutually exclusive, collectively exhaustive parts (issue trees, metric trees and driver breakdowns, work breakdown into subproblems and vertical slices), forming and prioritizing hypotheses (hypothesis trees and funnels, including laying out candidate explanations for a metric drop or model degradation and the cheapest test for each branch), choosing an analytical approach, and reasoning to a recommendation. Also covers turning a vague mandate into measurable, testable subproblems with owners, breaking a large initiative into workstreams, mapping dependencies, sequencing the work, deciding the first deliverable and what to defer, structuring plans that mix research, analytics and experiments, and talking through real examples of cutting a messy problem into parts. Covers explaining and adapting structured problem-solving methods across contexts, choosing and switching methods, and coaching others to structure ambiguity. Excludes turning a vague request into a scoped problem statement, named-framework business cases, root-cause techniques for failures and metric movements (running the diagnosis itself), prioritization scoring and trade-off decisions, deciding how to act under incomplete information, market sizing and estimation, and framing machine-learning problems, which are covered elsewhere.
Sales tells you 'churn seems higher'. Walk me through how you would turn that comment into a handful of testable questions and decide what to check first.
Sample Answer
Direct answer
Treat the comment as a claim to test. Turn it into four questions in order: is it true, where is it, who is leaving, what changed. Check first the cheapest one that could kill the claim: compare churn with a comparable period using the same definition.
Churn is the share of customers (logo churn) or of revenue (revenue churn) lost in a period. "Higher" could mean either, so fix the definition first.
The four testable questions
- Is it higher? Same definition, same denominator (the group you divide by, here customers at risk of leaving), same-length period, against last quarter and the same quarter last year (to allow for seasonality: regular yearly swings, such as more cancellations after a holiday).
- Where? By segment, plan, tenure (how long the customer has been with you), region, acquisition channel.
- Who? Many small customers or a few large (logo versus revenue churn), early (first 90 days) or after long tenure.
- What changed? Price change, release, support changes, a new type of customer being sold to.
Also ask why Sales feels this: they hear about losses first and remember big ones. Ask for the last few losses they have in mind and check whether they appear in the data.
Worked example (illustrative counts)
Last quarter 1,000 customers started and 40 left (4.0%). This quarter 1,100 started and 52 left (4.7%). The gap is 0.7 points. A rough noise estimate is the standard error of the difference: the typical size of random wobble you would see between two quarters' churn rates even if nothing real changed, given only 1,000 and 1,100 customers. Each quarter contributes p x (1 - p) / n, where p is the churn rate and n the customers: 0.04 x 0.96 / 1000 = 0.0000384 and 0.0473 x 0.9527 / 1100 = 0.0000410. Add them (0.0000794) and take the square root: 0.0089, about 0.9 points. A common rule of thumb is that a gap needs to be roughly twice the noise to count as a signal. The 0.7-point gap is smaller than even one noise unit, so it is within normal quarter-to-quarter noise. "Seems higher" is plausible but not established, so look for concentration (whether the extra churn sits in one segment rather than being spread evenly).
| Segment | Last quarter | This quarter |
|---|---|---|
| Small business | 30 of 600 (5.0%) | 42 of 700 (6.0%) |
| Mid-market | 8 of 300 (2.7%) | 8 of 300 (2.7%) |
| Enterprise | 2 of 100 (2.0%) | 2 of 100 (2.0%) |
| Total | 40 of 1,000 (4.0%) | 52 of 1,100 (4.7%) |
To split the move into mix and rate, ask what would have happened if each segment kept last quarter's churn rate but the customer base were this quarter's. Small business: 5.0% x 700 = 35 leave. Mid-market and enterprise are unchanged at 8 and 2. Total 35 + 8 + 2 = 45 of 1,100 (4.1%). That is the counterfactual. Mix (more customers in the high-churn small-business segment) moves churn from 4.0% to 4.1%, about 0.1 points. The remaining gap from 4.1% to 4.7% (52 actual leavers), about 0.6 points, is small business churning faster. Apply the same noise check to that segment: 5.0% to 6.0% is a 1.0-point move with a noise of about 1.3 points (30 of 600 versus 42 of 700), so it is also within noise on one quarter of data. It is where to look first, not a proven change. The next check is whether the rise sits in one tenure band or channel, and whether a second quarter repeats it.
Same method for "our operations are slow"
Slow compared to what, for which process, in which step? Questions: median and 90th-percentile (P90, the time within which 90% of cases finish) cycle time this month versus last quarter; time spent in each step from timestamps; which customers, types or regions; what target counts as fast enough. Check first the step holding the largest share of the time.
Pitfalls
Reacting to an anecdote with a fix, mixing churn definitions, and reading a small-sample move as a trend.
Revenue is down 20% week over week. You know sessions fell 10% and conversion fell 5% relative while order value held. Show how you would decompose the change, what is left unexplained, and what you would look at next.
Sample Answer
Direct answer
Revenue = sessions × conversion rate × average order value (AOV). A session is one visit, conversion rate is the share of sessions that end in an order, and AOV is revenue per order. Because the three multiply, their changes multiply too: 0.90 × 0.95 × 1.00 = 0.855, a 14.5% drop. That leaves about 5.5 points of the 20% unexplained, and since the identity (an equation that is true by construction, with no approximation) is exact, the gap itself is a clue.
Decomposition in code
"Conversion fell 5% relative" means 3.00% became 2.85%, not 2.95%. Use last week's revenue of 100,000 as a base.
baseline = 100_000 # last week's revenue, in any currency unit
sessions, conversion, order_value = 0.90, 0.95, 1.00 # this week as a ratio of last week
expected = baseline * sessions * conversion * order_value
actual = baseline * 0.80
print("expected revenue:", round(expected))
print("explained drop:", round(baseline - expected))
print("actual drop:", round(baseline - actual))
print("unexplained drop:", round(expected - actual))
print("order value change that would close the gap: %.1f%%" % ((0.80 / (sessions * conversion) - 1) * 100))
print("sessions effect:", round(baseline * (sessions - 1)))
print("conversion effect at last week's sessions:", round(baseline * (conversion - 1)))
print("overlap:", round(baseline * (sessions - 1) * (conversion - 1)))
Output:
expected revenue: 85500
explained drop: 14500
actual drop: 20000
unexplained drop: 5500
order value change that would close the gap: -6.4%
sessions effect: -10000
conversion effect at last week's sessions: -5000
overlap: 500
Reading it, line by line: "expected" is last week's revenue after applying both known changes; "explained drop" is the baseline minus that; "actual drop" is the 20% we observed; "unexplained drop" is what is left. The "order value change" line asks what AOV change would be needed to make the numbers close. The last three lines split the explained drop: the effect of sessions alone, of conversion alone at last week's sessions, and the overlap (both falling at once). Sessions account for -10,000, conversion for -5,000, and the +500 overlap exists because the two drops hit the same base (-10,000 - 5,000 + 500 = -14,500). Percent changes do not add: -10% and -5% give -14.5%, and neither adds up to -20%. Explained: 14,500 of 20,000 (72.5%). Unexplained: 5,500 (27.5%).
Why a gap should not exist, and what it means
If all three inputs come from the same orders, the identity is exact. To close the gap AOV would need to fall 6.4%, which is not "held". So the inputs probably do not share a definition. Likely suspects:
- Revenue counted net of refunds and cancellations while AOV is gross.
- "AOV held" meaning the median, while revenue moves with the mean.
- Revenue from channels outside the session data (phone, business-to-business, renewals).
- Different week boundaries or time zones, or late-posting orders.
What to look at next, in order
- Reconcile definitions: one table with sessions, orders and revenue for both weeks, same window, same refund treatment. If the gap vanishes, it was definitions.
- Recompute AOV precisely: mean and median, and by product mix (the share of orders from each product, since a shift toward cheaper products lowers AOV).
- Only then dig into conversion's own drivers, one measure each:
| Driver | Question it answers | One measure |
|---|---|---|
| Source mix (the share of visits from each channel) | Did the traffic change type? | Share of sessions by channel (paid, organic, email) |
| Session quality | Are visitors looking at products? | Share of sessions with a product-page view |
| Funnel drop-offs (the funnel is the sequence of steps from landing to order, and a drop-off is where people leave it) | Which step lost people? | Step rates: product view to cart, cart to checkout start |
| Checkout friction | Do people stall at payment? | Checkout completion rate and payment-failure rate |
Naming a driver describes the drop. Why the driver moved is a separate investigation.
Take a goal like 'onboarding completion dropped 30%' or 'migrate our monolith while cutting cost 20%'. Show me how you break it into smaller subproblems, how you decide the split, and how you know when to stop splitting.
Sample Answer
Direct answer
First I turn the goal into a precisely defined number. Then I split it using a rule that guarantees the pieces do not overlap and cover everything, and I pick the splitting dimension that separates owners and actions. I stop splitting when each leaf is testable, owned, measurable and decision-relevant.
Worked decomposition: "onboarding completion dropped 30%" (illustrative numbers; the monolith goal is worked through with numbers after the table of other goals)
- Define the metric. Completion = users who finish setup within 7 days of sign-up, divided by users who start. Check what "30%" means. A relative drop from 60% to 42% is 30% relative (18 percentage points); a drop of 30 points is a different problem.
- First split: by funnel stage. Stages are sequential, so every user stops in exactly one place (mutually exclusive) and a user who finished passed them all (exhaustive). A simplified two-stage funnel:
| Stage | Before | After |
|---|---|---|
| 1. Verify email | 75% | 75% |
| 2. Connect first data source | 80% | 56% |
| Completion (stage 1 x stage 2) | 60% | 42% |
Check: 0.75 x 0.80 = 0.60 and 0.75 x 0.56 = 0.42. Stage 2 fell from 0.80 to 0.56, which is 30% relative, so it holds the whole drop. A real funnel has more stages.
3. Second split inside stage 2: by what the user did. (a) never reached the connect screen, (b) reached it but never attempted, (c) attempted and failed. Each user is in exactly one state. The three states cover the stage-2 users who did not finish. Users who connected successfully are a fourth state, (d), kept in the split so it stays exhaustive and the sum test passes: with illustrative counts per 1,000 users who verified their email, before the drop 800 are in (d); after the drop 560 are in (d), and the 240 extra non-completers are spread across (a), (b) and (c). Each leaf has a metric from event logs, an owner (navigation team, product design, integrations engineering) and a test (count users in the state, before versus after). "Funnel" here means the ordered steps users pass through from sign-up to finished setup, and event logs are the recorded actions (screen viewed, button clicked) that let you count users at each step.
How I decide the split
I choose the dimension where (1) branches imply different actions, (2) branches map to different owners, (3) the data already exists, and (4) the split can be checked cheaply. A split by device or customer segment is useful too, but as a second-level cut, because it does not tell a team what to fix.
The stopping rule
A leaf is done when it is:
- Testable: one analysis or small experiment answers it in days, not weeks.
- Owned: one person or team can act on it.
- Measurable: it has a metric, a baseline and a target.
- Decision-relevant: a yes or no would change what we do.
Too shallow: a leaf needs a multi-week project or has two owners. Too deep: leaves nobody owns, or whose answer would not change the plan.
The same method on other goals
| Goal | Split rule | Leaves that pass the stopping rule |
|---|---|---|
| Migrate a monolith (one large deployable application) and cut cost 20% | First fix the baseline: 20% of which bill, and are one-off migration costs included? Then split by module along clear boundaries, and cost into run cost versus migration cost | Milestone 1: cost-per-module table. Milestone 2: move one low-risk module behind an interface (a stable boundary, so the rest of the application calls it the same way before and after the move) and measure its before/after cost. Each deliverable has an owner and a number |
| Reliability work (SRE, site reliability engineering) | Split by user journey, each piece tied to a service-level objective (SLO), a target like "99.9% of checkout requests succeed over 30 days" | "Checkout survives the loss of one zone" (a zone is a separate data-centre area within a cloud region), proven by a failover drill (deliberately switching to the backup) in staging (a test copy of the production system) |
| Raise engagement through recommendations (machine learning, ML) | Split along the pipeline: candidates retrieved (the shortlist the system pulls from the catalogue), ranking (ordering that shortlist), presentation (how it is shown), measurement | "Is a relevant item in the top 50 candidates?" is testable offline with logged clicks (recorded past clicks, treated as evidence of what was relevant) |
| User registration feature | Split by component: form validation, account storage, email verification, session creation, abuse protection | Each component has its own acceptance test (a check that it does what was agreed) and can be built and checked alone |
The monolith goal with numbers (illustrative)
Suppose the yearly bill is 1,200k and "cut cost 20%" means a saving of 240k a year, run cost only, with one-off migration cost reported separately. First split, by cost type, is run cost 1,200k plus one-off migration cost (tracked, not counted against the 20%). Second split, run cost by module: checkout 400k, search 300k, reports 200k, admin 100k, shared infrastructure 200k (400 + 300 + 200 + 100 + 200 = 1,200). Each module is a different team's code and bill, so each has an owner. Stopping check on the leaf "reports module, 200k": testable (move it behind an interface and compare its bill before and after, in weeks), owned (the reports team), measurable (baseline 200k, target for example 140k, a 60k saving, which is a quarter of the 240k goal), decision-relevant (if the saving is small, the next module is chosen instead). Shared infrastructure fails the check as a single leaf because no one team owns it, so it is split further by the module that consumes it.
Pitfalls
- Splitting by whatever is easiest to draw, which gives branches nobody can act on.
- Mixing two dimensions at one level (stage and device), which breaks mutual exclusivity.
- Splitting until the tree looks impressive instead of until leaves are testable.
A deployed model lost 8% accuracy week over week. Build a tree of possible explanations, going at least two levels deep, and for each leaf say the one quick check that would confirm or rule it out.
Sample Answer
Direct answer
First I confirm what "8%" means: 90% down to 82% is 8 percentage points (about 8.9% relative), whereas 8% relative is 90% down to 82.8%. Then I organise explanations by what changed this week, and give each leaf one check that takes minutes and gives a clear yes or no. I run the cheapest checks first.
The tree (example: a support-ticket urgency classifier whose accuracy fell from 90% to 82%)
| Level 1 | Level 2 leaf | The one quick check |
|---|---|---|
| We shipped something | 1a. A different model version is serving | Compare deploy log times against the day accuracy began to fall |
| 1b. A threshold (the score cut-off above which the model says "urgent") or a preprocessing step (cleaning and reshaping inputs before the model sees them) changed | Diff the configuration between last week and this week | |
| The data feed changed | 2a. Missing or default values rose | Compare the null-rate per feature (the share of rows where that field is empty), this week against last |
| 2b. A category, unit or schema (the agreed list of fields and their types) changed | Compare each feature's minimum, maximum and category list with those at training time | |
| The world changed | 3a. The mix of tickets shifted | Compare the share of tickets by product area or customer tier with last week, and check whether each segment's own accuracy is unchanged while the overall figure fell |
| 3b. Behaviour changed for the same kind of ticket | Score today's model on a frozen older labelled set (a fixed sample of tickets labelled in the past and never changed) | |
| The measurement changed | 4a. Labels are late or incomplete | Recompute accuracy using only labels older than the usual delay |
| 4b. The labelling rule or sample changed | Read the labelling guideline change log and compare the labelled share of traffic |
Eight leaves under four branches. The frozen-set check in 3b is the most informative single test: if today's model still scores about the same on an old labelled set, the model is intact and what it sees has changed.
What confirming and ruling out look like (illustrative numbers)
- Leaf 3a, mix shift. Suppose billing tickets are 95% accurate and outage tickets 70%. Last week 80% of tickets were billing: 0.8 x 95 + 0.2 x 70 = 90%. This week outages are 50%: 0.5 x 95 + 0.5 x 70 = 82.5%. Each segment's accuracy did not move, yet the total fell 7.5 points. That pattern (segments steady, overall down) confirms mix. If instead billing fell to 87% and outages to 62% with the same shares as before, accuracy fell in every segment, so mix is ruled out and the cause is inside the model or its inputs.
- Leaf 3b, frozen set. If the model scored 90% on the frozen set last week and 90% today, the model is intact and the inputs or the world changed. If it now scores 82% on that same frozen set, the model or its serving code changed (go back to branch 1).
- Leaf 3b needs care: an unchanged score on the frozen set shows only that the model and serving code are intact. It cannot tell concept change (3b) from a feed change (2a, 2b) or a mix shift (3a), so 3b is confirmed by elimination: frozen set steady, 2a and 2b clean, 3a ruled out by segment accuracy, and accuracy on freshly labelled recent tickets still low.
- Leaf 4a, label lag. If accuracy recomputed on only mature labels (older than the usual delay) is still 90%, the fall was an artefact of incomplete recent labels.
Order of work: 1a, 1b, 4a, 2a first (minutes each, from logs and dashboards), then 2b, 3a, 3b, 4b.
How the tree shifts with system type
| System | Branches (in pipeline order) | Quick check per branch |
|---|---|---|
| Generative question-answering system (a large language model, LLM, answering from documents), hallucinations (confident but unsupported answers) up | Data: source documents stale or missing. Retrieval (looking up passages to give the model): wrong passages fetched. Prompt: instructions changed. Decoding (how the model picks each next word): sampling temperature (higher means more random wording) or length limits changed. Evaluation: judge (a second model or person scoring the answers) or test set changed | Does the correct passage exist in the index (the searchable store of passages)? Is the correct passage in the top results returned? Diff the prompt. Diff the decoding settings. Re-score with the previous judge |
| Fraud model, false negatives (missed fraud) rose | Label lag: confirmed fraud arrives weeks later, so recent weeks look better than they are. (Direction matters: lag hides missed fraud in recent weeks, so it cannot explain a rise in observed false negatives; it can only mask a bigger real rise, so matured labels may show the problem is worse.) Threshold: the score cut-off for "flag as fraud" was raised, so fewer cases are flagged. Skew (training/serving skew): a feature computed one way when the model was trained and another way in live traffic | Re-score once labels have matured. Compare threshold history. Compare live and training feature values for the same transactions |
Pitfalls
- Leaves with no check ("model drift") that give no way to rule them in or out.
- Checks that take days, not minutes. If so, split the leaf.
- Accepting a leaf as the cause because its check was positive, without asking whether it is big enough to explain the whole 8 points.
You need to measure the revenue impact of a checkout simplification across several teams. Work backward from the deliverable: what are the tasks, who owns each, what depends on what, and how would you know each piece is done?
Sample Answer
Direct answer
Start from the sentence the final readout must contain: "The simplified checkout changed revenue per visitor by X (with a range), measured over window W, and here is how reliable that is." Every task exists to make that sentence true and defensible. Work backward: what must be true just before the readout, then before that, until you reach tasks that can start today. Then give each task one owner, name its upstream dependencies, and write a "done when" that someone other than the owner could check.
Structured elaboration
The deliverable is a revenue-impact estimate, so the work splits into four non-overlapping parts: (1) agree what "revenue impact" means, (2) design how the change will be compared against what would have happened anyway, (3) get trustworthy data, (4) analyze and communicate. Tasks are the nine rows below. The thresholds in "done when" are illustrative and would be agreed with the named owner, not assumed.
| # | Task | Owner | Depends on | Done when |
|---|---|---|---|---|
| T1 | Define the metric: revenue per visitor over 28 days, net of refunds, in one currency | Analytics lead with Finance | none | Finance signs the written definition |
| T2 | Choose the comparison: an A/B test (users randomly split into old vs new checkout) or, if that is impossible, a before/after design | Analyst with experimentation platform owner | T1 | Design doc states the unit, split and run length |
| T3 | Audit checkout events (started, payment submitted, order confirmed) | Checkout engineering with data engineering | T1 | Order events match the order system's own count within 1% for a sample week |
| T4 | Join sessions to orders and refunds | Data engineering | T3 | Joined table has no duplicate orders and refunds appear within 24 hours of posting |
| T5 | Configure the rollout (who gets the new checkout) and the holdout (a small group kept on the old checkout) | Checkout engineering | T2, T3 | Assignment is logged per user and the split is within 1 percentage point of plan |
| T6 | Write the analysis plan before seeing results: metric, segments, stopping rule (the run length and decision rule fixed in advance, so nobody stops when the numbers look good) | Analyst | T1, T2 | Plan is reviewed and timestamped |
| T7 | Run and monitor guardrails (extra metrics watched to confirm the change does no harm: refund rate, support contacts, payment failures) | Analyst with checkout engineering | T4, T5, T6 | Run reaches planned length with no unexplained guardrail alarm |
| T8 | Estimate the effect with an interval (a range, such as +1% to +4%, in which the true effect plausibly lies) and a sensitivity check (re-running the analysis with other reasonable choices, such as excluding outliers, to see whether the answer holds) | Analyst | T7 | Result reproduces from a saved query and notebook |
| T9 | Readout and recommendation | Analytics lead | T8 | Product and Finance can restate the number and its range |
The critical path (the longest chain of dependent tasks, which sets the finish date) depends on how long each task takes. With the illustrative durations in the worked example it runs T1, T3, T4, T7, T8, T9: the data chain, not the experiment-design chain. T5 needs both T2 and T3, so T3 feeds T5 as well as T4, and T7 cannot start until T4, T5 and T6 are all done. A data-quality slip in T3 or T4 therefore delays the whole run even though it looks like a side task. That is where I would put the earliest check-in.
Worked example
Illustrative durations in days: T1 3, T2 4, T3 5, T4 4, T5 3, T6 2, T7 56 (a 28-day run plus a 28-day revenue window, so the last users exposed still get 28 days of purchases), T8 5, T9 2.
Earliest finish days: T1 ends day 3. T2 ends day 7 and T3 ends day 8 (both start after T1). T4 ends day 12 (after T3). T5 needs both T2 and T3, so it starts day 8 and ends day 11. T6 ends day 9. T7 needs T4, T5 and T6, so it starts day 12 and ends day 68. T8 ends day 73 and T9 ends day 75.
Slack is how many days a task can slip without moving day 75: T2 has 2, T5 has 1, T6 has 3, and T1, T3, T4, T7, T8, T9 have none. If T4 slips 3 days, the readout moves from day 75 to day 78. If T6 slips 3 days, it does not move. Presenting this arithmetic early tells stakeholders which dates are fixed by the calendar and which are fixed by people.
Trade-offs and pitfalls
- Splitting by team instead of by output hides handoffs. Tasks here are split by what they produce, and the owner column then follows.
- A "done when" like "analysis complete" cannot be checked. Each one above names an observable artifact or a number.
- If random assignment is impossible (the change shipped to everyone), T2 becomes a before/after comparison, which cannot separate the change from seasonality (regular calendar swings such as holiday peaks) or promotions. I would say so in the readout rather than hide it.
- Do not skip T6. Choosing the metric after seeing results is the easiest way to get a flattering answer.
Unlock Full Question Bank
Get access to all 28 Structured Problem Solving and Decomposition interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.