KatInterview

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

Interview Practice Problems

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

6051
Problems
2239
Auto-graded
15
Topics
270
Added today

Showing 1411–1440 of 3812 results

  • System DesignMediumModel answer
    Build a Crash-Resilient Delayed and Recurring Task Runner

    Design a distributed service that runs one-off and cron-style tasks at scale with no lost work, safe retries, duplicate-submission protection, and cancellation.

    System Designsystem-designdistributed-systemsschedulingfault-tolerance
  • BehavioralHardModel answer
    Motivation and Engineering Mindset for an AI Safety Role

    Answer a three-part screening question on why you want to work on AI safety, a safeguards project you built, and how you balance shipping speed with verification.

    Behavioralbehavioralai-safetymotivationsafeguards
  • Statistics & ExperimentsMediumModel answer
    Separating Automated Traffic from a Sudden Active-User Surge

    Estimate how much of a short-term rise in daily active users comes from scripts rather than people, model overdispersed login counts, quantify uncertainty, and handle heavy-tailed comparisons.

    Statistics & Experimentsnegative-binomialmixture-modelsbootstrapheavy-tails
  • Data Structure DesignMediumModel answer
    Design and Implement Connect Four with Game Logic and State Management

    Build a complete two-player Connect Four game on a 6x7 grid, including drop mechanics, win/draw state evaluation, edge-case prevention, and modular state architecture.

    Data Structure DesignArraysGame DesignState ManagementData Structures
  • System DesignMediumModel answer
    Unified Permission Service for Roles and Per-Item Sharing

    Design a multi-tenant authorization service that combines scoped role assignments with per-resource grants, covering the data model, evaluation rules, APIs, caching, auditing, and tricky edge cases.

    System Designauthorizationrbacaclcaching
  • BehavioralEasyModel answer
    Ownership, Upward Conflict, and a Slipping Executive Deadline

    Three behavioral prompts on stepping outside your role, resolving an impasse with your manager, and handling a senior leader's task that will not ship on time.

    Behavioralbehavioralownershipmanaging-upescalation
  • Machine LearningMediumModel answer
    Matching Error Costs to Metrics for Three Image Moderation Models

    Pick precision, recall, or F1 for three moderation models with different error costs, then reason about recall-oriented tuning and how thresholds move the operating point on a PR curve.

    Machine Learningprecision-recallf1-scoreclass-imbalancethreshold-tuning
  • System DesignHardModel answer
    Build a Shared Throttling Layer for a Multi-Server Web API

    Design a throttling service that caps per-key request volume across a fleet of servers, with low added latency, correct behavior under concurrency, and a clear plan for backend failures.

    System Designrate-limitingredisdistributed-systemsconcurrency
  • Data Structure DesignMediumModel answer
    Tuning a Multithreaded C++ Pipeline for Speed and Tail Latency

    Explain how you would profile and speed up an existing multithreaded C++ service whose thread pool and queue are given, covering memory, cache, contention, and verification.

    Data Structure Designcppperformanceconcurrencyprofiling
  • Statistics & ExperimentsMediumModel answer
    Evaluating Promo Discount Impact in Shared-Supply Markets

    Learn how to design experiments for discount promotions in spatial marketplaces, mitigating interference and evaluating net ecosystem impact with guardrail metrics.

    Statistics & ExperimentsA/B TestingExperimentationMarketplaceNetwork Effects
  • BehavioralMediumModel answer
    Navigating Ambiguity and Resolving Engineering Disagreements

    Learn how to structure response strategies for interview prompts on leading projects with undefined requirements and navigating high-stakes technical design disagreements.

    Behavioralbehavioralleadershiptechnical-designambiguity
  • BehavioralMediumModel answer
    Turning an Unfamiliar Technical Area into Production-Ready Skill

    Describe a repeatable method for picking up an unfamiliar technical topic and the evidence you use to decide you know it well enough to rely on it in real engineering work.

    Behavioralbehaviorallearningself-directionengineering-judgment
  • BehavioralMediumModel answer
    Belonging, Hosting, and Purpose-Driven Behavioral Answers

    Prepare structured behavioral answers about a company's mission, what belonging means to you, hosting a guest experience, and one action you would take to improve the world.

    Behavioralbehavioralvalues-interviewmission-alignmentstorytelling
  • Machine LearningHardModel answer
    Design a Baseline Credit Offer Engine

    Design an ML recommendation engine for financial credit offers that balances default risk prediction, user acceptance propensity, risk calibration, fair lending compliance, and feedback loop mitigation.

    Machine Learningmachine-learningsystem-designrecommendation-systemcredit-risk
  • BehavioralMediumModel answer
    Bridging ML and Business: Talking to Non-Experts and Explaining Your Why

    A two-part behavioral prompt: explain a complex ML idea to a non-technical colleague using a real example, and say why you want to apply ML in a trading setting.

    Behavioralcommunicationstakeholder-managementstar-methodml-in-finance
  • BehavioralHardModel answer
    Behavioral Interview Strategy: Leadership, Technical Debates, and Outages

    Learn how to formulate strong STAR-R responses to behavioral questions on end-to-end accountability, resolving technical friction, and leading blameless post-mortems.

    BehavioralBehavioralLeadershipIncident ResponseConflict Resolution
  • System DesignMediumModel answer
    Build a Chat Platform with Channels, DMs, and Presence

    Design a real-time workspace chat backend with channels, DMs, paginated history, unread tracking, and presence, supporting 5M concurrent connections and channels of up to 50,000+ members.

    System Designwebsocketsfan-outpub-submessage-ordering
  • System DesignMediumModel answer
    Low-Level Generics in C vs RAII and Smart Pointers in C++

    Compare low-level C abstractions (type erasure, macros, linkages) with C++ resource management model (RAII, smart pointer memory layouts, and weak_ptr lifecycle dynamics).

    System Designccppmemory-managementpointers
  • Machine LearningMediumModel answer
    Design an Iterative Sequence Optimization Platform for Synthetic Biology

    Design an automated active learning system that iteratively proposes, screens, and refines DNA sequences to maximize gene expression within physical synthesis constraints.

    Machine Learningactive learningbayesian optimizationsequence encodingml system design
  • BehavioralMediumModel answer
    Selling Enterprise GPU Acceleration to a Fortune 50 Retail CEO

    Structure an executive pitch, TCO model, phased pilot plan, risk matrix, and objection strategy for enterprise GPU deployment across retail operations.

    Behavioralexecutive communicationsales engineeringTCO modelingretail AI
  • Statistics & ExperimentsMediumModel answer
    Is a Second Season Worth Its Production Budget?

    Estimate the incremental revenue from greenlighting a second season using retention odds with and without the show, find the break-even audience, and critique the key assumptions.

    Statistics & Experimentsexpected-valueincremental-analysisbreak-evenretention
  • BehavioralEasyModel answer
    Present a Data Science Project From Problem to Impact

    Give a structured, concrete account of one data science project you led, covering framing, metrics, data, method, validation, risks, results, and next steps.

    Behavioralbehavioraldata-scienceproject-walkthroughmetrics
  • Machine LearningMediumModel answer
    Model Fit, CNNs, RNNs, Transformers and Ensembles: ML Fundamentals

    A broad machine-learning fundamentals question covering model fit diagnostics, augmentation, CNNs, RNNs, transformer encoders, dropout and ensemble methods.

    Machine Learningoverfittingbias-variancecnntransformers
  • BehavioralMediumModel answer
    Nailing the Recruiter Intro Call for a Software Engineer Role

    Plan concise, credible answers to seven common recruiter-screen questions, from your background and stack to motivation, stress, remote work and interest in an industry domain.

    Behavioralrecruiter-screenbehavioralcommunicationstar-method
  • System DesignMediumModel answer
    Building a Concurrent Rendering Pipeline for Placeholder Substitution

    Design a horizontally scalable backend that renders millions of placeholder-substitution jobs per hour using queues and worker pools, with fault tolerance, backpressure, and sensible job routing.

    System Designworker-poolproducer-consumermessage-queuebackpressure
  • Greedy & IntervalsMediumModel answer
    Matrix 90-Degree Clockwise Rotation and Maximum Interval Coverage

    Rotate a square grid 90 degrees clockwise and identify regions of maximal overlapping intervals using a sweep-line algorithm.

    Greedy & Intervalsarraysgreedy-intervalsheaps-sorting
  • System DesignHardModel answer
    Building an Async Prompt-to-Clip Rendering Service on a GPU Fleet

    Design a durable, fair, and safe asynchronous service that turns text prompts into 10-second clips using slow, expensive GPU inference at roughly ten thousand requests per hour.

    System Designml-system-designgpu-schedulingjob-queuefault-tolerance
  • BehavioralMediumModel answer
    Data Science Leadership: Data Foundations, Conflicts, and Velocity

    Demonstrate data science leadership across technical foundation building, cross-functional conflict resolution, and managing speed versus precision trade-offs.

    BehavioralLeadershipData GovernanceStakeholder ManagementPrioritization
  • Statistics & ExperimentsHardModel answer
    Launching Peer Payments in a Chat App: Metrics, Tests, Risks

    Plan the first 90 days of a person-to-person payments feature in a chat product: pick goals and metrics, price it, run a network-safe experiment, fall back to DiD, and flag risks.

    Statistics & Experimentsexperiment-designnetwork-interferencedifference-in-differencesproduct-analytics
  • System DesignHardModel answer
    Batching Service for Autocomplete Inference with Fixed Batch Time

    Design a low-latency serving stack that groups autocomplete requests into fixed-duration accelerator batches, sizes the fleet, handles failures, and critiques the fixed-time premise.

    System Designsystem-designllm-servingbatchingcapacity-planning