KatInterview

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

Interview Practice Problems

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

6067
Problems
2249
Auto-graded
15
Topics
276
Added today

Showing 4291–4320 of 6067 results

  • Statistics & ExperimentsHardModel answer
    Cluster-randomized experiment design for a social feature with network effects

    Design a cluster-based A/B test for a friend-invitation feature when user-to-user influence breaks SUTVA, covering partitioning, estimation, and spillover validation.

    Statistics & Experimentsexperiment-designnetwork-interferencecausal-inferenceab-testing
  • Machine LearningMediumModel answer
    OOD Guardrails for a Domain-Restricted Financial Chatbot

    Design a low-latency pipeline that classifies chatbot queries as in-domain or out-of-domain, routes them safely, and stays calibrated as traffic drifts.

    Machine Learningood-detectionllm-guardrailsragdrift-monitoring
  • Data Structure DesignMediumAuto-graded
    Replay Operations Against an LRU Cache

    Replay a scripted sequence of get/put operations against a fixed-capacity LRU cache and return one result per operation.

    Data Structure Designlru-cachehash-mapsimulationordered-dict
  • SQL & DataMediumModel answer
    SQL Window Functions, Join Cardinalities, Dedup, and Pandas Merges

    Work through ten interconnected SQL and pandas tasks spanning aggregations with NULL handling, join types, set operations, window functions, views, duplicate management, and indexing strategy.

    SQL & Datasqlpandaswindow-functions
  • Arrays & HashingMediumAuto-graded
    Verify Safe Spacing During Multi-Vehicle Forward Simulation

    Tests discrete-time physics simulation with kinematic updates and safety constraint checking across multiple moving objects.

    Arrays & Hashingsimulationphysicsiteration
  • BehavioralMediumModel answer
    Handling Conflict, Core Lessons, and Career Highlights

    Discuss a workplace disagreement you resolved, a lesson that shaped your work, and a project that represents your best contributions.

    Behavioralbehavioralleadershipcommunication
  • System DesignHardModel answer
    Design a Table Booking Platform for Restaurants

    Design a multi-restaurant reservation platform where diners search availability by party size and time, then book, modify, or cancel — without ever double-booking a table.

    System Designsystem-designconcurrencydistributed-systemsdatabase
  • StringsMediumModel answer
    Build a Holiday Gift Matcher from CSV Input

    Parse participant data from a CSV string with quoted fields, validate entries, and create a round-robin assignment where no one gives a gift to themselves.

    Stringsparsingvalidationalgorithmscsv
  • Trees & GraphsMediumModel answer
    Cluster Exposures: Net Change per Asset Group

    Find connected components in an asset correlation graph and return the summed position delta for each component as a labeled group.

    Trees & Graphsgraph traversalconnected componentshash mapDFS
  • Heaps, Sorting & SearchMediumAuto-graded
    Unique Element Count via Binary Search Jumps

    Count unique values in a sorted array by jumping between runs using binary search, achieving sublinear time when diversity is low.

    Heaps, Sorting & Searchbinary-searcharrayssorted-arrayoptimization
  • System DesignMediumModel answer
    Serving Inventory From Spinning Disks With Tiny RAM

    Design an inventory service on hard drives with little memory: layout records to minimize seeks, pin the index, cache hot items, batch writes, and keep reservations correct.

    System Designstorage-enginecachingb-treewrite-ahead-log
  • BehavioralMediumModel answer
    Avoiding Past Turmoil: A Product Manager Behavioral Question

    Describe a challenging situation from a previous role you want to avoid next, how you contributed to it, and how you'll handle it differently going forward.

    Behavioralproduct-managementself-awarenessconflict-resolutionleadership
  • Arrays & HashingMediumAuto-graded
    Compute Spending Totals by Worker, Journey, and Type

    Tests efficient multi-key aggregation using hash maps to group and sum records in a single pass over large datasets.

    Arrays & Hashinghash-mapsaggregationgrouping
  • Statistics & ExperimentsEasyModel answer
    Sketch Demand and Profit Curves for a Subscription Service

    Draw and explain price-vs-demand and price-vs-profit curves for a subscription business, identifying the profit-maximizing price using marginal analysis.

    Statistics & Experimentspricingdemand curvesprofit maximizationelasticity
  • System DesignHardModel answer
    Designing a Prepaid Credit Meter for Shared GPU Clusters

    Design a multi-tenant system that reserves, meters, and settles GPU credits across many nodes, with hierarchical budgets, idempotent APIs, and scheduler integration.

    System Designledgermeteringmulti-tenancyidempotency
  • Statistics & ExperimentsMediumModel answer
    Financial Math and Statistical Estimation Under Real-World Conditions

    Discuss key financial instruments and statistical challenges when estimating volatility from return data with non-ideal properties.

    Statistics & Experimentsfinancestatisticsvolatilityhypothesis-testing
  • BehavioralMediumModel answer
    Integrating AI Tools into Your Development Workflow

    Describe your practical experience using AI coding assistants, where they add value versus where they introduce risk, and how you integrate them responsibly.

    Behavioralai-toolsengineering-judgmentworkflowbest-practices
  • System DesignMediumModel answer
    Design a Multi-Tenant AI Receptionist for Voice and Chat

    Design a platform where businesses deploy an AI receptionist over phone and chat, using approved knowledge, permitted actions, and live human handoff.

    System Designaimulti-tenantreal-timeconversational-ai
  • BehavioralMediumModel answer
    Write a Follow-Up Email After a Team Interview

    Compose a concise, non-pushy follow-up email to a hiring director after a team-match meeting, and justify every structural choice.

    Behavioralwritten communicationstakeholder managementprofessional etiquette
  • Trees & GraphsHardAuto-graded
    Safe Edge Insertion Check for a Dependency Graph

    Tests graph reachability and cycle detection: determine whether a new directed edge can be added to an acyclic dependency graph without introducing a cycle.

    Trees & Graphsgraphsdepth-first-searchcycle-detectionreachability
  • System DesignHardModel answer
    JavaScript Concurrency and React's useState vs useRef

    Explain how JavaScript achieves concurrency on a single thread, when real parallelism is possible, and how useState and useRef differ in a React component.

    System Designjavascriptreactconcurrencyhooks
  • System DesignHardModel answer
    Build a Multi-Tenant Tag Index That Scales to Billions

    Design a tagging system supporting tag lifecycle, boolean item queries, autocomplete, and high read/write throughput across thousands of tenants.

    System Designsystem-designdistributed-systemsindexingsharding
  • BehavioralMediumModel answer
    Explain a High-Scale System You Owned

    Walk through the design, trade-offs, production challenges, and measurable outcomes of a distributed system you built or rearchitected.

    Behavioraldistributed-systemsarchitectureownership
  • System DesignMediumModel answer
    Fan-Out Aggregation, Retry Logic, and Load Balancer Repair

    Implement a fault-tolerant multi-source data aggregator with retry handling, then find and fix bugs in a load balancer and extend it with round-robin and consistent hashing.

    System Designfault-toleranceload-balancingretry-logicapi-aggregation
  • Heaps, Sorting & SearchMediumAuto-graded
    Task Scheduler with Parallel Workers

    Simulate dispatching sequential tasks to parallel workers and determine when all work completes.

    Heaps, Sorting & Searchheapsimulationgreedy
  • Arrays & HashingMediumAuto-graded
    Valid Subsets Bounded by Their Spread

    Count non-empty index-distinct subsets where the smallest plus largest value stays within a limit, using sorting, two pointers, and modular arithmetic.

    Arrays & Hashingtwo-pointerssortingcombinatorics
  • System DesignMediumModel answer
    Build an In-Memory Venue Reservation Engine

    Design data structures and APIs for a reservation system that runs entirely in memory, handles concurrent bookings, and prevents double-reservations.

    System Designconcurrencyin-memorylow-level-design
  • Data Structure DesignMediumModel answer
    Duplicate-Aware Collection with O(1) Random Sampling

    Design a multiset supporting insert, remove, and uniform random sampling over all occurrences, each in expected O(1) time.

    Data Structure Designhash-maparrayrandomnessdata-structure-design
  • BehavioralMediumModel answer
    Rescue a Flawed Pipeline Before a High-Stakes Business Decision

    Demonstrate how you investigated a data quality crisis, aligned skeptical stakeholders, and delivered a measurable outcome that changed a real business decision.

    Behavioraldata qualityownershipstakeholder managementmetrics
  • BehavioralMediumModel answer
    Owning an End-to-End Analytics Initiative with Ambiguity

    Demonstrate how you've driven a complete analytics project from vague requirements to measurable impact, including stakeholder management and trade-off decisions.

    Behavioralleadershipanalyticsexperimentationstakeholder-management