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 3765 results

  • Statistics & ExperimentsMediumModel answer
    Kids' Book Storage Unit: Users, MVP Scope and Success Metrics

    Design a physical book storage product for young children: choose a target user, rank their pain points, set design principles, cut an MVP, and define success metrics with guardrails.

    Statistics & Experimentsproduct-senseproduct-designmetricsmvp
  • System DesignMediumModel answer
    Diagnosing a Latency or Throughput Regression in a Microservice Fleet

    Describe a disciplined, evidence-driven method for finding and fixing a slowdown in a multi-service system, from first signals through safe validation to long-term prevention.

    System Designobservabilitydebugginglatencydistributed-tracing
  • Machine LearningMediumModel answer
    Assess and Launch an Edge AI Predictive Maintenance Model

    Define evaluation criteria, data sampling plans, and rollout gates for introducing a machine learning feature on edge devices.

    Machine Learningproduct-metricsevaluationedge-computingmodel-launch
  • System DesignHardModel answer
    Data Model for Course Reviews, Aggregates, and Moderation

    Design an online course review system covering completion checks, transactional rating aggregates, edit histories, and keyset-paginated read paths.

    System Designdatabase-designschema-designsystem-designsql
  • System DesignMediumModel answer
    Aggregating Three Upstream Services with Graceful Degradation

    Design a startup endpoint that resolves a user's internal ID, fans out to two dependent services, and still returns useful data when optional services fail or run slowly.

    System Designapi-designresiliencetimeoutspartial-failure
  • System DesignMediumModel answer
    Design an Aggregated Flight Search Engine

    Design a large-scale flight search engine that aggregates dynamic fares from multiple third-party sources under low latency constraints.

    System Designsystem-designcachingdistributed-systemsapi-design
  • System DesignMediumModel answer
    Build a Restaurant and Dish Rating Service End to End

    Design a backend for browsing eateries, posting star ratings and written reviews, and keeping aggregates, search, and moderation trustworthy at scale.

    System Designsystem-designreviewssearchmoderation
  • BehavioralMediumModel answer
    Four Core Stories for an Engineering Manager Conversation

    Build a small bank of structured stories covering a major project, mentoring, a disagreement, and a lasting improvement, and learn to deliver each in about two to three minutes.

    Behavioralbehavioralstar-methodleadershipmentoring
  • Machine LearningMediumModel answer
    Real-Time Harmful Content Screening for an Image-Sharing Platform

    Design an ML pipeline that screens uploaded images, captions and links for spam, phishing and unsafe imagery within a tight latency budget while keeping false positives low.

    Machine Learningml-system-designcontent-moderationclassificationclass-imbalance
  • Machine LearningHardModel answer
    Taming Gradient Decay in a 40-Layer Net and a 100-Step RNN

    Explain why gradients shrink or blow up with depth and time, and design a combined fix using activations, initialization, skip connections, normalization, and gated or attention-based sequence models.

    Machine Learningvanishing-gradientsinitializationresidual-connectionsnormalization
  • SQL & DataMediumModel answer
    Campaign Profit by Segment and Gala Seat Filling in SQL

    Build per-campaign, per-segment fundraising metrics for August 2025 with fan-out-safe joins and cost allocation, pick the more profitable campaign, then choose extra gala invitees.

    SQL & Datasqlaggregationjoinswindow-functions
  • System DesignMediumModel answer
    CPU Microarchitecture and Memory System: Ten-Topic Review

    Explain ten core architecture topics: OoO pipelines, gshare, register renaming, VLIW, coherence, load/store logic, COW, cache math, VIPT aliasing, and async FIFOs.

    System Designcomputer-architectureout-of-ordercachesbranch-prediction
  • Trees & GraphsHardModel answer
    Region-Splitting Tree and Multi-Word Grid Search

    Compress a square character grid into a four-way region tree, then locate a batch of words in the grid by walking neighbors in eight directions without reusing cells.

    Trees & Graphsquadtreetriebacktrackingdivide-and-conquer
  • BehavioralMediumModel answer
    ML Engineer Screen: Self-Pitch, Motivation, and API Contract Talk

    Prepare a spoken answer covering an ML-focused intro, motivation for a mission-driven startup, an API contract mix-up story, None vs empty return semantics, and questions for the interviewer.

    Behavioralbehavioralml-engineercommunicationapi-design
  • Greedy & IntervalsMediumModel answer
    Staffing Timeline from Overlapping Work Shifts

    Turn a list of overlapping employee shifts into contiguous time segments, each listing who is on duty, with empty segments marking gaps in coverage.

    Greedy & Intervalssweep-lineintervalshash-mapsorting
  • BehavioralEasyModel answer
    Reviewing a Junior's React Component: Feedback and Refactors

    Walk through how you would review a junior engineer's messy React/TypeScript pull request: rank the issues, give feedback that teaches, propose refactors, request tests and plan follow-up.

    Behavioralcode-reviewmentoringreacttypescript
  • StringsMediumModel answer
    String Internals, Move Costs, and Threads vs Async Tasks

    Describe how a string is laid out in memory, what copying and moving really cost, what a Rust move does, and how OS threads differ from async coroutines.

    Stringsstringsmemory-managementmove-semanticsrust
  • BehavioralMediumModel answer
    Behavioral Interview: Company Motivation, Best Project, and Continuous Learning

    Structure compelling answers for standard HR screening questions covering company motivation, your standout engineering project, recent work, and recent technical learning.

    Behavioralbehavioralcareercommunicationinterview-prep
  • Machine LearningMediumModel answer
    Greedy vs. Beam Search over a Next-Token Probability Table

    Decode a sequence from a bigram-style probability table using greedy search and beam search, and justify choices on ties, dead-ends, cycles, and length normalization.

    Machine Learningbeam-searchgreedy-decodingsequence-modelslog-probability
  • System DesignMediumModel answer
    Design a 100x Scalable Distributed Task Scheduler

    Architect a flexible background job system capable of scaling 100-fold using partitioned time indices, hierarchical timing wheels, and resilient worker leasing.

    System Designsystem-designdistributed-systemsjob-schedulerqueues
  • BehavioralHardModel answer
    Engineering Leader Loop: People, Execution, and Culture Answers

    Prepare a structured answer on leading an ML engineering org: conflict, underperformance, calibration, strategy under ambiguity, a project retrospective, and a values-driven company choice.

    Behavioralleadershippeople-managementexecutionml-infrastructure
  • Data Structure DesignMediumModel answer
    Upgrade a Streaming Log Filter to Multi-Code and JSON Output

    Refactor a small Python log-counting script so it filters on several status codes, optionally writes JSON, streams multi-gigabyte files in constant memory, and stays unit-testable.

    Data Structure Designpythonrefactoringstreamingcli
  • BehavioralMediumModel answer
    Career Story and First-Quarter Impact Plan for a New Role

    Present your career as a concise narrative with measurable results, then lay out a concrete 30/60/90-day plan to make your manager and new team more effective.

    Behavioralbehavioralleadershipcareer-narrativeonboarding
  • SQL & DataMediumModel answer
    Best Click Rate Day and Peak ISO Week in an Ad Log Using Pivots

    Use Excel helper columns and PivotTables to find the day with the highest clicks per watch-minute and the ISO week with the most watch time, with deterministic tie-breaks.

    SQL & Dataexcelpivot-tableiso-weekratio-metrics
  • System DesignHardModel answer
    Build a Topic-Based Notification Fan-Out Engine

    Design an object-oriented service that pushes news to topic subscribers with at-most-once delivery, effective unsubscribes and per-user per-topic ordering, scaling to millions of users.

    System Designpub-subnotificationsfan-outconcurrency
  • Statistics & ExperimentsHardModel answer
    Planning a Trustworthy Experiment for a New Signup Flow

    Plan an end-to-end experiment for a redesigned signup flow when invites cause spillover and signups vary by weekday, covering metrics, power, monitoring, ramp and ship decisions.

    Statistics & Experimentsab-testingexperimental-designinterferencepower-analysis
  • Machine LearningHardModel answer
    Designing LLM Search and Retrieval for High-Token Inputs and Corpus

    Architect an end-to-end RAG system capable of ingesting mega-documents and handling high-token, unstructured user inputs with low latency, strict permissions, and high citation fidelity.

    Machine Learningragllmsearchvector-database
  • BehavioralMediumModel answer
    Behavioral Stories for Senior-Plus Engineering Leadership Rounds

    Prepare structured answers to four senior-level behavioral prompts: setting direction, disagreeing with leadership, owning a failure, and growing other engineers.

    Behavioralbehavioralleadershipstaff-engineerstar-method
  • System DesignMediumModel answer
    Building a Reliable Multi-Channel Alert Pipeline With Safe Retries

    Design an alert platform that never silently drops a message, tolerates retries and reordering, and keeps users from seeing repeats across push, email, SMS and in-app channels.

    System Designsystem-designidempotencyretriesmessage-queues
  • Data Structure DesignMediumModel answer
    Build a Heap Allocator with Fit Policies and Safe Handles

    Design a simulated memory manager over a fixed address range that supports two placement policies, splitting, merging of neighbors, and rejection of stale or forged release requests.

    Data Structure Designmemory-allocatorlinked-listhash-mapcoalescing