KatInterview

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

Interview Practice Problems

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

6074
Problems
2252
Auto-graded
15
Topics
274
Added today

Showing 1801–1830 of 3822 results

  • System DesignMediumModel answer
    Time-Indexed Service for Multi-Topic Vehicle Recording Files

    Design and build a service that ingests recorded vehicle sessions from MCAP files, stores them with a time index, and exposes APIs to list sessions and fetch messages by timestamp.

    System Designmcapprotobufsqlitetime-index
  • BehavioralMediumModel answer
    Motivation and Values Fit for a Product-Focused Data Role

    Answer a "why this company" behavioral question for a data role by linking personal motivation and company values to concrete, evidence-backed stories.

    Behavioralbehavioralmotivationvalues-fitstar-method
  • Machine LearningHardModel answer
    Designing a Live Card-Payment Fraud Scoring Pipeline

    Design an ML system that scores card payments inside the authorization path, handling extreme class imbalance, delayed labels, concept drift, and uneven costs of errors.

    Machine Learningfraud-detectionimbalanced-datafeature-storeconcept-drift
  • System DesignHardModel answer
    Design a GPU Test Pipeline in Jenkins Across Driver Matrices

    Design a Jenkins-based CI system that builds a graphics stack and runs GPU tests across hardware, driver and OS combinations, with flake handling, gating and safe driver rollouts.

    System Designjenkinsci-cdgputest-sharding
  • System DesignMediumModel answer
    Building a Crash-Safe Shared Audit Log Writer in Java

    Design a thread-safe file logger whose records never interleave, and explain how fsync, batching and OS caching trade throughput against durability.

    System Designconcurrencyfile-iodurabilityfsync
  • System DesignMediumModel answer
    Designing an Analytics Data Pipeline Across Cloud, Hybrid and Multi-Cloud

    Design a pipeline from operational systems to analytics, then adapt it for a hybrid on-prem and cloud setup and map it onto AWS and Azure, defending each tool choice.

    System Designdata-pipelinehybrid-cloudawsazure
  • Data Structure DesignHardModel answer
    Retroactive Pay Ledger with Rate Changes and Shift Logging

    Design a class that records rate changes and shifts in any order, and reports total earnings under the current rate schedule using prefix sums and binary search.

    Data Structure Designdesignprefix-sumbinary-searchintervals
  • System DesignHardModel answer
    Critiquing a Flag Service Proposal for an Inference API

    Review a proposed runtime toggle service that polls one database, then rank its weaknesses and explain how to deliver the feedback to the author.

    System Designdesign-reviewfeature-flagsreliabilityfailure-modes
  • System DesignHardModel answer
    Cycle-Safe Editing and Loop Limits for a Workflow Engine

    Design a service that blocks cyclic dependency edits, pins each run to a stable graph version, and caps retries and dynamic expansion so execution always terminates.

    System Designsystem-designdagcycle-detectionworkflow-engine
  • Data Structure DesignMediumModel answer
    Org Chart Inference with Manager and Peer Links

    Design a structure that records manager and same-manager links between employee IDs and answers whether one employee sits above another, including facts inferred from earlier updates.

    Data Structure Designunion-finddesigngraphstransitive-closure
  • System DesignMediumModel answer
    Trending Pages Leaderboard: Top K URLs in a Rolling Window

    Design a pipeline that ranks the K most-viewed URLs over a rolling time window, covering partitioned counting, correct merging, viral-URL skew, late events, and exact versus approximate counts.

    System Designsystem-designstreamingtop-ksliding-window
  • System DesignMediumModel answer
    Messaging Backend with a Tiered, Partitioned Cache Layer

    Design a durable, ordered, deduplicated messaging backend for DMs and small groups, and explain how a local and distributed cache is partitioned and kept correct under failures.

    System Designsystem-designcachingmessagingconsistent-hashing
  • BehavioralMediumModel answer
    Five Behavioral Stories: Friction, Fuzziness, Surprise, Growth, Misses

    Prepare structured stories about a difficult colleague, an unclear problem, a surprise, new learning, and a missed goal, with measurable results and reflections ready for follow-ups.

    BehavioralbehavioralSTARcollaborationambiguity
  • BehavioralMediumModel answer
    Turning Critical Feedback on a Project into Lasting Change

    Describe a time a colleague seriously criticized your technical work, how you tested whether they were right, and which concrete habits changed afterward.

    Behavioralbehavioralfeedbackself-awarenessstar-method
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a 10% Delivery Time Rise in a Quick-Commerce City

    Average delivery time for a quick-commerce grocery service in one large city has risen 10% above target across all order types in the past week. Find the root cause.

    Statistics & Experimentsmetric-diagnosisroot-cause-analysisproduct-analyticsfunnel-decomposition
  • System DesignMediumModel answer
    Build a Post Comment Thread with Reliable Alerts

    Design the comment feature for an existing social app: APIs, schema, pagination, durable notification fan-out, and how to scale reads and writes when one post goes viral.

    System Designsystem-designcommentsnotificationspagination
  • System DesignMediumModel answer
    Design a Freight Yard Platform for Dock Slots, Routes and Totes

    Design a multi-warehouse platform that books dock doors, plans and replans truck routes, and tracks containers from noisy scan events while keeping inventory consistent.

    System Designsystem-designevent-drivenschedulingvehicle-routing
  • Arrays & HashingMediumModel answer
    Merging k Key-Value Maps: Conflict Rules and Efficient Design

    Design a way to merge two key-value maps, extend it to k maps, and decide which conflict rules must be pinned down before writing any code.

    Arrays & Hashinghash-mapmergingapi-designclarifying-questions
  • Machine LearningMediumModel answer
    Building a Screen-Operating AI Agent from Perception to Safety

    Design a multimodal agent that reads a desktop screen, plans multi-step tasks, drives the mouse and keyboard within a latency budget, and stays safe and measurable.

    Machine Learningagentsmultimodalvision-language-modelssystem-design
  • BehavioralMediumModel answer
    Leading a Cross-Functional Data Project in a Distributed Team

    Walk through the hardest data science project you owned recently, then explain how you resolved conflicting priorities across product, engineering, and design in a remote, multi-timezone setup.

    Behavioralbehavioralleadershipstakeholder-managementremote-work
  • System DesignHardModel answer
    Build a Multi-Model Inference Workflow Platform for External Clients

    Design a platform that chains independently deployed ML models into reliable workflows, covering orchestration, schemas, caching, versioning, failure handling, observability, and tenant isolation.

    System Designml-infrastructureorchestrationmodel-servingmulti-tenancy
  • Machine LearningMediumModel answer
    From CTR Prediction to Sequential Feed Ranking with RL

    Design a sequential feed-ranking system for long-term retention: choose bandit vs MDP, evaluate offline with doubly robust estimators and overlap checks, and design rewards and A/B guardrails.

    Machine Learningreinforcement-learningoff-policy-evaluationdoubly-robustrecommendation-systems
  • BehavioralMediumModel answer
    Turning Around a Struggling Project: A Behavioral Answer Guide

    Explain how you spotted a project slipping, found the real cause, made trade-offs, kept stakeholders informed, and what you changed afterward.

    Behavioralbehavioralleadershipproject-managementroot-cause-analysis
  • System DesignHardModel answer
    Geo-Targeted Emergency Alerts for Travelers at Scale

    Design a platform that detects natural-disaster zones from external feeds and quickly alerts travelers who are in, or about to arrive in, the affected area without duplicate messages.

    System Designgeospatial-indexingnotificationskafkaidempotency
  • Heaps, Sorting & SearchMediumModel answer
    Streaming Word Frequencies from an Oversized Text File

    Build a memory-safe word counter for a huge text file, define tokenization rules, return the top-k words deterministically, and discuss what to do when the vocabulary strains memory.

    Heaps, Sorting & Searchword-countstreaminghash-maptop-k
  • System DesignHardModel answer
    Low-Latency Personalized Feed Ranking Service Design

    Design an end-to-end personalized feed service for millions of users: data pipelines, feature consistency, retrieval and ranking, cold start, latency budgets, experiments, and failure handling.

    System Designml-system-designrecommendationfeature-storecandidate-generation
  • BehavioralMediumModel answer
    Winning Over Skeptical Partners With Evidence: A Data Story

    Tell a structured story about changing a cross-functional decision with data after partners disagreed, covering analysis, messaging, pushback, trade-offs, results and lessons.

    Behavioralbehavioralstakeholder-managementinfluencedata-science
  • System DesignMediumModel answer
    How TCP Opens a Connection: SYN, SYN-ACK, ACK and Lost Packets

    Describe how TCP establishes a connection, including state changes, sequence numbers, a lost final ACK, and the limits of what a completed handshake proves.

    System Designtcpnetworkinghandshakesockets
  • BehavioralMediumModel answer
    Ramping Up Fast on an Unfamiliar Technical Area

    Describe a time you had to become effective in an unfamiliar area under deadline pressure, showing a structured, repeatable learning method and measurable impact on the outcome.

    Behavioralbehavioralstar-methodlearning-agilityprioritization
  • BehavioralMediumModel answer
    Deep Dive on Your Proudest Technical Project

    Present one significant project from your background, covering your role, key decisions, conflict, risks, measurable results, a setback, and what you would change in hindsight.

    Behavioralbehavioralproject-deep-diveownershiptrade-offs