KatInterview

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

Interview Practice Problems

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

6117
Problems
2267
Auto-graded
15
Topics
277
Added today

Showing 2491–2520 of 6117 results

  • BehavioralMediumModel answer
    Two Customer-Centric Stories: Extra Mile and Holding Standards

    Prepare two real stories: one where you went well beyond expectations to fix a customer's problem, and one where you held a quality standard despite pressure to cut corners.

    Behavioralbehavioralcustomer-focusleadershipquality
  • Machine LearningMediumModel answer
    Loss, Batch Size, Regularization and Tree Depth: ML Core Review

    Four connected ML fundamentals: why log loss suits sigmoid outputs, how batch size shapes training, how L1 and L2 differ, and how leaf size controls bias and variance in trees.

    Machine Learningcross-entropysgdregularizationdecision-trees
  • System DesignHardModel answer
    Optimizing Latency in C++: Inlining, Memory Allocation, and Variant Polymorphism

    Analyze the runtime performance overheads of virtual dispatch and heap allocation in C++, and propose high-performance alternatives using static polymorphism and zero-allocation techniques.

    System DesignC++Performance OptimizationStatic PolymorphismMemory Allocation
  • Math & Bit ManipulationEasyAuto-graded
    Simulate Account Transactions with Integer Cashbacks

    Process a series of deposits, conditional withdrawals, and integer floor cashbacks to compute a final account balance.

    Math & Bit Manipulationsimulationmatharrays
  • Trees & GraphsMediumAuto-graded
    Referral Credit Ledger with Multilevel Propagation

    Simulate account additions, referral bonus propagation (direct or indirect), and threshold queries ordered deterministically.

    Trees & Graphstrees-graphsarraysdesign-ds
  • BehavioralEasyModel answer
    Navigating Project Delivery, Team Scenarios, and Workplace Dynamics

    A guide to framing technical achievements, steering team dynamics under pressure, and communicating feedback effectively in engineering interviews.

    Behavioralbehavioralleadershipproject-walkthroughteamwork
  • System DesignMediumModel answer
    Design a Fleet Health Monitoring System for Edge Devices

    Architect a scalable real-time monitoring system to track the online/offline status of 10 million connected edge devices with low latency and high availability.

    System Designsystem-designdistributed-systemsstreamingcaching
  • Trees & GraphsMediumAuto-graded
    BFS Unweighted Shortest Path with Ancestor Tracking

    Perform breadth-first traversal on an unweighted graph to compute shortest distances and record parent pointers for path reconstruction.

    Trees & Graphsbfsgraph-traversalshortest-pathqueue
  • Statistics & ExperimentsHardModel answer
    Calculating Experiment Sample Sizes, Multiplicity Corrections, and Duration

    Derive sample sizes, adjust for variance misspecification and multiple testing, and design sequential stopping rules for online A/B tests.

    Statistics & ExperimentsA/B TestingSample SizeMultiple TestingSequential Analysis
  • System DesignMediumModel answer
    Go-to-Market Technical Messaging and DevEx Evaluation for AI Features

    A strategic framework for launching new AI technologies, measuring developer experience metrics, and navigating competitive benchmarking safely.

    System DesignDevRelDeveloper ExperienceTechnical MarketingBenchmarking
  • StringsMediumModel answer
    Fix a Buggy Python Table-to-CSV Function

    Audit a short Python function that flattens rows into CSV text, list its correctness and performance flaws with triggering inputs, and rewrite it safely and efficiently.

    Stringscode-reviewcsvpythonstring-building
  • Trees & GraphsMediumAuto-graded
    Lightest Downward Path in a Level-Order Tree

    Find the root-to-leaf path with the smallest value sum in a tree given as a level-order list, breaking ties toward the left, without recursion on 100,000-node skewed trees.

    Trees & Graphsbinary-treedfsiterative-traversalprefix-sum
  • Data Structure DesignMediumModel answer
    Build a Per-User Throttle and an In-Memory Event Broadcaster

    Write a thread-safe per-user token-bucket throttle and a small topic-based event broadcaster that stays correct under concurrency and survives failing listeners.

    Data Structure Designrate-limitingtoken-bucketpub-subconcurrency
  • Heaps, Sorting & SearchMediumAuto-graded
    Select the k Most Common Values with Tie Rules

    Count value frequencies and pick the k most frequent values, using a bounded heap and a defined tie-break rule for equal counts.

    Heaps, Sorting & Searchheaphash-mapfrequency-countingtop-k
  • Heaps, Sorting & SearchEasyAuto-graded
    Adjacent Entries Lookup in a Sorted Catalog

    Answer batched queries on a sorted list of unique IDs by binary searching for each target and returning its adjacent values, or nulls when the target is absent.

    Heaps, Sorting & Searchbinary-searchsorted-arraybisectbatch-queries
  • SQL & DataMediumModel answer
    Banner CTR and Session Change Analysis in Pandas

    Clean a click-stream with pandas to compute daily banner CTR without bots or accidental clicks, user-level CTR by signup cohort, and per-user session-length change around a feature launch.

    SQL & Datapandasmerge_asofsessionizationctr
  • Machine LearningMediumModel answer
    Assess Factuality and Domain Alignment in Specialized RAG Systems

    Select and justify the best two evaluation strategies for assessing the factual correctness and domain consistency of a specialized medical RAG pipeline.

    Machine Learningragllm-evaluationmachine-learningnlp
  • Heaps, Sorting & SearchEasyAuto-graded
    Locate Gap in Sorted Consecutive Sequence

    Detect a missing entry in a sorted contiguous array of integers in logarithmic time using binary search.

    Heaps, Sorting & Searcharraysbinary-search
  • Greedy & IntervalsMediumAuto-graded
    Find the Maximum Size Connected Interval Component

    Find the maximum number of intervals that belong to a single connected component where edges represent inclusive interval overlaps.

    Greedy & Intervalsintervalssortinggreedygraphs
  • Greedy & IntervalsEasyAuto-graded
    Split Chores Between Two Workers With a Fixed Quota

    Choose exactly k items for the first worker to maximize total payoff, which tests reducing a problem to per-item differences and greedy top-k selection.

    Greedy & Intervalsgreedysortingarraysexchange-argument
  • Machine LearningMediumModel answer
    Efficient Transformer Inference: Fused Attention, Caching, Rotary Positions

    Explain how IO-aware attention kernels, cached keys and values, and rotary position encoding each remove a different bottleneck in transformer training and decoding.

    Machine Learningtransformersflashattentionkv-cacherope
  • SQL & DataMediumModel answer
    Designing a Scalable Event Data Analytics Warehouse

    Architect an end-to-end data warehouse for high-throughput event logs, detailing schema design, idempotent deduplication, metric modeling, and performance optimization.

    SQL & Datadata-warehousingschema-designsqlevent-data
  • Machine LearningMediumModel answer
    Architecting a News Feed Comment Ranking System

    Design an end-to-end machine learning system to rank comments on high-traffic posts, balancing user engagement, content quality, low latency, and cold-start handling.

    Machine Learningranking-systemmulti-task-learningsystem-designrecommendation-systems
  • Machine LearningHardModel answer
    Predicting Goal Probability for Individual Soccer Shots

    Design a calibrated probability model that estimates how likely each soccer shot is to score, covering feature design, sparse regions, proper loss functions and calibration.

    Machine Learningprobability-estimationfeature-engineeringcalibrationlog-loss
  • Machine LearningMediumModel answer
    Life of a Prompt in a Block-Paged LLM Serving Engine

    Walk one request through an LLM serving engine that stores attention state in fixed-size memory blocks, covering scheduling, prefill, decode, block tables, memory reclamation and latency trade-offs.

    Machine Learningllm-inferencekv-cachepaged-attentioncontinuous-batching
  • System DesignHardModel answer
    Build a Mobile-First Grid and Resilient Signup Form in Plain CSS

    Create your own responsive utility-class grid, an accessible navbar and form, then add robust validation, async submit states, retry rules and telemetry, with no CSS framework.

    System Designcssresponsive-designaccessibilityform-validation
  • Data Structure DesignMediumModel answer
    Simulate Message Spreading in an Orbital Network

    Simulate timed, discrete-event message propagation across a satellite graph and fire report callbacks in exact time and ID order.

    Data Structure Designtrees-graphsheaps-sortingdesign-ds
  • SQL & DataMediumModel answer
    Iterative Nested List Flattening and UTC Active User Metrics

    Implement an iterative nested list flattener in Python with edge-case handling, and construct a SQL query to compute Daily Active Users (DAU) using strict UTC date casting.

    SQL & Datapythonsqlstacks-queuesdata-manipulation
  • System DesignHardModel answer
    Design an Enterprise Healthcare Record Ingestion Engine

    Architect a resilient, HIPAA-compliant ETL pipeline capable of ingesting 500 million daily sensitive records with strict partner fault isolation and replayability.

    System Designsystem-designetlevent-drivendata-engineering
  • System DesignHardModel answer
    Design a Real-Time Messaging and Collaboration Platform

    Architect a scalable real-time chat service supporting workspaces, channels, direct messaging, persistent history, and message editing with low-latency delivery.

    System Designsystem-designdistributed-systemswebsocketsdatabases