KatInterview

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

Interview Practice Problems

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

6051
Problems
2239
Auto-graded
15
Topics
270
Added today

Showing 4561–4590 of 6051 results

  • Data Structure DesignMediumModel answer
    Build a nested namespace tree from dotted model parameter names

    Convert a flat list of dotted parameter keys like layer indices into a grouped nested dictionary, collecting nonconforming, duplicate, and structurally conflicting keys separately.

    Data Structure Designstringshashingtrieedge-cases
  • Greedy & IntervalsMediumAuto-graded
    Consolidate Overlapping Ranges

    Tests interval merging with sorting, overlapping logic, and immutability constraints

    Greedy & Intervalsintervalssortinggreedyarrays
  • Data Structure DesignMediumAuto-graded
    Worker Pay Rate Ledger with Interval Cost Queries

    Tests piecewise-constant function integration, lazy evaluation, and interval clipping inside a simulated in-memory billing system.

    Data Structure Designdesignintervalssimulation
  • BehavioralMediumModel answer
    Triage Decisions When Your Pipeline Fails Near a Deadline

    Rank four actions taken during a timed data science assessment where a pipeline fails a hidden test, and justify each ranking using integrity, risk, and stakeholder impact.

    Behavioralsituational-judgmentdata-sciencetime-pressureintegrity
  • BehavioralMediumModel answer
    Articulating Career Progression and Project Impact

    Demonstrate your ability to present a cohesive career story and explain a technical project's context, decisions, trade-offs, and measurable results.

    Behavioralleadershipcommunicationimpacttechnical-decisions
  • Trees & GraphsHardAuto-graded
    Compute Division Chains from Given Ratios

    Tests graph modeling of multiplicative relationships and pathfinding to derive transitive ratios between variables.

    Trees & Graphsgraphbfsunion-find
  • Math & Bit ManipulationMediumModel answer
    Compute Sum of Divisible Integers Using Inclusion-Exclusion

    Find the total of all positive integers below n divisible by 3, 5, or 7 in constant time using arithmetic series and inclusion-exclusion.

    Math & Bit Manipulationinclusion-exclusionarithmetic-seriesnumber-theory
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment for an AI Conversation Assistant in Community Forums

    Design an A/B test for a proactive AI assistant in forum threads, covering metrics, randomization, and evaluation of novelty and interaction effects.

    Statistics & Experimentsa-b-testingexperiment-designmetricsguardrails
  • System DesignMediumModel answer
    Reducing Turnaround Time on Shared HPC Benchmark Pipelines

    Design a policy and workflow to cut benchmark cycle time and HPC resource consumption without compromising result validity.

    System DesignHPCbenchmarkingresource managementQA
  • Dynamic ProgrammingMediumModel answer
    0/1 Knapsack: Space-Efficient DP with Item Recovery

    Implement a weight-capacity optimizer returning max value and an exact item set, using O(W) space DP, then extend to unbounded and bounded variants.

    Dynamic Programmingdynamic-programmingknapsackreconstructionoptimization
  • Trees & GraphsMediumAuto-graded
    Match Documents Against Filter Expressions

    Build a recursive evaluator for filter expressions with logical operators and field comparisons, testing tree traversal and nested field lookup.

    Trees & Graphsrecursiontreesdictionaries
  • Machine LearningHardModel answer
    End-to-End Design of a Food Delivery Recommendation Engine

    Design a personalized restaurant ranking system for a food-ordering app, covering retrieval, ranking, cold start, implicit feedback, and offline/online evaluation.

    Machine Learningrecommendation systemstwo-tower modelcold startimplicit feedback
  • Data Structure DesignMediumAuto-graded
    Parcel Locker Manager with History Tracking

    Build a locker allocation system that assigns the smallest free locker, validates pickups, and remembers the last package stored in each locker.

    Data Structure Designheapsimulationdata-structure-design
  • Machine LearningEasyModel answer
    Evaluating Text Classification Systems

    Walk through how you evaluate NLP classification models, covering core metrics, business tradeoffs, class imbalance, and connecting evaluation choices to real decisions.

    Machine Learningclassificationmetricsnlpevaluation
  • System DesignMediumModel answer
    Building a Metrics Platform for a Conversational AI Service

    Design a scalable analytics backend that ingests events from production systems, computes real-time and historical metrics, and serves aggregated data to dashboards.

    System Designdata-pipelinemetricsreal-timeanalytics
  • Data Structure DesignHardAuto-graded
    Timestamped Press-and-Release Event Classifier

    Tests per-button state tracking and timing logic over an ordered event stream to classify completed press-release pairs by hold duration.

    Data Structure Designhash-mapevent-streamstate-machine
  • BehavioralHardModel answer
    Sole Data Lead: Sequence Three Competing Initiatives Under Capacity Constraints

    Plan, scope, and communicate a Q4 data roadmap when total demand exceeds capacity by 50% and a mid-sprint incident forces a live re-plan.

    Behavioralprioritizationstakeholder-managementproject-planningscope-definition
  • Data Structure DesignMediumModel answer
    Build a Thread-Safe Future: Chaining and Parallel Fan-In

    Implement a generic async future primitive supporting blocking get, callback chaining, and a barrier that resolves when all parallel futures complete.

    Data Structure Designconcurrencyfuturesthreadingcallbacks
  • Machine LearningMediumModel answer
    Build a Binary Classifier from LLM Token Log-Probabilities

    Design a binary text classifier that uses only per-token log-probabilities from an LLM helper, covering scoring math, batching, calibration, and evaluation.

    Machine Learningllmclassificationnumerical-stabilitycalibration
  • Statistics & ExperimentsMediumModel answer
    Describe an A/B Test You Ran From Design Through Decision

    Explain how you designed, executed, and made decisions from a product experiment, covering hypothesis, metrics, randomization, execution issues, and trade-offs.

    Statistics & Experimentsexperimentsa-b-testingmetricsstatistical-rigor
  • BehavioralHardModel answer
    Owning and Debugging a Reliability-Critical Infrastructure Component

    Walk through a real incident where you owned a low-level infra component, covering goals, debugging process, trade-offs made, and how you drove the fix to closure.

    Behavioralownershipdebuggingdistributed-systemsincident-response
  • Statistics & ExperimentsMediumModel answer
    Sizing a Retail Parking Facility

    Determine optimal parking lot capacity for a big-box store by forecasting demand, modeling uncertainty, and balancing construction costs against lost revenue.

    Statistics & Experimentsforecastingdecision-analysistrade-offs
  • Trees & GraphsMediumModel answer
    Search and Shortest-Path Algorithms

    Implement binary search on a monotone predicate, BFS for state-space and grid shortest paths, and random board generation with adjacency counting.

    Trees & Graphsbinary-searchbfsshortest-pathgraph-traversal
  • Machine LearningMediumModel answer
    Build a Conversion Prediction System for Programmatic Ad Auctions

    Design an ML pipeline to forecast user conversion probability in real-time programmatic advertising, covering labeling, features, modeling, and production deployment.

    Machine Learningmachine-learningclassificationimbalanced-datafeature-engineering
  • Trees & GraphsMediumAuto-graded
    Verify BST Property on a Level-Order Encoded Tree

    Test whether a breadth-first list representation of a binary tree satisfies strict BST ordering without allowing duplicate values.

    Trees & Graphsbinary-treebstvalidation
  • BehavioralEasyModel answer
    C Declaration Syntax: Arrays of Pointers vs Pointers to Arrays

    Distinguish between an array of pointers and a pointer to an array in C, explaining their memory layouts and pointer arithmetic behavior.

    Behavioralcpointersmemory-layoutfundamentals
  • System DesignMediumModel answer
    Hash Table Internals: Collisions, Resizing, and Concurrency

    Explain how an in-memory hash table works under the hood, covering collision strategies, resizing cost, deletion semantics, worst-case behavior, and thread safety.

    System Designhash-tablesdata-structuresconcurrencycomplexity
  • BehavioralMediumModel answer
    Demonstrating Impact and Collaboration Through Past Work

    Showcase ownership, problem-solving, conflict resolution, growth mindset, and motivation through structured behavioral responses with quantified outcomes.

    Behavioralbehavioralleadershipcommunication
  • System DesignHardModel answer
    Design a Live Market Data Feed for a Financial Dashboard

    Design a system that streams real-time asset prices to millions of concurrent users with sub-100ms end-to-end latency.

    System Designstreamingwebsocketsfanoutpub-sub
  • Data Structure DesignMediumAuto-graded
    Simulate a Frequency-Based Eviction Cache

    Tests ability to simulate a sequence of get/put/delete operations on an LFU-like cache that evicts the least-frequently-used key on overflow, with tie-breaking by insertion order.

    Data Structure Designdata structuressimulationcache