KatInterview

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

Interview Practice Problems

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

6079
Problems
2254
Auto-graded
15
Topics
270
Added today

Showing 1891–1920 of 6079 results

  • Machine LearningMediumModel answer
    Architectures and PEFT for Medical Summarization

    Analyze generative model trade-offs, low-rank adaptation, and alignment techniques for domain-specific medical text summarization.

    Machine Learninggenerative-aillmfine-tuningpeft
  • System DesignMediumModel answer
    Kafka Consumer Groups: Partition Ownership and Rebalancing

    Explain how a Kafka consumer group splits partitions, handles offsets and crashes, scales with consumer count, and behaves during a rebalance.

    System Designkafkaconsumer-groupsrebalancingoffsets
  • Data Structure DesignMediumAuto-graded
    Sharded Order Book Simulator with Cancel and Open Lookup

    Simulate a sharded order book that routes users with FNV-1a, enforces a one-way status lifecycle, and answers per-user open-order queries in placement order.

    Data Structure Designhash-mapsimulationstate-machinehashing
  • BehavioralEasyModel answer
    Behavioral Scenarios: Navigating Friction, Deadlines, and Coaching

    Demonstrate your impact through behavioral responses covering interpersonal disagreement, high-pressure timelines, and developer coaching.

    Behavioralbehavioralleadershipconflict-resolutionproject-management
  • System DesignEasyModel answer
    Design a Structured Learning Content Service

    Design a data model, API, reordering mechanism, and publishing/caching strategy for a fixed 3-tier learning content management system.

    System Designsystem-designcachingdatabase-designconcurrency
  • BehavioralMediumModel answer
    Shipping a Frontend Feature on a Fixed Date With Vague Requirements

    A behavioral question on how you prioritize, resolve unclear requirements, protect quality and keep stakeholders informed when a frontend deadline cannot move.

    Behavioralbehavioralstar-methodprioritizationambiguity
  • Heaps, Sorting & SearchHardAuto-graded
    Ranked Element Selection and Common Entry Count in Sorted Arrays

    Find the k-th smallest element across two sorted arrays and count their unique shared elements efficiently.

    Heaps, Sorting & Searchheaps-sortingarraysbinary-search
  • Statistics & ExperimentsMediumModel answer
    Investigating Ad Traffic Volumes and User Violation Complaints

    Formulate SQL logic to identify high-violation advertisers and design an analytical strategy to explain the positive correlation between ad visits and reports.

    Statistics & Experimentssqlmetrics-designexploratory-data-analysiscausal-inference
  • Data Structure DesignMediumModel answer
    Ad Campaign Event Aggregator with Pluggable Event Types

    Design an object-oriented component that ingests ad events and returns windowed per-campaign metric sums and ratios, while letting new event types be added without editing core code.

    Data Structure Designobject-oriented-designtime-seriesprefix-sumsbinary-search
  • Data Structure DesignMediumAuto-graded
    Rolling Read/Write Rate Tracker for an In-Memory Dictionary Store

    Simulate a key-value store that logs reads and writes with timestamps and answers per-second average rate queries over trailing windows, using compact time buckets.

    Data Structure Designdesignsliding-windowdequehash-map
  • Statistics & ExperimentsHardModel answer
    Inconclusive A/B Test: Power, CUPED, Bayesian Rules, Sequential Looks

    An A/B test on a 60-second video change was not significant. Size the test, cut variance, decide what to do next, control multiplicity, and design a valid sequential plan.

    Statistics & Experimentsab-testingpower-analysiscupedbayesian-decision
  • Machine LearningMediumModel answer
    Building a Trustworthy Document Q&A Assistant with Retrieval and LLMs

    Design an internal question-answering assistant that retrieves enterprise documents to ground an LLM, then explain how you would measure, guard, and debug it.

    Machine Learningragretrievalllmevaluation
  • Data Structure DesignMediumAuto-graded
    Multi-Channel Message Router with Pluggable Responders

    Simulate a command-driven chat engine that dispatches messages to registered responders, keeps per-channel logs and per-responder state, and returns the resulting logs.

    Data Structure Designdesignsimulationoophash-map
  • System DesignHardModel answer
    Design a Real-Time Content Feed Delivery System

    Design an in-memory topic subscription platform that handles fast ingestion, interest filtering, sliding-window rate limiting, de-duplication, and sorted feed distribution.

    System Designsystem-designdata-structuresrate-limitingpub-sub
  • System DesignMediumModel answer
    Secure Client-Direct Attachment Uploads for a Messaging Product

    Design a pipeline where clients send files straight to object storage using scoped signed URLs, with a tracked lifecycle, async scanning and processing, and cleanup of abandoned uploads.

    System Designsystem-designobject-storagepresigned-urlsmultipart-upload
  • System DesignMediumModel answer
    Building a Reliable Future-Dated Money Transfer Scheduler

    Design a service that fires transfers at a chosen future time, moves money atomically between accounts, and skips any transfer whose source balance is too low at that moment.

    System Designsystem-designschedulerpaymentsidempotency
  • Data Structure DesignMediumAuto-graded
    Risk-Ranked Alert Queue Simulator

    Simulate a priority queue of alerts that serves the highest risk first and the oldest first on ties, driven by a list of Put and GetNext commands.

    Data Structure Designpriority-queueheapdesignsimulation
  • Statistics & ExperimentsMediumModel answer
    Sign-In Experience Review, Feature Upgrade and Data Protection Plan

    A three-part product case: assess a short-video app's sign-in journey, redesign one feature with metrics, and lay out privacy, security and data-integrity controls.

    Statistics & Experimentsproduct-senseexperiment-designprivacyauthentication
  • Trees & GraphsMediumModel answer
    Same-Host Link Crawler: Sequential and Concurrent Versions

    Crawl every page reachable from a seed URL on the same host, ignoring URL fragments, first with one thread and then with a thread-safe parallel design.

    Trees & Graphsbfsgraph-traversalconcurrencythread-pool
  • Arrays & HashingEasyAuto-graded
    Screening a Vendor Identity-Check Response

    Validate a nested vendor response with strict type checks, then apply ordered business rules to return the first failing reason code.

    Arrays & Hashingvalidationhash-maptype-checkingsimulation
  • SQL & DataMediumModel answer
    Calculate Trailing 12-Month Segment Default Rates

    Write SQL to aggregate defaults and accounts over a trailing 12-month window for each customer segment, correctly handling non-consecutive dates and zero division.

    SQL & Datasqlwindow-functionstime-seriesaggregation
  • Statistics & ExperimentsMediumModel answer
    Profiling and Visualizing Raw Unstructured E-Commerce Data

    A guide on auditing, aggregating, and visualizing raw e-commerce event telemetry to evaluate a product launch for executive stakeholders.

    Statistics & Experimentsdata qualityexploratory data analysisdata visualizationtime series
  • System DesignHardModel answer
    Building Fast Daily Metrics Tables for a Photo App Dashboard

    Design the derived tables and incremental pipeline behind a photo app's KPI dashboard, then extend it with cohort retention, weekly rollups and a change of reporting timezone.

    System Designdata-modelingetlincremental-loadsretention
  • Math & Bit ManipulationEasyAuto-graded
    Min Comparisons to Determine Top Two Elements

    Calculate the theoretical minimum number of comparisons needed in the worst case to locate both the largest and second-largest elements among N items.

    Math & Bit Manipulationmathsortingalgorithms
  • System DesignMediumModel answer
    Nearby Places Lookup: Architecting a Proximity Search Backend

    Design a read-heavy backend that returns places within a given radius of a coordinate, covering spatial indexing, caching, API shape, capacity math, and availability.

    System Designsystem-designgeospatialgeohashquadtree
  • BehavioralMediumModel answer
    Credit, Structure, Mentorship and Feedback: Five Behavioral Prompts

    Answer five common behavioral prompts on credit disputes, chaotic teams, good leadership, career direction, and feedback, using concrete examples and a structured storytelling method.

    Behavioralbehavioralleadershipconflict-resolutionfeedback
  • System DesignMediumModel answer
    Designing a Fault-Tolerant Courier Payout Pipeline

    Design the hand-off from a courier pay calculation to an external payment service so every courier is paid the correct amount exactly once, even through outages and ambiguous timeouts.

    System Designidempotencyreliabilitypaymentsretries
  • Arrays & HashingMediumAuto-graded
    Next Lexicographic Ordering Plus Left-to-Right Calculator

    Rearrange an array in place into its next lexicographic ordering, and evaluate a parenthesis-free arithmetic string with truncating division, both in linear time.

    Arrays & Hashingnext-permutationtwo-pointersexpression-parsingin-place
  • BehavioralMediumModel answer
    Walking Through a Project You Are Proud Of and Why You Want the Role

    Tell the story of a project you are proud of, focusing on your own contribution and evidence, then link your motivations honestly to the role's confirmed responsibilities.

    Behavioralbehavioralhr-screenstorytellingmotivation
  • Machine LearningHardModel answer
    Rescuing a Rare-Event Image Flagger That Predicts Only "Safe"

    A logistic regression flagger for rare harmful uploads shows high accuracy but no detections, sparse ID features, and uneven regional quality. Lay out a plan to diagnose and repair it.

    Machine Learningimbalanced-datalogistic-regressioncategorical-encodingfairness