KatInterview

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

Interview Practice Problems

Practice 6043 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.

6043
Problems
2238
Auto-graded
15
Topics
274
Added today

Showing 1261–1290 of 3805 results

  • System DesignEasyModel answer
    Spot the Wrong Claim About HTTP Status Code Classes

    Pick the one false statement among four claims about HTTP status code families, then explain the client-versus-server split and why it matters for retries, alerting, and API design.

    System Designhttpstatus-codesweb-protocolsapi-design
  • System DesignMediumModel answer
    Safety Subsystem for a Warehouse Robot Near People

    Design a real-time perception and decision pipeline that keeps a mobile warehouse robot from hitting workers, covering fusion, a 50 ms latency budget, stop-versus-slow logic, and sensor failures.

    System Designroboticssensor-fusionreal-time-systemssafety-critical
  • System DesignHardModel answer
    Design a Container Assignment System with Compatibility Constraints

    Design an automated container packing platform that optimizes cargo placement under weight, volume, and hazmat rules, supporting async runs, plan overrides, and strict determinism.

    System Designsystem-designdistributed-systemsoptimizationconstraint-programming
  • Data Structure DesignMediumModel answer
    Design a Spreadsheet Data Model with Dependent Cell Evaluation

    Design the internal data structures and API for a spreadsheet engine supporting raw inputs, computed values, dependency tracking, and formula evaluation.

    Data Structure DesignData Structure DesignGraphCachingDependency Tracking
  • System DesignMediumModel answer
    Design a Real-Time Collaborative Task List

    Architect a low-latency, real-time shared task list supporting concurrent edits, item reordering, explicit synchronous durability, and reconnection recovery.

    System Designsystem-designwebsocketsreal-timeconcurrency
  • Math & Bit ManipulationEasyModel answer
    Handling IEEE 754 Floating-Point Limits in JavaScript

    Understand JavaScript numeric edge cases, floating-point precision constraints, and how to safely implement custom checks without built-in helpers.

    Math & Bit Manipulationjavascriptieee-754numeric-precisiontype-coercion
  • BehavioralMediumModel answer
    Responding to Work Status, Education Checks, and Multi-Level Alignment

    Learn how to present U.S. work authorization, resolve resume discrepancies, align narratives across multiple role levels, and present minicase preparation plans during an HR screen.

    BehavioralBehavioralRecruiter ScreenInterview StrategyCareer Leveling
  • System DesignEasyModel answer
    Completely Purge Docker Host Resources

    Demonstrate how to safely and completely clear containers, images, volumes, custom networks, and build caches from a Docker daemon environment.

    System Designdockerdevopslinuxcli
  • Statistics & ExperimentsEasyModel answer
    Quantifying Weather Impact on Mental Well-Being

    Design an observational study using panel data to isolate the causal impact of ambient temperature on daily mood scores while controlling for confounders and reporting bias.

    Statistics & Experimentscausal inferencepanel datafixed effectsobservational study
  • System DesignHardModel answer
    Design a Flash-Sale Resilient Inventory Engine

    Design a multi-warehouse e-commerce inventory system handling flash sales without overselling, focusing on high availability, concurrency control, and idempotency.

    System Designsystem-designconcurrencydistributed-systemscaching
  • Statistics & ExperimentsMediumModel answer
    Modeling Early-Life Payment Counts and Their Drift Over Time

    Model a skewed, zero-heavy count of early user payments, place its key summary statistics, predict how they move at a later horizon, and pick robust reporting metrics.

    Statistics & Experimentscount-datazero-inflationheavy-tailssurvivorship-bias
  • Machine LearningHardModel answer
    Classifying Imbalanced Clinical Outcomes Under Heavy Missing Data

    Architect an end-to-end binary classification pipeline for readmissions with missing data, extreme class imbalance, metrics choice, and feature-engineered logistic regression.

    Machine Learningmissing-dataclass-imbalancelogistic-regressionevaluation-metrics
  • Machine LearningMediumModel answer
    Impact of Zero Initialization on Neural Networks and Linear Models

    Analyze why setting all weights to zero causes hidden unit symmetry in deep networks while remaining functional for single-layer models.

    Machine Learningdeep-learningneural-networksgradient-descentmodel-architecture
  • SQL & DataMediumModel answer
    Exposure Rate of Violating Content: Ex-ante vs Ex-post Views

    Write SQL that labels each view by the moderation decision known at view time and by the final decision, computes daily prevalence per country, and ranks the top creators by violating share.

    SQL & Datasqlwindow-functionsas-of-joinlateral-join
  • Data Structure DesignMediumModel answer
    Design a Multi-Tenant Security Event Enrichment Engine

    Design and implement an in-memory pipeline to enrich telemetry events and evaluate dynamic suppression rules with multi-tenant scoping and fault tolerance.

    Data Structure Designdesignobject-orientedmulti-tenancypipelines
  • Statistics & ExperimentsEasyModel answer
    Determining Initial-Year Net Profit Percentage

    Calculate first-year net profit margin given sales volume, unit pricing, unit cost, and fixed operating expenses.

    Statistics & Experimentsunit economicsprofit marginfinancial metricsquantitative reasoning
  • Arrays & HashingMediumModel answer
    Uniform Random Array Partitioning into K Segments

    Divide an array into K non-empty contiguous slices such that every valid partition is equally likely to be selected.

    Arrays & Hashingarraysmath-bitsheaps-sorting
  • System DesignMediumModel answer
    Design a Real-Time Thermal Telemetry & Ingestion System

    Design an IoT telemetry platform ingesting half a million sensor readings per second, featuring low-latency current state queries, delayed data processing, and downsampled long-term storage.

    System Designsystem-designiottime-seriesstreaming
  • Data Structure DesignMediumModel answer
    Design a Support Agent Dispatcher with Interruption Handling

    Design an in-memory dispatch engine that pairs queued support tickets with available agents, extended to handle mid-task agent breaks and fair ticket re-queuing.

    Data Structure Designdesign-dsstacks-queuesheaps-sorting
  • Machine LearningMediumModel answer
    Foundations of Generalization Error and Deep Network Gradient Dynamics

    Break down bias-variance decomposition, diagnose deep learning overfitting with remedies, and derive vanishing gradient mechanics alongside modern structural solutions.

    Machine Learningbias-varianceoverfittingvanishing-gradientsdeep-learning
  • System DesignHardModel answer
    Architecting a High-Throughput Multi-Region Data Service

    Design a multi-region metadata engine processing 50k peak QPS under 100 ms p95 latency, complete with capacity sizing, queueing performance modeling, and resiliency patterns.

    System Designsystem-designdistributed-systemsmulti-regioncapacity-planning
  • Data Structure DesignMediumModel answer
    Fix a Rotating Server Picker, Then Build a Hash Ring

    Find and fix the bugs in a round-robin server selector that handles pool changes and threads, then build a consistent-hash ring with virtual nodes that keeps key movement minimal.

    Data Structure Designload-balancingconsistent-hashingdebuggingconcurrency
  • Machine LearningMediumModel answer
    Dropping the Mean: RMSNorm Versus LayerNorm in Transformers

    Contrast LayerNorm and RMSNorm formulas, what removing centering changes, and why many large language models adopt the simpler normalization.

    Machine Learningtransformersnormalizationlayernormrmsnorm
  • System DesignHardModel answer
    Architecting a Card Network Transaction Switch

    Design a card-network transaction switch that routes authorizations to unreliable issuer banks, prevents duplicate charges, keeps an auditable ledger, and keeps card data tokenized.

    System Designpaymentsidempotencydistributed-transactionssaga
  • Arrays & HashingMediumModel answer
    Paginated API Fetching and Data Merging

    Fetch paginated JSON payloads from two separate endpoints, defensively clean and transform records, and merge them on a common key preserving the original sequence.

    Arrays & Hashingpaginationhttp-requestshash-tabledata-cleaning
  • Machine LearningMediumModel answer
    Reviewing Machine Learning Data Cleaning Code and Pipeline Design

    Evaluate an ML preprocessing codebase for design decisions, sklearn API conventions, data leakage prevention, code quality issues, and critical unit testing strategy.

    Machine Learningdata-preprocessingscikit-learncode-reviewunit-testing
  • Statistics & ExperimentsMediumModel answer
    Linear Regression Assumptions and Handling Correlated Predictors

    Describe the classical assumptions behind least squares, explain how correlated predictors affect inference, and cover diagnostics, fixes and the exactly collinear case.

    Statistics & Experimentslinear-regressionolsmulticollinearityvif
  • BehavioralHardModel answer
    Nine Leadership Stories: Behavioral Prep for a Senior Loop

    Prepare structured, quantified stories about missed commitments, root-cause digging, fast decisions, pushback, simplification, disagreement, obstacles, raising standards, and ownership.

    BehavioralbehavioralleadershipSTARownership
  • SQL & DataMediumModel answer
    Trailing Week Totals of Voice Assistant Replies per Device

    Write a query that gives each device's total replies over the current day and the six days before it, handling duplicate rows and missing dates correctly.

    SQL & Datasqlwindow-functionstime-seriespandas
  • Data Structure DesignMediumModel answer
    Build a Weekly Schedule Grid

    Construct an interactive 7-day schedule grid with hour slots, allowing users to add titled events via a clean, state-driven dialog without duplicate data sources.

    Data Structure Designfrontendreactstate-managementui-components