Find Firmware Builds With Elevated Crash Rates per Galaxy Model

Last updated: November 29, 2026

Quick Overview

Using daily active device records, crash events and firmware release dates, find every (model, firmware) pair whose crashes per 1,000 device-days over a window are more than 1.5 times the previous firmware for that same model.

Samsung
Data Manipulation (SQL/Python)
Data Engineer
Samsung
November 29, 2026
Data Engineer
Technical Screen
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


Using daily active device records, crash events and firmware release dates, find every (model, firmware) pair whose crashes per 1,000 device-days over a window are more than 1.5 times the previous firmware for that same model.

Samsung's quality and telemetry teams compare each new firmware build against its predecessor on the same device model, since crash baselines differ hugely between a flagship and a budget phone. The interviewer checks exposure normalization, window functions and sensible minimum-sample filters.

What the Interviewer Expects
  • Normalizes crashes by device-days rather than raw crash counts
  • Compares within model using LAG ordered by release date, not by firmware string
  • Keeps zero-crash builds with a LEFT JOIN and COALESCE
  • Applies a minimum exposure threshold to avoid noisy ratios
  • Uses NULLIF to avoid division by zero
Key Topics to Cover
window functions
rate normalization
joins
telemetry analytics
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you add a confidence interval or Poisson test instead of a fixed 1.5x rule?
  • Early adopters of a new build differ from the general population. How do you correct for that bias?
  • How would you make this an incremental daily job over billions of rows?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

daily_active(device_id, model, firmware, activity_date): one row per device per active day. crash_events(device_id, model, firmware, crash_date): one row per crash. `firmware_releases(model, firmw...

Approach

Compute device-days and crashes per (model, firmware) over the same window, join to release dates, filter to builds with at least 1,000 device-days, compute crashes per 1,000 device-days, then use `LA...


Submit Your Answer
Markdown supported

Related Questions