KatInterview

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

Interview Practice Problems

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

6077
Problems
2253
Auto-graded
15
Topics
271
Added today

Showing 4111–4140 of 6077 results

  • Trees & GraphsMediumModel answer
    Chain All Words Into One String via Shared Letters

    Given a list of words, merge them into one string by joining where each word's last letter matches the next word's first letter, dropping the duplicate.

    Trees & Graphseulerian-pathgraphstringshierholzer
  • Data Structure DesignMediumModel answer
    Extensible Card Hand Evaluator with Pluggable Rules

    Design and incrementally build a card-hand evaluator that ranks hands, resolves ties deterministically, adds new categories, and applies a swappable discard rule.

    Data Structure Designobject-oriented designextensibilitygame logic
  • System DesignHardModel answer
    Design a Self-Describing Columnar File Format for Time-Series Data

    Design the binary layout, writer/reader interfaces, and operational invariants for an append-friendly columnar file format suited to high-throughput time-series workloads.

    System Designfile-formatscolumnar-storageserializationcompression
  • SQL & DataMediumAuto-graded
    Aggregate Transactions by Country for Most Recent Active Period

    Tests date handling, filtering, and grouped aggregation to find the latest month with successful records and summarize by region.

    SQL & Dataaggregationdate-manipulationfiltering
  • Data Structure DesignMediumModel answer
    File Storage Manager with Quota Enforcement

    Build an in-memory file manager that tracks user storage, enforces capacity limits, and evicts largest files when quotas shrink.

    Data Structure Designhash-mapheaplazy-deletionquota-management
  • System DesignHardModel answer
    Aggregate Node Counts Across an Unreliable Distributed Tree

    Design a fault-tolerant protocol where each node in a distributed tree contributes its subtree size upward until the root knows the total node count.

    System Designdistributed-systemsfault-toleranceconvergecastidempotency
  • Arrays & HashingMediumAuto-graded
    Tracking Aligned Prefix Moments in a Permutation Sequence

    Tests the ability to recognize when a running maximum equals the current index in a permutation, using invariant reasoning to avoid simulation.

    Arrays & Hashingpermutationsprefix-conditionrunning-maximuminvariants
  • System DesignHardModel answer
    Keeping Latency SLOs Alive During Traffic Spikes

    Design a layered overload protection system that sustains goodput and p99 latency targets when request volume suddenly surges beyond provisioned capacity.

    System Designload-sheddingrate-limitingadmission-controlcircuit-breakers
  • StringsMediumAuto-graded
    Check Character Mapping Consistency

    Tests whether two strings establish a valid one-to-one character correspondence at each position.

    Stringshash-maptwo-pointersbijection
  • BehavioralMediumModel answer
    Project Deep Dive, Cross-Team Collaboration, and Technical Disagreements

    Walk through a project you owned, explain how you coordinated with others to ship it, and describe a real technical disagreement and how it got resolved.

    Behavioralownershipcollaborationconflict-resolutiontechnical-depth
  • Data Structure DesignMediumModel answer
    Sliding-Window Trending URLs with Deduplication

    Design a data structure that tracks the most-visited URLs over a configurable recent time window, with idempotent inserts and efficient eviction.

    Data Structure Designsliding-windowheaphash-mapstreaming
  • Statistics & ExperimentsMediumModel answer
    Regression Output Walkthrough: Slope, P-value, and Causality

    Interpret a fitted regression slope end-to-end: build the test statistic, read p-values and intervals correctly, check assumptions, and explain why correlation isn't causation.

    Statistics & Experimentsregressionhypothesis-testingconfidence-intervalscausality
  • Machine LearningMediumModel answer
    Design a Query Router Between a Local Assistant and a Cloud LLM

    Design an end-to-end ML system that decides whether a natural-language query should go to a lightweight local assistant or a powerful cloud LLM.

    Machine Learningsystem-designnlpclassificationexperimentation
  • BehavioralHardModel answer
    Leading an Ambiguous Product Initiative

    Describe a project where you defined success criteria, tested assumptions, pivoted on evidence, resolved disagreements, and made deliberate trade-offs under constraints.

    Behavioralleadershipproduct-thinkingexperimentationstakeholder-management
  • System DesignMediumModel answer
    Receding-Horizon Controller for a Sinking Drone

    Build a tick-by-tick autopilot that uses short deterministic lookahead to steer a sinking drone through a series of vertical gap obstacles.

    System Designsimulationsearchgame-aideterministic-planning
  • Data Structure DesignMediumAuto-graded
    Out-of-Order Loan Event Ledger with Fee-First Payments

    Tests ordered insertion, fee-before-principal payment allocation, and efficient forward-propagation of balance changes when events arrive out of sequence.

    Data Structure Designsimulationsorted-insertdata-structure-design
  • StringsMediumAuto-graded
    Minimum Edits to Form Palindromic Segments

    Tests two-pointer logic and palindrome verification to compute the fewest replacements that transform every fixed-size segment into a palindrome.

    Stringstwo-pointerspalindromegreedy
  • BehavioralMediumModel answer
    Articulating Your Career Transition Rationale

    Craft a compelling narrative explaining your reasons for seeking new opportunities while demonstrating professionalism, growth mindset, and strategic career planning.

    Behavioralcareer-developmentcommunicationself-awareness
  • Machine LearningHardModel answer
    Outliers, Leverage, and Influence in OLS Regression

    Derive Cook's distance from first principles, build a diagnostic workflow, show how one point can flip a coefficient's sign, and compare robust regression alternatives.

    Machine Learningregressiondiagnosticsrobust-statisticscook-distance
  • Math & Bit ManipulationMediumAuto-graded
    Overflow-Safe Power with a Custom Modular Multiplier

    Tests whether a candidate can build exponentiation from scratch using only 64-bit-safe addition and multiplication under an arbitrary modulus.

    Math & Bit Manipulationmodular arithmeticbit manipulationexponentiation by squaring
  • System DesignHardModel answer
    Build a Scalable Portfolio Optimizer with Point-in-Time Data

    Design a system that runs 30,000 portfolio optimizations in 90 minutes with strict as-of-date correctness, deterministic replay, and full audit trails.

    System Designdistributed-systemsfinancial-systemsdata-pipelines
  • Machine LearningMediumModel answer
    Real-Time Perception Pipeline for Autonomous Driving

    Design an ML pipeline that fuses camera, LiDAR, and radar data to detect obstacles with sub-100ms latency on edge hardware.

    Machine Learningml-systemscomputer-visionsensor-fusionedge-ml
  • Trees & GraphsMediumAuto-graded
    Connected Land Regions on a Grid (8-Direction)

    Tests graph traversal skills by counting connected components in a character grid where land cells are neighbours in all eight directions including diagonals.

    Trees & Graphsgraph traversalBFS/DFSflood fillconnected components
  • SQL & DataMediumAuto-graded
    User Signup and Follower Metrics Report

    Simulate three SQL analytics queries in Python: total users, busiest signup month (with tie-break), and the most-followed usernames including ties.

    SQL & Dataaggregationgroupingcountingties
  • StringsMediumAuto-graded
    Verify Anagram Coverage for All Contiguous Substrings

    Tests whether every contiguous substring of length 3 or more in a given string can be rearranged to match some dictionary word.

    Stringsanagramsprefix-sumhashing
  • BehavioralMediumModel answer
    Own It, Measure It, Fix It: Four Core Behavioral Stories

    Prepare structured, metric-driven stories covering a setback you recovered from, a disagreement you navigated, a metric you moved, and an AI feature that misfired.

    BehavioralSTAR methodownershipconflict resolutiongenerative AI
  • BehavioralMediumModel answer
    Lead a Data Science Project Through Conflict, Constraints, and Scope

    Walk through a single data science project from multiple angles: resolving disagreements, expanding scope responsibly, hitting tight deadlines, simplifying a solution, and closing the customer feedback loop.

    Behavioralleadershipconflict-resolutionscope-managementcustomer-feedback
  • System DesignHardModel answer
    Data Lifecycle Design for a Document-Grounded Chat System

    Design expiry enforcement, conversation history serving, and long-term auditing for a RAG chat platform where document and chat retention windows conflict.

    System DesignRAGdata-lifecycleretention-policyvector-store
  • Machine LearningHardModel answer
    Predict Which Free-Tier Merchants Will Upgrade to a Paid Plan

    Design a production-ready ML pipeline to identify free-tier merchants likely to convert to a paid subscription within 60 days, covering labeling, leakage, features, modeling, evaluation, and monitoring.

    Machine Learningsupervised-learningfeature-engineeringtime-series-leakagemodel-calibration
  • Machine LearningMediumModel answer
    Designing a Safe Patient-Facing Medical QA Assistant

    Design the data pipeline, grounding architecture, hallucination and safety evaluation, and fairness controls for a clinical Q&A assistant that must never diagnose.

    Machine Learningragllm-safetyevaluationhealthcare