KatInterview

practice a little every day — you've got this ♡

Interview Practice Problems

Practice 5965 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.

5965
Problems
2208
Auto-graded
15
Topics
271
Added today

Showing 31–60 of 3757 results

  • BehavioralMediumModel answer
    Telling the Story of Your Best Open-Source Pull Request

    Describe a real open-source contribution end to end: the project, your role, design choices, review collaboration, measurable results, and what you did after the merge.

    Behavioralbehavioralopen-sourceownershipstar-method
  • BehavioralMediumModel answer
    Demonstrating Informal Leadership, Technical Pivot, and Project Ownership

    Learn how to structure a behavioral interview answer showing cross-functional leadership without explicit authority, handling pivots with data, and delivering measurable impact.

    Behavioralleadershipownershipinfluence-without-authoritybehavioral-interview
  • BehavioralMediumModel answer
    Two Project Deep Dives and Three Leadership Scenarios

    Present two contrasting projects with your role, decisions, results and lessons, then explain how you handle vague requirements, slipping deadlines and decisions made without full data.

    Behavioralbehavioralleadershipstakeholder-managementdecision-making
  • System DesignMediumModel answer
    Design a Clickstream Analytics Pipeline for a Mobile App

    Design a pipeline that ingests client events such as installs and clicks, powers near-real-time dashboards, and keeps raw data for batch analysis, with explicit correctness trade-offs.

    System Designsystem-designstreamingkafkaanalytics
  • SQL & DataMediumModel answer
    Set Operations, Top-N Windows and SCD2 for Sensor Data

    Compare UNION and UNION ALL, write a NULL-safe anti-join and a top-3-per-group query, then explain star-schema roles and Type 2 history tracking for a sensor dimension.

    SQL & Datasqlwindow-functionsdata-warehousescd-type-2
  • Data Structure DesignMediumModel answer
    Build a Batch Grayscale Thumbnailer with Worker Pools

    Design and code a Pillow-based batch tool that grayscales and shrinks images, then scale it to many large files with multiprocessing, robust error handling, bounded memory and benchmarks.

    Data Structure Designpythonpillowmultiprocessingconcurrency
  • BehavioralMediumModel answer
    Four Behavioral Stories for a Data Scientist Screen

    Prepare four distinct stories showing initiative, technical project depth, rigorous problem-solving, and deliberate relationship-building, each with a clear action and measurable result.

    BehavioralbehavioralSTARdata-scienceleadership
  • Statistics & ExperimentsHardModel answer
    Power, Guardrails and Ramp Plan for a New Feed Ranker Test

    Plan an A/B test for a new feed ranking model: size it for a small CTR lift, add guardrails and sequential stopping, use CUPED, control interference, and define the ramp decision.

    Statistics & Experimentsab-testingpower-analysiscupedsequential-testing
  • System DesignMediumModel answer
    Serving Daily-Changing Prices to a High-Traffic Launch Page

    Design the API and serving layer for product prices that change at most once a day but are read at very high rates, with atomic publishing, caching, rollback and checkout correctness.

    System Designcachingcdnversioningread-heavy
  • Statistics & ExperimentsHardModel answer
    Designing a Rush-Hour Ride Discount Test and Targeting Plan

    Choose which riders should get a rush-hour ride discount, design an experiment that measures true incremental margin, and define metrics that expose wasted subsidies.

    Statistics & Experimentsab-testinguplift-modelingmarketplace-interferenceincrementality
  • Statistics & ExperimentsHardModel answer
    Feed Personalization Algorithm A/B Testing Framework

    Design an end-to-end A/B test framework to evaluate a new feed recommendation algorithm, addressing metrics, network spillover, novelty decay, and statistical validation.

    Statistics & ExperimentsAB TestingExperimentationCausal InferenceNetwork Effects
  • Statistics & ExperimentsMediumModel answer
    Propensity Score Matching for Non-Randomized Feature Opt-Ins

    Learn how to apply propensity score matching to non-randomized feature opt-in data, covering causal assumptions, propensity score estimation, balance diagnostics, and alternative estimators.

    Statistics & Experimentscausal inferencepropensity score matchingobservational dataexperimentation
  • BehavioralMediumModel answer
    Walk Through a Technical Decision You Drove as Project Lead

    Present a real project you led, focusing on one key technical decision, the alternatives you weighed, how you shaped execution, and which outcomes you can honestly back up.

    Behavioralbehavioralleadershiptechnical-tradeoffsownership
  • System DesignHardModel answer
    Host Snapshot Threat Scoring and Automated Containment Pipeline

    Design a cloud pipeline that scores host snapshots as normal or abnormal, applies safe automated containment or alerts, and exposes warning history to tenants.

    System Designml-system-designanomaly-detectionmulti-tenancyevent-driven
  • Data Structure DesignHardModel answer
    Build a Thread-Safe Dual-Resource Allocator

    Design a concurrency controller that manages exclusive access to two distinct targets while preventing deadlocks and invalid release calls.

    Data Structure Designconcurrencymultithreadinglockssynchronization
  • Data Structure DesignMediumModel answer
    Debugging a LinkedHashMap-Based Eviction Cache in Java

    Review a Java cache built on LinkedHashMap that evicts the wrong entries, find each defect, write minimal failing tests, and produce a corrected version.

    Data Structure Designlru-cachejavalinkedhashmapdebugging
  • System DesignMediumModel answer
    Build a Loyalty Points Engine with an Immutable Ledger

    Design a service that turns settled payments into loyalty points using versioned earning rules, an append-only ledger, safe redemptions, and daily reconciliation.

    System Designsystem-designledgeridempotencyrules-engine
  • System DesignMediumModel answer
    Triage a Cloud-Hosted Site Stuck on a Spinner for Most Users

    Explain how you would systematically investigate a cloud-hosted web app where most visitors see an endless loading indicator while a minority get the full page.

    System Designdebuggingincident-responsegoogle-cloudfrontend
  • Machine LearningEasyModel answer
    Evaluating a Text Classifier and Retriever: Metrics and Reporting

    Work through agreement, classification and ranking metrics, TF-IDF, reproducibility and model comparison for a document classification and search system, showing the arithmetic.

    Machine Learningevaluation-metricsnlprankingcohens-kappa
  • System DesignHardModel answer
    Design a Grounded Document Q&A Assistant on a Hosted LLM API

    Build a small retrieval-augmented chat tool with streaming answers, short memory, resilient API calls and tests, then justify the key design trade-offs.

    System Designragllmembeddingsvector-search
  • System DesignMediumModel answer
    Architect a Real-Time Direct Messaging Backend

    Design a backend for private two-person messaging that stays durable, ordered and deduplicated, with online and offline delivery, presence, and a justified split between Kafka and Redis.

    System Designsystem-designwebsocketkafkaredis
  • System DesignMediumModel answer
    Java Dispatch Rules and Choosing Between Monolith and Microservices

    Explain how Java decides which method runs (overriding versus overloading) and weigh a single deployable application against a set of independent services, including how to migrate.

    System Designjavapolymorphismdynamic-dispatchmicroservices
  • System DesignMediumModel answer
    Streaming Design for Cleaning and Near-Duplicate Removal of Web Crawl Text

    Design a horizontally scalable streaming system that extracts text from 100TB of crawled HTML, filters it, removes near-duplicates and reports live metrics, all in one pass.

    System Designsystem-designstreamingminhashlsh
  • BehavioralEasyModel answer
    Navigating Team Dynamics, Ownership, and Cross-Functional Collaboration

    Articulate your ideal work environment and share a concrete experience leading through ambiguity, cross-functional disagreement, and high-impact analytics delivery.

    Behavioralbehavioralleadershipcross-functionalcollaboration
  • Machine LearningHardModel answer
    Designing an End-to-End Time-Series Forecasting Architecture

    Architect an end-to-end time-series forecasting solution covering data preparation, baseline and advanced models, multi-step strategies, non-leaky validation, and drift management.

    Machine Learningtime-seriesforecastingsystem-designmachine-learning
  • BehavioralMediumModel answer
    Debugging a Hard Issue and Resolving a Design Dispute

    A two-part behavioral question on diagnosing an ambiguous technical fault with testable hypotheses, and on settling a design disagreement with a colleague using shared goals and evidence.

    Behavioralbehavioraldebuggingconflict-resolutiontechnical-leadership
  • Machine LearningMediumModel answer
    Regional Weather Data: Metrics, Forward Selection, Online Slope

    Analyze multi-town daily temperature data: define volatility and similarity metrics, fit and validate a regression, run greedy town selection, and derive batch and streaming no-intercept slopes.

    Machine Learningregressiontime-seriesfeature-selectiononline-learning
  • BehavioralMediumModel answer
    Owning a Project Failure and the Fixes That Lasted

    Describe a project or technical decision of yours that went badly, own your part, explain how you contained the damage, and show the lasting changes you made and the evidence they worked.

    Behavioralbehavioralownershippost-mortemincident-response
  • BehavioralMediumModel answer
    Motivation and Career Criteria: Why This Company, Why Now

    Answer a screener's question on why you chose this company and which ranked, trade-off-aware criteria drive your next career move, with specific research and a fit check.

    Behavioralbehavioralmotivationcareer-prioritiescompany-research
  • SQL & DataMediumModel answer
    Monthly USD revenue pivot with as-of FX rate lookups

    Convert multi-currency sales to USD with an as-of rate join, pivot revenue by category and region, find August's top customer per region, and flag missing FX rates.

    SQL & Datasqlas-of-joinpivotwindow-functions