KatInterview

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

Interview Practice Problems

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

5969
Problems
2211
Auto-graded
15
Topics
273
Added today

Showing 3691–3720 of 3758 results

  • Heaps, Sorting & SearchMediumModel answer
    Merge Sorted Runs by Absolute Value and Extract k-th Element

    Reorder a sorted array by absolute value in linear time, then find the k-th element in that order using logarithmic-time search without materializing the full result.

    Heaps, Sorting & Searchbinary-searchtwo-pointersorder-statisticsarray-manipulation
  • Statistics & ExperimentsMediumModel answer
    Two-Sided Platform Experiment Design

    Design an A/B test for a pricing intervention in a ride-sharing platform, addressing network effects, spillover, and marketplace-specific metrics.

    Statistics & Experimentsexperimentationtwo-sided-marketscausal-inferencemetric-design
  • Data Structure DesignHardModel answer
    Arrays vs Hash Maps: Trade-offs for Sparse Active-Record Stores

    Compare arrays and hash maps across time complexity, memory, and cache behavior, then choose the right structure for a sparse integer-keyed active set.

    Data Structure Designhash-maparraymemorycache
  • Machine LearningEasyModel answer
    Build a "You May Also Like" Item-to-Item Recommender

    Design and evaluate a simple item-to-item collaborative filtering system for an e-commerce platform recommending related products on a product detail page.

    Machine Learningmachine learningrecommendation systemscollaborative filteringevaluation
  • Data Structure DesignMediumModel answer
    Concurrent Cache with Deduplication and Safe Expiry

    Implement thread-safe cache retrieval that deduplicates simultaneous requests for identical keys while maintaining parallelism across distinct keys.

    Data Structure Designconcurrencycachingsynchronization
  • Data Structure DesignMediumModel answer
    Frontend State Management and Form Handling

    Build a web interface that manages list state, handles form submission with proper error recovery, integrates with APIs, and maintains data consistency.

    Data Structure Designfrontendstate-managementform-validationapi-integration
  • BehavioralMediumModel answer
    Walk Me Through How You Debug a Software Problem

    Explain your end-to-end debugging process: reproducing issues, choosing tools, navigating code, and keeping your team informed during high-priority incidents.

    Behavioraldebuggingtroubleshootingincident-responseobservability
  • Statistics & ExperimentsMediumModel answer
    Designing and Testing Product Improvements for a Commuter Water Bottle

    Develop ten distinct feature enhancements for a reusable water bottle targeting daily commuters, then design rigorous experiments to validate each improvement.

    Statistics & Experimentsexperiment-designhypothesis-testingmetricsproduct-analytics
  • BehavioralMediumModel answer
    Data Engineering Leadership: Project Impact and Incident Response

    Demonstrate technical ownership, production debugging skills, stakeholder management, and alignment with mission-driven engineering through structured examples.

    Behavioralleadershipdata-engineeringincident-response
  • Statistics & ExperimentsMediumModel answer
    Measuring Trial-to-Paid Conversion Rate with Censored Data

    Estimate conversion probability from free trial to paid subscription, handling incomplete observations and confounding factors.

    Statistics & Experimentsconversion-metricscensored-datacohort-analysis
  • Machine LearningHardModel answer
    Distributed Matrix Multiplication Across Multiple GPUs

    Design a system to compute matrix multiplication distributed across two GPUs, handling partitioning, communication, compute overlap, and aggregation.

    Machine Learningdistributed-systemsgpu-computingparallel-algorithmsml-infrastructure
  • Statistics & ExperimentsHardModel answer
    Diagnosing and Testing Solutions for Food Temperature Issues

    Design metrics, isolate root causes, and run an experiment to address customer complaints about meals arriving cold at delivery.

    Statistics & Experimentsexperimentationmetricscausal-inference
  • BehavioralMediumModel answer
    Align Your Experience with Core Financial Services Values

    Describe two real situations showing client-first thinking with collaboration, and risk discipline with integrity, including trade-offs and measurable results.

    Behavioralbehavioralleadershipvalues-fit
  • Machine LearningMediumModel answer
    Implementing Optimization via Gradient Descent for Regression

    Derive and implement batch gradient descent to minimize squared error for linear models, covering convergence criteria, step size selection, and regularization.

    Machine Learningoptimizationgradient-descentlinear-regressionregularization
  • Statistics & ExperimentsHardModel answer
    Decision Framework for Training Program Investment

    Design a quantitative framework to choose between vendor and in-house training options using causal measurement, financial modeling, and risk analysis.

    Statistics & Experimentscausal-inferenceexperimentationfinancial-modelingdecision-analysis
  • BehavioralMediumModel answer
    Validating organizational values through policy and measurement

    Translate culture statements into operational definitions, design diagnostic questions, and propose measurable indicators to test alignment.

    Behavioralleadershipculturemetricsstakeholder-management
  • System DesignHardModel answer
    Time-Series Telemetry Service with Proximity Search

    Build a scalable backend that ingests out-of-order device telemetry and supports efficient queries for the status record nearest to any given timestamp.

    System Designtime-seriesdatabase-designdistributed-systems
  • BehavioralMediumModel answer
    AI Coding Assistants: Benefits, Risks, and When to Trust the Output

    Evaluate how AI coding tools are reshaping software development, where they fall short, and what verification and team practices engineers should apply.

    Behavioralai-toolscode-reviewengineering-practices
  • Machine LearningMediumModel answer
    Bias-Variance Decomposition: Concepts, Math, and Model Choices

    Derive the bias-variance-noise decomposition of MSE, and explain how polynomial degree, dataset size, and L2 regularization shift each term.

    Machine Learningbias-variance tradeoffregularizationoverfitting
  • Machine LearningEasyModel answer
    Build a Content-Based Movie Recommender from Scratch

    Design and evaluate a simple content-based filtering system that recommends movies to a new user who has rated only a handful of films.

    Machine Learningmachine learningrecommendation systemscontent-based filteringfeature engineering
  • Machine LearningHardModel answer
    Build and Tune a K-Nearest Neighbors Classifier from Scratch

    Implement KNN without using a pre-built classifier, tune k via cross-validation, and generate predictions for an unlabeled dataset.

    Machine Learningknnclassificationhyperparameter-tuning
  • BehavioralMediumModel answer
    Building Trust With a Skeptical Stakeholder

    Describe a time you deliberately built a strong working relationship, covering your specific actions, obstacles you encountered, how you overcame them, and what came of it.

    Behavioralrelationship-buildingstakeholder-managementcollaborationcommunication
  • System DesignEasyModel answer
    C Pointers, printf Format Specifiers, and Memory Segments

    Test your grasp of C pointer semantics, how printf interprets variadic arguments, and where different kinds of data live in a process's memory layout.

    System DesignCpointersmemory-layoutprintf
  • Machine LearningEasyModel answer
    Choose the Right Randomization Unit for an A/B Test

    Decide whether to randomize by user, session, or request for a new ML-powered feature, and explain the consequences of each choice.

    Machine Learningmachine learningonline experimentsA/B testingstatistics
  • Statistics & ExperimentsEasyModel answer
    Compute Disease Test Probability with Bayes' Theorem

    Given a rare disease prevalence and known test accuracy rates, calculate the probability that a positive test result actually indicates disease.

    Statistics & Experimentsconditional probabilityBayes theoremstatisticsprobability
  • Statistics & ExperimentsHardModel answer
    Decompose MSE into Bias² and Variance for a Shrinkage Estimator

    Derive the bias-variance decomposition analytically, then apply it to a ridge-like shrinkage estimator and reason about the optimal shrinkage level.

    Statistics & Experimentsstatisticsbias-variance tradeoffMSEshrinkage
  • Statistics & ExperimentsMediumModel answer
    Decompose Prediction Error into Bias and Variance

    Derive the bias-variance decomposition of MSE from first principles and apply it to diagnose a concrete model comparison scenario.

    Statistics & Experimentsstatisticsbias-variance tradeoffmodel evaluation
  • System DesignMediumModel answer
    Design a Game Distribution Platform with a Store, Library, and Downloads

    Design the core backend of a PC game platform: catalog browsing, purchasing, entitlement management, and large-file game delivery with delta updates.

    System Designcdncontent-deliveryentitlementsdistributed-systems
  • System DesignMediumModel answer
    Design a Low-Latency LLM Inference Gateway

    Design a production gateway that routes, batches, and serves LLM inference requests at scale with low latency and high throughput.

    System Designsystem designLLM servinginferencescalability
  • System DesignMediumModel answer
    Design a Multi-Channel Notification Delivery Service

    Design a scalable backend service that reliably delivers notifications across email, SMS, and push channels with rate limiting and user preferences.

    System Designsystem designnotificationsmessagingscalability