KatInterview

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

Interview Practice Problems

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

5978
Problems
2214
Auto-graded
15
Topics
272
Added today

Showing 5761–5790 of 5978 results

  • Machine LearningHardModel answer
    Multimodal ML Systems: Deployment, Retrieval, and Core Concepts

    Design and optimize a constrained multimodal serving system, build fast video retrieval, and explain dropout, normalization, overfitting, and RL-based LLM alignment.

    Machine Learningmultimodalretrievalnormalizationdropout
  • Arrays & HashingMediumModel answer
    Build an Annotation Assignment Schedule

    Construct a valid work schedule assigning human reviewers to tasks under minimum-coverage and no-repeat constraints, then extend it to stay balanced in every prefix.

    Arrays & Hashingconstructiveschedulingcombinatorics
  • BehavioralHardModel answer
    Rebuild Trust After Your Mentor Calls Your Work Superficial

    Demonstrate how you received, processed, and acted on deeply personal critical feedback from a senior colleague without becoming defensive.

    Behavioralbehavioralfeedbackgrowth mindsetself-awareness
  • Statistics & ExperimentsHardModel answer
    Sample Size for A/B Tests and Bayesian Inference

    Calculate per-group sample size for a two-sample z-test given power requirements, and compute a Bayesian posterior probability.

    Statistics & Experimentshypothesis-testingbayesian-inferencepower-analysis
  • Math & Bit ManipulationMediumAuto-graded
    Smallest Integer Divisible by All Segment Lengths

    Tests the ability to apply LCM iteratively and use GCD to reduce it, while reasoning about arithmetic progressions and large-number arithmetic.

    Math & Bit Manipulationmathnumber-theorygcd-lcm
  • System DesignMediumModel answer
    Design a Payment Processing Service with an External PSP

    Design a backend payment service that collects money via a third-party payment provider, guarantees exactly-once charging, and maintains an auditable money ledger.

    System Designpaymentsidempotencydistributed-systems
  • Statistics & ExperimentsHardModel answer
    Estimating Feature Impact Without Randomized Assignment

    Measure the causal effect of a self-selected feature rollout using quasi-experimental methods when A/B testing isn't possible.

    Statistics & Experimentscausal-inferenceexperimentationobservational-studies
  • Arrays & HashingMediumAuto-graded
    Coffee Quality Comparison Probability

    Calculate the probability that one person's coffee selections outperform another's under different definitions of "better"

    Arrays & Hashingprobabilitycombinatoricssymmetry
  • System DesignHardModel answer
    Building a Distributed Rate Limiting System at Scale

    Design a multi-region rate limiting system handling millions of requests per second with multiple limit dimensions and low latency.

    System Designdistributed-systemsrate-limitingscalabilityconsistency
  • System DesignHardModel answer
    Designing a Multi-Venue Cryptocurrency Order Routing System

    Build an order-placement architecture that routes crypto trades to external exchanges, handling balance checks, partial fills, and venue failures.

    System Designdistributed-systemsfintechlatencyconsistency
  • Data Structure DesignMediumAuto-graded
    Track Click-to-Conversion Matching with Time Windows

    Tests event stream processing with time-based lookback windows, requiring efficient per-user state management and timestamp-based expiration logic.

    Data Structure Designqueueshash-mapstime-windows
  • SQL & DataHardAuto-graded
    Compute Per-Group Running Revenue Share with Reset

    Tests window-style running totals and per-group aggregation by computing a cumulative percentage-of-group-total that resets for each new group, given pre-sorted row data.

    SQL & Datawindow functionsrunning totalsaggregationdata processing
  • Data Structure DesignMediumModel answer
    Terminal Naval Combat: Fleet Setup and Attack System

    Implement a console-based naval battle game where two players configure their fleets through text input, then exchange fire until one side is eliminated.

    Data Structure Designobject-oriented-designinput-validationstate-management
  • BehavioralMediumModel answer
    Navigating Technical Disagreements with Colleagues

    Describe a situation where you disagreed with a teammate on a technical decision and explain your approach to resolution while maintaining professional relationships.

    Behavioralconflict-resolutioncommunicationcollaborationleadership
  • Trees & GraphsMediumAuto-graded
    Detect a Cycle in a Directed Course Prerequisite Graph

    Tests whether you can model dependency constraints as a directed graph and use topological sort to detect cycles that make all tasks impossible to complete.

    Trees & Graphstopological-sortgraphcycle-detection
  • BehavioralMediumModel answer
    Cross-Functional Barriers, Growth Feedback, and Team Inclusion

    Discuss a project where you removed blockers, describe feedback that shifted your work style, and explain how you made your team more inclusive.

    Behavioralleadershipcollaborationownership
  • BehavioralMediumModel answer
    Extracting Lessons from Your Internship Experience

    Demonstrate self-awareness and professional growth by articulating key lessons learned during a previous internship across communication, technical planning, and user empathy.

    Behavioralreflectioncommunicationinternshipstakeholder-management
  • Statistics & ExperimentsMediumModel answer
    Forecasting Subscription Revenue for a B2B Collaboration Platform

    Build a three-year revenue model for a freemium SaaS product, calculate unit economics, and evaluate the ROI of increased marketing investment.

    Statistics & Experimentsrevenue-modelingunit-economicsgrowth-projections
  • Trees & GraphsMediumModel answer
    Finding Profitable Exchange Cycles with Transaction Fees

    Given exchange rates between currencies and a per-cycle transaction cost, determine if any sequence of trades can yield a profit.

    Trees & Graphsgraph-algorithmsbellman-fordnegative-cyclelogarithms
  • Machine LearningHardModel answer
    Design a Multi-Objective Ranking Model for Sponsored Products

    Build a ranking system for e-commerce ads that optimizes user engagement, advertiser outcomes, and platform revenue while handling cold-start and fairness.

    Machine Learningrankingmulti-task-learningadse-commerce
  • StringsHardAuto-graded
    Greedy Token Substitution with Longest Prefix Matching

    Tests prefix-tree construction, greedy string scanning, and longest-match selection for token-based text transformation.

    Stringstriegreedystring-processing
  • System DesignMediumModel answer
    Database Indexing and Scaling for High-Volume Profile Lookups

    Design indexing, caching, and scaling strategies for a user profile database handling 10K QPS with regional skew.

    System Designdatabasesindexingcachingreplication
  • Data Structure DesignMediumAuto-graded
    Transaction Fraud Pipeline with Behavioral Rules

    Build a stateful stream processor that validates payment records, detects velocity and spending anomalies, and produces fixed-width audit logs.

    Data Structure Designsimulationparsingsliding-window
  • System DesignMediumModel answer
    Design a Retrieval-Augmented Chatbot with Access Control

    Build a chatbot that answers employee questions from internal docs while enforcing document-level permissions and maintaining response quality.

    System Designretrieval-augmented-generationaccess-controlembeddingsllm
  • System DesignMediumModel answer
    Build a Royalty Settlement System for Music Streaming

    Design infrastructure to compute artist earnings from streaming activity, close monthly accounting windows, and execute payments with idempotency guarantees.

    System Designdistributed-systemsfinancial-transactionsidempotencyevent-processing
  • Data Structure DesignHardAuto-graded
    Banking Ledger with Time-Based Transfers and Account Consolidation

    Build an in-memory banking system that processes timed fund transfers deterministically and consolidates accounts with automatic transaction rerouting.

    Data Structure Designunion-findsimulationsorting
  • System DesignMediumModel answer
    Real-Time Event Processing Pipeline for High-Volume Telemetry

    Build a scalable pipeline ingesting ~1B events/day from distributed clients, delivering both low-latency metrics and accurate daily reports.

    System Designstreamingdata-pipelinedistributed-systemsevent-processing
  • Trees & GraphsHardAuto-graded
    Combine Tree Structures with Ordered Name Matching

    Tests recursive tree traversal with order-sensitive child pairing by name occurrence and careful handling of unmatched nodes.

    Trees & Graphsrecursiontree-traversalhash-table
  • Greedy & IntervalsMediumAuto-graded
    Find Available Time Slots in a Repeating Weekly Schedule

    Tests interval merging with time zones, weekly recurrence, and range filtering to find deployable windows on a cyclic timeline.

    Greedy & Intervalsintervalsarraystime-zones
  • Statistics & ExperimentsMediumModel answer
    Size a Two-Stage Funnel A/B Test on Checkout Flow

    Calculate the required sample size for an A/B test when the primary metric is a rare downstream conversion event in a multi-step funnel.

    Statistics & Experimentsstatisticsa/b testingsample sizepower analysis