KatInterview

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

Interview Practice Problems

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

6053
Problems
2240
Auto-graded
15
Topics
270
Added today

Showing 4531–4560 of 6053 results

  • BehavioralMediumModel answer
    Walking Through Logistics and Comp in a Recruiter Call

    Communicate your compensation expectations, location preferences, start date, work authorization, and timeline constraints clearly and professionally during a recruiter conversation.

    Behavioralcompensationlogisticsrecruiter screencommunication
  • Arrays & HashingMediumAuto-graded
    Three Independent Array Challenges

    Tests greedy gain selection, modular triplet counting, and DP-based longest flexible non-decreasing subarray in one combined function.

    Arrays & Hashinggreedydynamic-programmingcombinatorics
  • Machine LearningMediumModel answer
    Design a Tabular Classification Pipeline from Raw CSV to Deployment

    Build a complete ML classification system: data splits, preprocessing, model training and tuning, evaluation metrics, serialization, and a batch inference entry point.

    Machine Learningclassificationscikit-learnfeature-engineeringmodel-evaluation
  • Dynamic ProgrammingMediumAuto-graded
    Best Revenue from Selling Rod Segments

    Tests dynamic programming by finding the optimal way to partition a rod into segments to maximize total selling price.

    Dynamic Programmingdynamic-programmingoptimizationunbounded-knapsack
  • System DesignMediumModel answer
    Critique a GPU Inference Service Design and Schedule Mixed Models

    Analyze a design for a batched GPU inference API, identifying flaws in batching, load distribution, caching, and admission control, then calculate capacity needs and schedule heterogeneous models.

    System Designgpu-inferencebatchingload-balancingcapacity-planning
  • SQL & DataMediumModel answer
    Time-Zone-Aware Activity Drop Detection Query

    Write SQL to find countries where the most creators posted significantly less in the recent week than their baseline, accounting for local time zones.

    SQL & Datasqlwindow-functionstime-seriesaggregation
  • Data Structure DesignMediumModel answer
    Expiring Credit Wallet: Drain Soonest-Expiring First, Halt on Overdraft

    Design an in-memory credit ledger that consumes the earliest-expiring balance first and permanently returns None after any overdraft.

    Data Structure Designheapgreedysimulationexpiry
  • Greedy & IntervalsEasyAuto-graded
    Consolidate Overlapping Time Ranges by Group

    Tests interval merging within distinct groups, requiring grouping logic, sorting, and adjacent-interval handling.

    Greedy & Intervalsintervalsgroupingsorting
  • BehavioralMediumModel answer
    Tell me about the hardest obstacle you overcame on a project

    Share a specific technical or collaborative challenge, walk through how you tackled it, and reflect on the outcome.

    Behavioralbehavioralcommunicationproblem-solving
  • Trees & GraphsMediumAuto-graded
    Cheapest Type Transformation Path

    Tests shortest-path reasoning on a weighted directed graph, including source-caching strategy, zero-cost edges, unreachable nodes, and same-source queries.

    Trees & Graphsgraphsshortest-pathdijkstra
  • BehavioralHardModel answer
    Own a Technical Mistake and Show What You Built From It

    Describe a real technical failure you drove, how you surfaced it, and what concrete process changes you made so it wouldn't happen again.

    Behavioralintellectual-humilityaccountabilitygrowth-mindsettechnical-leadership
  • SQL & DataMediumAuto-graded
    Distinct Content Categories per Reader

    Tests two-level aggregation: counting distinct content categories per reader on a target date, then bucketing those counts into a frequency histogram across all dates.

    SQL & Datagroupingaggregationhistogramhashing
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Recurring and One-Off Traffic Anomalies in an E-Commerce Platform

    Given three years of weekly session data with consistent autumn spikes and a single summer anomaly, identify plausible causes and validate hypotheses through segmentation and decomposition.

    Statistics & Experimentstime-seriesanomaly-detectioncausal-reasoningsegmentation
  • Trees & GraphsMediumAuto-graded
    Optimal Empty Cell with Minimum Path Distance Sum

    Tests multi-source BFS to find an empty cell minimizing total shortest-path distance to all targets on a grid with obstacles.

    Trees & Graphsbreadth-first-searchgraphsgrid-traversal
  • Statistics & ExperimentsMediumModel answer
    Design an Experiment to Evaluate a Cargo-Bike Courier Pilot

    Design an end-to-end experimentation framework—metrics, randomization strategy, spillover detection, and a decision rule—for a bike courier program in dense urban zones.

    Statistics & Experimentsexperimentationmarketplacecausal-inferencemetric-design
  • Data Structure DesignMediumAuto-graded
    Snapshot Reads from a Multi-Version Key-Value Log

    Tests whether you can design a versioned key-value store that answers "what was the value at time T?" in sub-linear time using binary search on per-key version histories.

    Data Structure Designbinary-searchhash-tabledesign
  • Trees & GraphsMediumAuto-graded
    Build Travel Route from Airline Tickets

    Tests directed graph traversal, Eulerian path construction, and lexicographical ordering with Hierholzer's algorithm.

    Trees & Graphsgraphsdfseulerian-pathbacktracking
  • System DesignHardModel answer
    Build a Multi-Institution Personal Finance Dashboard

    Design a system that ingests transactions and balances from banks and credit cards, normalizes and deduplicates them, and powers budgeting and alerting features.

    System Designsystem-designfintechdata-ingestionsecurity
  • BehavioralMediumModel answer
    Describing Impact and Cross-Functional Collaboration

    Explain a high-impact project you led and an experience collaborating across organizational boundaries to achieve a shared goal.

    Behavioralleadershipcollaborationcommunication
  • Statistics & ExperimentsMediumModel answer
    Build and Pitch a Growth Plan for a Consumer App You Know

    Walk through a consumer app's business model, propose metrics and product improvements, design an experiment, and defend the investment to a skeptical stakeholder.

    Statistics & Experimentsproduct analyticsgrowth strategyexperimentationmetrics
  • Statistics & ExperimentsHardModel answer
    Balancing Revenue and User Experience in Content Feed Monetization

    Design an experiment and framework to find the revenue-maximizing ad density that doesn't degrade long-term user engagement or lifetime value.

    Statistics & Experimentsexperimentationproduct-metricsuser-behaviormonetization
  • Data Structure DesignMediumModel answer
    Build a Reference-Counted Smart Pointer in C++

    Design and implement a shared ownership pointer with automatic memory management using reference counting and RAII principles.

    Data Structure Designc++memory-managementraiimove-semantics
  • Greedy & IntervalsMediumAuto-graded
    Greedy Starting Point for a Circular Fuel Route

    Tests whether a candidate can apply a greedy one-pass argument to find the unique valid departure station in a circular gas-station problem.

    Greedy & Intervalsgreedyarraystwo-pointers
  • Arrays & HashingMediumAuto-graded
    Largest Manhattan Distance of Aligned Subsequences

    Tests identifying that all-nonnegative distance terms let you reduce the search to complete diagonal overlaps, requiring quadratic iteration and overflow awareness.

    Arrays & Hashingarraystwo-pointersmathoptimization
  • Trees & GraphsMediumAuto-graded
    Flat Error Collection from a Recursive Schema Validator

    Tests ability to traverse a nested schema definition, flatten heterogeneous check results, and enforce a consistent empty-list contract across all node types.

    Trees & Graphsrecursionschema-validationflattening
  • System DesignMediumModel answer
    Design a Decentralized Large-File Distribution Network

    Design a peer-to-peer file sharing system where downloaders pull chunks directly from other peers, covering content identity, discovery, integrity verification, NAT traversal, and swarm health.

    System Designpeer-to-peerdistributed-systemsfile-transferNAT-traversal
  • Machine LearningHardModel answer
    Design an ML System to Forecast Shipment Arrival Time

    Design an end-to-end ML system that predicts when a parcel will arrive, covering target definition, features, leakage prevention, uncertainty, and production monitoring.

    Machine Learningml-system-designtime-to-eventfeature-engineeringdata-leakage
  • Greedy & IntervalsMediumAuto-graded
    Consolidate Overlapping Time Ranges

    Tests whether a candidate can sort and linearly sweep a list of ranges to produce the minimal set of non-overlapping intervals covering all input.

    Greedy & Intervalsintervalssortinggreedyarray
  • Trees & GraphsMediumAuto-graded
    Alternating Direction Level Order Tree Traversal

    Tests BFS traversal with directional output reversal per level without corrupting the queue structure.

    Trees & Graphsbfsbinary-treelevel-orderqueue
  • System DesignMediumModel answer
    Decompose a Monolithic Chatbot into SOLID Components

    Refactor a single-class chatbot prototype into modular, testable, dependency-injected components following SOLID design principles.

    System Designobject-oriented-designrefactoringSOLIDpython