KatInterview

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

Interview Practice Problems

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

6062
Problems
2245
Auto-graded
15
Topics
274
Added today

Showing 2191–2220 of 3817 results

  • System DesignMediumModel answer
    Access Control System With Caching and Revocation Guarantees

    Design an RBAC authorization service handling fast permission checks, role inheritance, scoped assignments, and bounded revocation delay.

    System Designrbacauthorizationcachingdistributed-systems
  • Data Structure DesignMediumModel answer
    Build a Thread-Safe Token Bucket Rate Limiter

    Implement a token bucket that refills lazily on each admission attempt, handles concurrent callers safely, and supports both non-blocking and timeout-bounded acquisition.

    Data Structure Designconcurrencyrate-limitingsynchronization
  • StringsMediumModel answer
    Build a POSIX Shell Script with Validation and Structured Output

    Write a strict POSIX sh script that validates arguments, reads a file, extracts a license string, and prints a formatted timestamped line.

    StringsshellPOSIXCLIerror-handling
  • System DesignHardModel answer
    Design a Contextual Pricing Service for a High-Volume Retail Platform

    Design a pricing API that handles batch lookups, personalized context, explicit freshness guarantees, and partial failure at one million item evaluations per second.

    System Designapi-designcachingbatch-processingfault-tolerance
  • BehavioralMediumModel answer
    Walk Through an Analysis You Built Using an AI Tool

    Explain a real analytical project where you applied an AI-assisted workflow, validated its output rigorously, handled data responsibly, and connected it to a decision.

    BehavioralAI ethicsanalytical rigorproduct judgmentaccountability
  • System DesignMediumModel answer
    Coordinating Hydrogen and Oxygen Threads into Complete Water Molecules

    Design a lock-based coordinator that lets exactly two hydrogen threads and one oxygen thread print as one water molecule, with no spinning, no interleaving, and no starvation.

    System Designconcurrencysynchronizationsemaphorescondition-variables
  • Machine LearningMediumModel answer
    Multi-Head Attention Forward Pass, Built from Primitives

    Implement the forward pass of a multi-head attention layer using only basic tensor operations, handling projections, head splitting, scaled dot-product attention, and masking.

    Machine Learningtransformersattentionnumpydeep-learning
  • Statistics & ExperimentsHardModel answer
    Design an A/B Test for a Credit Card Promotional Offer

    Plan a two-week experiment to measure whether adding a promotional incentive to a card application page increases risk-adjusted profit per session.

    Statistics & Experimentsab-testingexperimentationmetricscausal-inference
  • Statistics & ExperimentsMediumModel answer
    Designing a Marketplace Experiment for a Courier Preference Feature

    Design a rigorous pilot study to evaluate a courier-controlled order filter, balancing supply-side satisfaction against customer fulfillment risk in a two-sided marketplace.

    Statistics & Experimentsa/b testingmarketplaceexperiment designmetrics
  • BehavioralMediumModel answer
    How to Talk About Compensation Expectations

    Communicate a well-researched salary range for an ML Engineer role, justify it with market data, and articulate openness to total-compensation trade-offs.

    Behavioralcompensationnegotiationcommunication
  • Trees & GraphsMediumModel answer
    Collapsible Nested Menu with ARIA Support

    Design and code a React component that displays hierarchical data with interactive expand/collapse behavior and full keyboard accessibility.

    Trees & Graphsreactrecursionaccessibilitystate-management
  • System DesignMediumModel answer
    Python Environments and Daily Linux Workflow

    Explain how Python virtual environments work, when to reach for Conda or Poetry over plain venv, and which Linux commands you rely on to run and debug server jobs.

    System Designpythonlinuxdeveloper-toolingenvironment-management
  • Machine LearningMediumModel answer
    Review a Feature Preprocessing Class

    Critique a Python class that scales numerical features and encodes categorical ones, explaining its design pattern and identifying bugs.

    Machine Learningcode-reviewdata-preprocessingdata-leakageml-pipeline
  • BehavioralEasyModel answer
    Handling a Recruiter Phone Screen for an Engineering Role

    Prepare concise, consistent answers to recruiter-screen questions on background, logistics, motivation, and compensation, and know what each answer signals.

    Behavioralrecruiter-screenbehavioralstar-frameworkcompensation
  • BehavioralMediumModel answer
    Leadership Decision You Owned and an Engineer You Developed

    A two-part behavioral question probing a leadership call you personally made and a concrete, deliberate effort to grow an individual engineer.

    Behavioralengineering-managermentorshipdecision-makingleadership
  • SQL & DataMediumModel answer
    Daily Spend Leaders and Cost-Efficiency by Campaign Goal

    Rank the top daily advertisers with ties, then compute cost per KPI by goal using a launch-date filter and safe division.

    SQL & Datawindow-functionsaggregationjoinsdivision-by-zero
  • BehavioralMediumModel answer
    Three Critical Situations: Conflict, Teaching, and Delivery Risk

    Demonstrate professional judgment through three structured examples: resolving technical disagreement, coaching a teammate, and managing a timeline slip.

    Behavioralstar-methodleadershipcommunicationaccountability
  • BehavioralHardModel answer
    Scoping an Ambiguous Feature Request and Tying It to a Mission

    Turn a vague feature pitch into a scoped v1, one target segment, a mission-derived measurable goal, guardrails, and a 60-minute alignment meeting.

    Behavioralproduct-sensescopingstakeholder-alignmentmetrics
  • Statistics & ExperimentsHardModel answer
    Quantitative Reasoning: Probability, Combinatorics, and Logic

    Solve seventeen problems covering counting, expectation, conditional probability, combinatorics, and logical deduction.

    Statistics & Experimentsprobabilitycombinatoricsexpected-valuebayes-theorem
  • Statistics & ExperimentsMediumModel answer
    Is a 4.2% CTR Actually Good? A Hypothesis Testing Walkthrough

    Given a campaign click-through rate, formally test whether it beats a benchmark and interpret both statistical and practical significance.

    Statistics & Experimentshypothesis-testingproportionsconfidence-intervalsa-b-testing
  • BehavioralEasyModel answer
    Managing Conflicting Analytics Priorities Across Teams

    Navigate competing analytics requests from multiple stakeholders by evaluating impact, communicating trade-offs, and maintaining principled prioritization under pressure.

    Behavioralprioritizationstakeholder-managementcommunicationleadership
  • BehavioralMediumModel answer
    Take Ownership Beyond Your Role and Grow a Struggling Peer

    Demonstrate initiative on a cross-team gap and lasting, coach-first support for a colleague who was falling behind on their commitments.

    Behavioralownershipmentorshipcross-functionalcoaching
  • System DesignMediumModel answer
    DevOps & Kubernetes Fundamentals: CI/CD to Production Ops

    Demonstrate practical DevOps fluency across CI/CD pipelines, GitOps delivery, Kubernetes troubleshooting, containerization, and Linux diagnostics.

    System Designkubernetesci-cddevopslinux
  • BehavioralMediumModel answer
    Navigate a High-Stakes Team Deadlock Under a Hard Deadline

    Walk through a real cross-functional conflict: diagnose root causes, weigh options, secure buy-in, enforce the resolution, and extract lasting process improvements.

    Behavioralconflict resolutionleadershipstakeholder managementdecision making
  • Machine LearningHardModel answer
    CNN vs Recurrent Models, Plus From-Scratch K-Means

    Compare convolutional and recurrent architectures, derive LSTM gating and tensor shapes, then implement and analyze a vectorized K-means with k-means++ seeding.

    Machine Learningcnnlstmk-means
  • BehavioralMediumModel answer
    Walk Through Your Work: Projects, Decisions, and Logistics

    Present 2–3 of your strongest projects with clear ownership, technical trade-offs, and measured outcomes, then answer standard logistics questions concisely.

    Behavioralresume walkthroughtechnical decisionswork authorizationcommunication
  • Statistics & ExperimentsMediumModel answer
    Uniform Sampling From a One-Pass Stream

    Design an O(k)-memory single-pass sampler for a stream of unknown length and prove every element is kept with probability k/n.

    Statistics & Experimentsreservoir-samplingrandomized-algorithmsstreamingprobability-proof
  • System DesignMediumModel answer
    Load Balancing, Caching, and Idempotent API Design

    Design a multi-instance backend service covering routing policies, multi-layer caching strategies, and idempotent API support for non-repeatable operations like payments.

    System Designload-balancingcachingidempotencydistributed-systems
  • Data Structure DesignMediumModel answer
    Concurrent Data Structures and Calendar Scheduling

    Build thread-safe request throttling, search from scratch, frequency-ranked retrieval, and multi-calendar availability finder.

    Data Structure Designconcurrencydata-structuresalgorithmsscheduling
  • BehavioralMediumModel answer
    Identify and Resolve a User Problem Proactively

    Describe how you discovered a user friction point, validated its impact, decided on a solution, and measured the improvement in the user experience.

    Behavioralleadershipcustomer-focusinitiative