KatInterview

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

Interview Practice Problems

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

5980
Problems
2215
Auto-graded
15
Topics
272
Added today

Showing 241–270 of 5980 results

  • System DesignMediumModel answer
    Streaming Ranking of the Busiest Users Over a Rolling Hour

    Design a fault-tolerant stream pipeline that keeps an exact, event-time ranking of the 100 users with the most events in the last 60 minutes, tolerating late data and skew.

    System Designstream-processingtop-ksliding-windowkafka
  • Statistics & ExperimentsMediumModel answer
    Planning a Controlled Experiment for a New Signup Journey

    Plan a randomized experiment for a revamped first-run experience in a subscription product, size it, monitor it safely, and decide when a gain comes with a rise in support load.

    Statistics & Experimentsab-testingexperiment-designsample-sizeguardrail-metrics
  • BehavioralMediumModel answer
    Framing Career Transitions and Motivation for Autonomy Software Roles

    Learn how to effectively explain job search motivations, company interest, technical background, and past academic choices during technical screening calls for software roles.

    Behavioralbehavioralcareer-storytechnical-screeninterview-preparation
  • Data Structure DesignHardModel answer
    Thread-Safe In-Memory Store and Sliding-Window Counter

    Find the concurrency bugs in an in-memory key-value store with expiry and a 300-second hit counter, then fix them with appropriate locking and describe how to test.

    Data Structure Designconcurrencyrace-conditionslockingthread-safety
  • Trees & GraphsMediumAuto-graded
    Edge Silhouettes of a Level-Order Binary Tree

    Build a binary tree from a level-order list with gaps and report the first and last node of every level, testing BFS level separation and level-order parsing.

    Trees & Graphsbinary-treebfslevel-ordertree-construction
  • Arrays & HashingHardAuto-graded
    Identify Most Popular Three-Page User Sequence

    Process website activity logs to compute chronological 3-site visit subsequences and find the most widely performed pattern across unique users.

    Arrays & Hashingarrayshash-tablesortingsubsequence
  • System DesignHardModel answer
    Building a Production Pipeline for Photo Object Recognition

    Design a scalable, reliable service that accepts images, runs object-detection models on GPUs, and returns labeled bounding boxes through sync and bulk APIs, with ML lifecycle and operations covered.

    System Designml-system-designobject-detectionmodel-servinggpu-inference
  • System DesignHardModel answer
    Design a Real-Time Translation API with Batching

    Design an inference backend that aggregates single-sentence translation requests into GPU batches running on a fixed 80 ms execution loop.

    System Designsystem-designml-infrastructurebatchinglatency
  • Data Structure DesignMediumAuto-graded
    Article Reaction Ledger with Recent Reversal Log

    Simulate a stream of up/down/clear reactions on articles, maintaining net scores and a bounded log of the three most recent reversals per article, all in constant time per operation.

    Data Structure Designhash-mapdequesimulationstate-tracking
  • BehavioralMediumModel answer
    Answering "Why Are You Leaving, and Why Us?" Convincingly

    Practice a concise, forward-looking answer that explains your move and links your strengths to a specific team, without criticizing your current employer.

    Behavioralbehavioralcareer-motivationcommunicationself-awareness
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a Conversion Drop After an App-Install Splash Screen

    Work out whether an app-install splash screen caused a fall in first-time buyers from partner links, price the install-versus-order trade-off, and design a test to pick keep, change, or remove.

    Statistics & Experimentscausal-inferenceab-testingfunnel-analysisdifference-in-differences
  • System DesignHardModel answer
    Building a Pipeline for Cross-Modal File Vectorization at Scale

    Design a multi-tenant service that turns uploaded documents, images and videos into searchable vectors, covering ingestion, inference, storage, dedup, re-embedding, and operations.

    System Designml-system-designembeddingsvector-searchgpu-batching
  • System DesignMediumModel answer
    Bootstrap a Reproducible Python Workspace and Starter Service

    Describe how to take a fresh machine to a pinned, secure, fast-feedback Python workspace and prove it works by scaffolding a small tested CLI and HTTP service.

    System Designpythontoolingvirtualenvreproducibility
  • Arrays & HashingEasyAuto-graded
    Rank Companion Items by Shared Collections

    Count how often each item shares a collection with a target item, then rank by count descending and name ascending, with an optional cap on the result length.

    Arrays & Hashinghash-mapcountingsortingco-occurrence
  • System DesignMediumModel answer
    Architect a Multi-Tenant Team Chat Service with Live Delivery

    Design a multi-tenant team chat product covering channels, DMs, real-time delivery, history sync, search, and notifications, with per-channel ordering and tenant isolation.

    System Designsystem-designreal-timewebsocketssharding
  • Math & Bit ManipulationMediumAuto-graded
    Expected Matching-Rank Pairs in a Random Card Hand

    Compute the expected number of same-rank card pairs in a hand drawn without replacement, using linearity of expectation over pairs of cards.

    Math & Bit Manipulationprobabilityexpectationcombinatoricslinearity-of-expectation
  • BehavioralMediumModel answer
    Balancing Risk, Sales and Engineering Demands on a Payments Data Project

    Behavioral prompt: tell a STAR story about competing stakeholder priorities in payments analytics, then show your prioritization, messaging, conflict handling and retrospective.

    Behavioralstakeholder-managementprioritizationconflict-resolutionstar-method
  • System DesignHardModel answer
    Building a Type-Ahead Suggestion Service for a Large Search Box

    Design a low-latency type-ahead service that returns ranked, personalized, typo-tolerant, multilingual query suggestions while filtering abusive content and protecting user privacy.

    System Designsystem-designautocompletetrieranking
  • BehavioralMediumModel answer
    Transitioning from Data Analyst to Technology Consultant

    Articulate a compelling narrative for transitioning from internal data analytics to client-facing implementation consulting during an interview screen.

    Behavioralbehavioralcareer transitionconsultingstakeholder management
  • StringsMediumAuto-graded
    Minimal Distinguishing Abbreviations for a Word List

    Compute, for each word, the shortest leading substring shared with no other entry, using prefix counting or a trie, and return the whole word when none exists.

    Stringstrieprefixhash-mapstrings
  • Data Structure DesignMediumModel answer
    Build a Grouped, Promo-Aware, Sorted Receipt Printer

    Extend a cart class that turns scanned item names into a receipt: itemized total, grouping by type, a buy-three-get-two-free deal, then alphabetical ordering.

    Data Structure Designobject-oriented-designhash-maprefactoringmoney-arithmetic
  • Data Structure DesignMediumModel answer
    Layered REST API for Text Condensing with FastAPI

    Design a small FastAPI service that accepts text, returns a placeholder-generated summary, validates input, handles errors, and keeps a bounded in-memory history, using clear layers.

    Data Structure Designfastapipythonpydanticrest-api
  • System DesignHardModel answer
    Input Event Capture and Deterministic Text Replay Design

    Design a pipeline that records keyboard, mouse and IME events from several devices, orders them globally, persists a log, and rebuilds the exact typed text on replay.

    System Designsystem-designevent-sourcingimewrite-ahead-log
  • StringsEasyModel answer
    Letter-Match Feedback Widget for a Five-Letter Word Game

    Build a small browser widget that scores a typed guess of up to five letters against a fixed secret word, marking each letter exact, misplaced or absent, with sound input handling.

    Stringsstringsfrontendstate-managementinput-validation
  • Trees & GraphsMediumAuto-graded
    Fewest Rolls to Park a Sliding Ball in a Grid

    Model a sliding ball as BFS over resting positions, where each edge is a full roll until a wall or border, and the target counts only if the ball stops on it.

    Trees & Graphsbfsgridgraphshortest-path
  • System DesignMediumModel answer
    CI Pipelines with Jenkins and Handling Oversized Log Files

    Discuss your delivery-automation experience, design a Jenkins build-and-test pipeline with plugins, and explain how to search a log too big to open without loading it into memory.

    System Designjenkinsci-cddevopslog-analysis
  • Data Structure DesignEasyModel answer
    Resolving Name Clashes Across Two Python Parent Classes

    Predict which inherited method runs when a class has two parents defining the same method name, and explain Python's lookup order, super() cooperation, and alternatives.

    Data Structure Designpythoninheritancemroc3-linearization
  • BehavioralEasyModel answer
    Aligning Two Teams After a Technical Disagreement

    Tell a true story about a technical dispute with another team, covering the decision process, nontechnical pressures, your role, and how you confirmed lasting alignment.

    Behavioralbehavioralconflict-resolutioncross-teamcommunication
  • Data Structure DesignEasyAuto-graded
    Running Tally per Label from a Replayed Call Log

    Replay a log of increment calls and report, for each call, how many times its key has appeared so far, testing hash map counting and a simple operation-dispatch design.

    Data Structure Designhash-mapsimulationdesigncounting
  • Data Structure DesignMediumModel answer
    Design an Audio Player Core with Queue Management and Shuffle Logic

    Architect the object-oriented structure and state machine for a media player featuring play/pause controls, queue prioritization, looping modes, and deterministic shuffle handling.

    Data Structure DesignObject-Oriented DesignState MachineData Structure Design