KatInterview

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

Interview Practice Problems

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

6005
Problems
2225
Auto-graded
15
Topics
273
Added today

Showing 661–690 of 3780 results

  • Machine LearningEasyModel answer
    Five ML Concepts: Gradients, Penalties, Dropout, Similarity, Encoding

    Answer five conceptual ML questions covering loss gradients, L1 vs L2 penalties, activations and dropout, cosine vs Euclidean similarity, and encoding high-cardinality categorical features.

    Machine Learningloss-functionsregularizationdropoutcosine-similarity
  • Data Structure DesignMediumModel answer
    Reversible Edit History for a Formula-Driven Grid

    Design a command-based history for a spreadsheet that undoes and redoes cell edits, row deletions and batches, recomputes dependent formulas, handles irreversible actions, and bounds memory.

    Data Structure Designcommand-patternundo-redomementodependency-graph
  • System DesignMediumModel answer
    Secure Shared Analytics Service for Many Enterprise Customers

    Design a shared analytics service where enterprise customers run SQL on their own datasets with strict isolation, attribute-based access rules, tamper-evident auditing and erasure support.

    System Designmulti-tenancyabacaudit-loggingdata-lineage
  • Machine LearningMediumModel answer
    Group-Based Policy Optimization for LLM Fine-Tuning vs PPO

    Describe how group-relative policy optimization trains a language model from scored samples without a critic, how it compares with PPO-based RLHF, and where it breaks.

    Machine Learningreinforcement-learningllmgrpoppo
  • SQL & DataMediumModel answer
    Power Sellers and Vehicle Share of New US Listing Engagement

    Two SQL tasks on a marketplace: count sellers with many well-engaged products in a short window, and compute the Vehicle share of interactions on newly created US listings.

    SQL & Datasqljoinsaggregationsnapshot-tables
  • BehavioralMediumModel answer
    Bridging Into a Spreadsheet-Driven Pricing Analyst Role

    Explain how you would show you can succeed as a pricing analyst without direct pricing experience, working mostly in shared spreadsheets, including governance and when to move off them.

    Behavioralbehavioralpricing-analyticsgoogle-sheetsgovernance
  • Machine LearningMediumModel answer
    Designing a Ranking and Exploration Pipeline for Fresh Ad Campaigns

    Design an ML system that ranks and safely explores ads under one week old with little click or conversion history, while keeping auction pricing, user experience and advertiser pacing intact.

    Machine Learningcold-startads-rankingthompson-samplingcalibration
  • System DesignMediumModel answer
    Architecting a Payment Gateway with Real-Time Authorization and Batch Settlement

    Design a robust payment architecture that handles real-time authorization holds, deferred batch captures, and safe retries without double-charging users.

    System Designsystem-designpayment-processingidempotencyeventual-consistency
  • Machine LearningHardModel answer
    Designing a Feed Ad Recommendation and Ranking Engine

    Architect an end-to-end Machine Learning ad recommendation system for a content feed, balancing ad revenue with user experience, delayed feedback, counterfactual evaluation, and budget pacing.

    Machine Learningrecommender-systemsrankingctr-predictionmulti-task-learning
  • System DesignMediumModel answer
    Elimination Quiz Arena: Scalable Live Game Backend Design

    Design a backend for elimination-style live quiz games with many players per room, fair timing, crash recovery mid-round, and spectator traffic kept away from gameplay.

    System Designsystem-designreal-timewebsocketssharding
  • System DesignHardModel answer
    Design a Real-Time Multiplayer Matchmaking Service

    Design a scalable, low-latency matchmaking architecture capable of handling millions of players across diverse modes while keeping matches balanced, fast, and crash-resilient.

    System Designsystem-designdistributed-systemsgaminglow-latency
  • Machine LearningHardModel answer
    Rater Reliability Metrics and Validating an LLM Grader

    Explain how to quantify labeler reliability beyond raw agreement, when each metric fails, and how to decide whether an LLM can stand in for human graders.

    Machine Learninginter-annotator-agreementcohens-kappakrippendorff-alphallm-as-judge
  • BehavioralHardModel answer
    Deciding Whether to Pause or Ship a Powerful but Poorly Understood AI System

    Discuss how to decide between further research, limited testing, and broad release of a powerful AI system with unknown risks, and how rivals who may not wait change that reasoning.

    Behavioralai-safetydecision-makingethicsleadership
  • Machine LearningMediumModel answer
    Walking Through a Vision-Language Model Build, Start to Finish

    Present a vision-language model you built, covering scope, architecture, data, training, modularity, serving latency, and failure modes, with consistent numbers and clear trade-offs.

    Machine Learningvision-language-modelsmultimodalllm-traininginference-latency
  • System DesignMediumModel answer
    Backend Fundamentals: GIL, PUT vs PATCH, Cyclic GC, Lock Ordering

    Answer four backend fundamentals for a payments service: Python concurrency and the GIL, PUT/PATCH with optimistic locking, CPython garbage collection, and deadlock avoidance.

    System Designpythongilhttpoptimistic-concurrency
  • System DesignHardModel answer
    Build a Pausable GPU Workspace Platform for Research Teams

    Design a service that hands out isolated, GPU-backed Jupyter-style workspaces that can be started, paused, and resumed on any host without losing files or packages, while controlling idle GPU spend.

    System Designsystem-designgpu-schedulingpersistent-storagelifecycle-management
  • Machine LearningMediumModel answer
    Implement a Decoder-Only Autoregressive Transformer

    Write PyTorch components for a decoder-only GPT model, specifying tensor shapes and handling causal masking, multi-head attention, and block architecture.

    Machine Learningtransformersdeep-learningpytorchnlp
  • Statistics & ExperimentsHardModel answer
    Geometric Sessions, A/B Sizing, and Bootstrap on Skewed Engagement

    Four linked statistics questions: geometric session probabilities, two-proportion sample sizing, why a t-test and bootstrap CI disagree on skewed data, and a ship/no-ship recommendation.

    Statistics & Experimentsgeometric-distributionsample-sizeab-testingbootstrap
  • Statistics & ExperimentsMediumModel answer
    Two-Arm Booking Uplift: Significance, Day Clustering, and Sizing

    Analyze a one-week A/B test on booking conversion: run an unpooled z-test, apply an ICC design-effect correction, size a follow-up test, and plan heterogeneity checks.

    Statistics & Experimentsab-testingtwo-proportion-z-testdesign-effecticc
  • BehavioralMediumModel answer
    Owning a Decision Built on Faulty Metrics

    Prepare a behavioral answer about acting on flawed or misleading data: how you found the problem, what it cost, how you recovered, and which lasting safeguards you put in place.

    Behavioralbehavioralownershipdata-qualityleadership
  • Data Structure DesignHardModel answer
    Hardening a Coalescing TTL Cache: Failures, Invalidation, Eviction

    Review a promise-coalescing TTL cache in TypeScript, find its failure, invalidation and memory bugs, write a fixed version, and explain how to port it safely to multithreaded C++20.

    Data Structure Designasynccacherace-conditionslru
  • System DesignHardModel answer
    Building an Asynchronous Job Platform for LLM Requests

    Design an asynchronous backend that accepts LLM requests, queues and routes them fairly, runs them reliably, and returns results, with cost, security and SLA controls.

    System Designsystem-designllm-servingjob-queueidempotency
  • System DesignMediumModel answer
    Build a Real-Time Multi-User Document Editing Platform

    Design a platform where many people edit one document simultaneously, covering merge rules, live streaming, durable history, reconnect, and periodic Git checkpoints.

    System Designsystem-designcollaborationcrdtoperational-transform
  • Machine LearningEasyModel answer
    ML Fundamentals: Generalization, Contrastive Embeddings, Attention

    Explain how to diagnose and curb overfitting, how contrastive pretraining and its loss shape embeddings, and how a transformer block works.

    Machine Learningoverfittingcontrastive-learninginfoncetransformers
  • System DesignHardModel answer
    Build a Delayed-Task Platform with a Fast Status Cache

    Design a distributed platform that runs delayed and immediate background tasks with retries and durable state, plus a cache that serves task status in under 10 ms at 10k requests/second.

    System Designsystem-designjob-queuecachingidempotency
  • Trees & GraphsMediumModel answer
    Two Warm-Ups: One-Deletion Palindrome and Column-Grouped Tree Output

    Decide whether a string becomes a palindrome after removing at most one character, then group a binary tree's node values by column using level-order tie-breaking.

    Trees & Graphstwo-pointerspalindromebfsbinary-tree
  • BehavioralMediumModel answer
    Making the Case for Working Across the Whole Stack

    Explain in an interview why you want a full-stack role rather than a frontend-only or backend-only one, using motivation, the problems you enjoy, and how breadth helps products and teamwork.

    Behavioralbehavioralmotivationfull-stackcommunication
  • Statistics & ExperimentsEasyModel answer
    Validating Autonomous Vehicle Simulations Against Real-World Sensor Logs

    Design a statistical and domain-specific evaluation framework to determine if a simulated driving environment realistically captures vehicle behavior and physical edge cases.

    Statistics & ExperimentsA/B TestingDistribution ComparisonAutonomous VehiclesHypothesis Testing
  • Data Structure DesignMediumModel answer
    Build an In-Memory Price History Store with One-Shot Updates

    Design a per-symbol price store supporting lookups, custom change formulas, atomic range updates that can touch each slot only once, and a switch from daily to hourly data.

    Data Structure Designdata-structure-designtime-seriesatomic-updateshash-map
  • System DesignEasyModel answer
    Pinpointing a Storage Bottleneck on a Slow Production Host

    Walk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.

    System Designlinuxperformanceiostatstorage