KatInterview

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

Interview Practice Problems

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

5972
Problems
2212
Auto-graded
15
Topics
273
Added today

Showing 3631–3660 of 3760 results

  • Statistics & ExperimentsMediumModel answer
    Covariate Adjustment for Variance Reduction in A/B Tests

    Apply regression-based variance reduction when a pre-experiment metric correlates with your outcome, and explain the conditions under which this technique remains valid.

    Statistics & Experimentsexperimentationvariance-reductionregression-adjustmentstatistical-power
  • BehavioralHardModel answer
    Managing Conflict with Senior Stakeholders

    Describe navigating a tense interaction with a senior leader, extracting requirements, documenting decisions, and learning from process failures.

    Behavioralstakeholder-managementcommunicationconflict-resolution
  • BehavioralHardModel answer
    Describing Work That Energizes and Drains You

    Explain which types of problems and environments bring out your best work as a data scientist, and which you find less motivating.

    Behavioralself-awarenessrole-fitmotivation
  • System DesignHardModel answer
    Design a Time-Series Observability Platform

    Design a platform that ingests, stores, and queries millions of tagged metric streams per second with tiered retention, cardinality guardrails, and sub-second alerting.

    System Designtime-seriesmetricscardinalitystorage
  • BehavioralMediumModel answer
    Navigate Misaligned Goals Across Engineering Teams

    Resolve a conflict between two engineering teams with competing priorities under deadline pressure through structured negotiation and incentive design.

    Behavioralleadershipstakeholder-managementconflict-resolution
  • Data Structure DesignMediumModel answer
    Account Ledger with Reservation Expiry and Merging

    Design a banking ledger that supports deposits, time-limited transfer reservations, acceptance of reserved transfers, and merging accounts with their pending operations.

    Data Structure Designstate-machinereservation-systemunion-findexpiry-handling
  • Trees & GraphsMediumModel answer
    Build a Same-Domain Web Page Crawler

    Write a crawler that visits all pages reachable from a start URL, staying within the same domain, avoiding cycles and duplicate fetches.

    Trees & Graphsgraph-traversalbfsdfsurl-parsing
  • BehavioralMediumModel answer
    Engineering Judgment in AI Safety and Behavioral Leadership

    Discuss your perspective on AI safety and its implications for software work, then answer behavioral questions demonstrating ownership and judgment.

    Behavioralleadershipethicsdecision-making
  • Machine LearningMediumModel answer
    Design a Batching Service for GPU Model Inference

    Build an online inference system that groups compatible GPU requests into batches to maximize throughput while meeting latency SLAs.

    Machine Learningml-systemsbatchingdistributed-systemsgpu
  • Data Structure DesignMediumModel answer
    Wind Field Tracker for Hot Air Balloons

    Build a system that tracks balloon altitudes, computes spatially-varying wind exposure from multiple sources, and identifies stable balloons above a threshold.

    Data Structure Designevent-simulationspatial-aggregationtime-based-statedata-structures
  • Statistics & ExperimentsMediumModel answer
    Segment-Level Profit Analysis for Feature Rollout Decision

    Calculate profit impact across customer segments, derive break-even thresholds, and recommend a launch strategy balancing short-term economics with lifetime value.

    Statistics & Experimentsexperimentationmetricsbusiness-casesegmentation
  • System DesignMediumModel answer
    Backend Architecture for High-Traffic Online Retail Platform

    Design a scalable backend for an online retail platform that handles concurrent purchases, prevents overselling, and serves millions of browsing users.

    System Designscalabilitydistributed-systemsdatabasesconsistency
  • Machine LearningMediumModel answer
    Attention Mechanisms, Autoregressive vs Masked Models, and Metrics

    Explain attention in modern neural architectures, contrast autoregressive and bidirectional pretraining approaches, and discuss precision-recall tradeoffs.

    Machine Learningdeep-learningnlpevaluation-metrics
  • BehavioralMediumModel answer
    Demonstrating Leadership and Values in Technical Interviews

    Prepare for multi-part behavioral rounds that evaluate mission alignment, conflict resolution, ethical judgment, and project ownership through structured storytelling.

    Behavioralleadershipcommunicationproject-managementethics
  • System DesignHardModel answer
    In-Memory Document-Tag Store with Thread-Safe Concurrency

    Design an in-memory library that manages documents and tags, supports multi-tag intersection queries, and handles concurrent reads and writes safely.

    System Designconcurrencyindexingapi-design
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment to Measure Search Quality

    Design an A/B test for a search feature change, define metrics to track button performance, and explain how to assess result quality.

    Statistics & Experimentsexperimentationmetricssearchhypothesis-testing
  • Data Structure DesignMediumModel answer
    Build a Dynamic IP Address Filter with CIDR and Range Support

    Implement a low-latency IP rule matcher supporting CIDR blocks and numeric ranges with conflict resolution based on specificity and recency.

    Data Structure Designnetworkingdata-structuresheapsalgorithms
  • Statistics & ExperimentsMediumModel answer
    Subscription Economics: Lifetime Value and Break-Even Analysis

    Calculate per-customer profitability for a subscription business with promotional periods, operating expenses, and attrition costs under different scenarios.

    Statistics & Experimentsunit-economicsfinancial-modelingbreak-even-analysis
  • Trees & GraphsMediumModel answer
    Build a File Owner Aggregator for Code Review Assignment

    Parse Git diffs and a CSV ownership map to identify which contributor owns the most modified files in a branch comparison.

    Trees & Graphsgitfile-iocsvaggregation
  • System DesignHardModel answer
    Building a Production CI/CD System with Custom Job Orchestration

    Design a complete continuous integration and delivery platform for a large monorepo, with emphasis on the job scheduler that coordinates pipeline execution.

    System Designci-cddistributed-systemsschedulinginfrastructure
  • Data Structure DesignMediumModel answer
    Time-Ordered Credit Bucket Manager

    Build a ledger tracking credit buckets with expiration windows, supporting out-of-order events, priority-based consumption, and point-in-time balance queries.

    Data Structure Designheapsevent-orderingtime-seriesdata-structures
  • System DesignMediumModel answer
    Building Access Control and Immutable Audit Systems

    Design a low-latency authorization framework and tamper-proof audit logging infrastructure for a high-throughput financial application.

    System Designauthorizationaudit-loggingdistributed-systemssecurity
  • BehavioralMediumModel answer
    Merging Two Compile-Time Integer Sequences in C++

    Combine two std::index_sequence types into one using template metaprogramming without deep recursion.

    Behavioralc++templatesmetaprogramming
  • System DesignHardModel answer
    Build a Scalable Chunk-Based Storage Deduplication System

    Design an enterprise-grade deduplication storage service handling petabyte-scale data with content-addressed chunking, distributed indexing, and safe garbage collection.

    System Designdistributed-systemsstoragescalabilitydata-integrity
  • Machine LearningHardModel answer
    Building a Reliable Math Computation System with LLMs

    Architect a production system that uses language models to solve mathematical problems by orchestrating symbolic computation, code execution, and tool integration.

    Machine Learningllmtool-useevaluationproduction-ml
  • SQL & DataHardModel answer
    Rolling Window Metrics and Multi-Role Activity Analysis

    Build SQL queries to calculate rolling 7-day caller engagement rates and single-day participation thresholds for geo-filtered active users.

    SQL & Datasqlaggregationwindow-functionstimezone-handling
  • Machine LearningHardModel answer
    Build a Documentation and Data Q&A System with LLMs

    Design an end-to-end RAG system that answers questions from product documentation and queries user-specific metadata with secure, tenant-isolated access.

    Machine Learningretrieval-augmented generationllmsystem architectureauthorization
  • Machine LearningMediumModel answer
    Design and Deploy a Production ML System

    Describe a machine learning system you built from problem definition through deployment, covering architecture, modeling choices, evaluation, and production concerns.

    Machine Learningml-system-designproduction-mlarchitectureexperimentation
  • Data Structure DesignMediumModel answer
    Managing a Live Event Stream with Pause and Statistics

    Build a React hook that processes a high-speed event stream with deduplication, sorting, memory limits, pause/resume, and rolling time-window metrics.

    Data Structure Designreacthooksstate-managementstreaming
  • Data Structure DesignMediumModel answer
    RPN Calculator and Lock-Free Queue Implementation

    Build a macro-enabled expression evaluator and implement a thread-safe ring buffer with proper memory ordering.

    Data Structure Designconcurrencymemory-managementcompilersdata-structures