KatInterview

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

Interview Practice Problems

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

6066
Problems
2248
Auto-graded
15
Topics
275
Added today

Showing 4321–4350 of 6066 results

  • Statistics & ExperimentsMediumModel answer
    Investigate a Sudden Traffic Surge and Conversion Drop

    Diagnose a May spike in weekly sessions paired with a falling conversion rate using segmentation, time-series comparison, and data quality checks on a week-level dataset.

    Statistics & Experimentsanomaly-detectionconversion-ratesegmentationdata-quality
  • Data Structure DesignHardAuto-graded
    Build a Record Filter with Nested Query Conditions

    Evaluate structured filter expressions with comparison, membership, and logical operators over in-memory records

    Data Structure Designrecursiondata-structuresquery-evaluation
  • Statistics & ExperimentsMediumModel answer
    Implied Volatility: Root-Finding, Seed Selection, and Vega

    Explain Newton–Raphson convergence for implied vol, how to pick a starting sigma, and derive the Black–Scholes Vega with its effect on iteration steps.

    Statistics & Experimentsblack-scholesimplied-volatilitynewton-raphsonvega
  • Dynamic ProgrammingHardAuto-graded
    Maximize Hourly Output Revenue for a Three-Stage Assembly Line

    Tests budgeted 0/1 selection with a bottleneck objective, requiring Pareto-frontier pruning over a four-dimensional knapsack state space.

    Dynamic Programmingknapsackpareto-frontierbottleneckcombinatorial-optimization
  • System DesignMediumModel answer
    Multi-Step Form State Management in Spring Boot MVC

    Design session-based state persistence, field-level validation with error feedback, and exception handling for a wizard-style form in Spring Boot with Thymeleaf.

    System Designspring-bootweb-frameworkssession-managementvalidation
  • BehavioralMediumModel answer
    Triaging a Spike in Delivery Error Reports

    Diagnose and resolve a sudden increase in delivery complaints using metrics, data joins, pattern detection, and validation of fixes.

    Behavioralincident-responsedata-analysisoperations
  • System DesignHardModel answer
    Raw Pointers vs Smart Pointers: Ownership, Safety, and Cost

    Explain how C++ smart pointers encode ownership semantics, prevent memory bugs, and compare in runtime cost against raw pointers.

    System DesignC++memory-managementRAIIperformance
  • System DesignHardModel answer
    Design a Photo and Video Sharing Platform at Scale

    Architect a social media platform where users upload media, follow others, and get a ranked home feed — covering storage, delivery, feed generation, and scaling trade-offs.

    System Designfeed-generationcdnmedia-pipelinesharding
  • Data Structure DesignEasyAuto-graded
    Find Minimum Index Gap Between Word Pairs

    Tests the ability to preprocess data for efficient repeated lookups using hash maps and two-pointer merging of sorted lists.

    Data Structure Designhash-maptwo-pointerspreprocessing
  • Heaps, Sorting & SearchHardModel answer
    Locate Local Minima Using Divide-and-Conquer

    Implement sublinear algorithms to identify a local minimum in a 1D array and a 2D grid by applying binary search to unimodal descent.

    Heaps, Sorting & Searchbinary-searchdivide-and-conqueralgorithms
  • StringsEasyAuto-graded
    Total Palindrome Substrings in a String

    Tests your ability to count every palindromic substring by expanding around centers or applying Manacher's linear-time algorithm.

    Stringsstringsdynamic-programmingtwo-pointers
  • System DesignMediumModel answer
    Word and Phrase Lookup in a File Too Big to Load

    Design an API to find every line containing a word or exact phrase in a large line-oriented text file, comparing a streaming scan against a persistent inverted index.

    System Designinverted-indextext-searchstreamingtokenization
  • Data Structure DesignEasyModel answer
    Two-Part Challenge: Token Frequencies and Multiset Overlap with a Barebones RDD

    Using only flatMap, groupByKey, union, and collect on a minimal RDD class, implement word counting and a duplicate-preserving intersection of two datasets.

    Data Structure Designrddword-countmultiset-intersection
  • StringsEasyAuto-graded
    First Longest Window of Distinct Characters

    Tests whether a candidate can apply the sliding window technique with a hash map to find the earliest, longest non-repeating character run in a string.

    Stringssliding-windowhash-maptwo-pointers
  • Heaps, Sorting & SearchMediumAuto-graded
    Top-K Labels by Frequency with Alphabetical Tie-Breaking

    Tests frequency counting and compound-key sorting to find the k most common strings, resolving ties by alphabetical order for both ranking and inclusion.

    Heaps, Sorting & Searchsortinghash-mapheap
  • System DesignHardModel answer
    Design an End-to-End Loan Origination Platform

    Architect a durable, compliant loan origination system covering product selection, application intake, automated underwriting, third-party data pulls, decisioning, and disbursement.

    System Designsystem-designfintechworkflow-orchestrationdistributed-systems
  • BehavioralMediumModel answer
    Managing Delivery Under Tight Deadlines

    Describe your approach to planning, prioritizing, and executing a project when facing aggressive timelines and constrained resources.

    Behavioralproject-managementprioritizationstakeholder-communication
  • Data Structure DesignMediumAuto-graded
    Deduplicate Repeated Log Messages with Time Window

    Filter a time-ordered stream of log messages to show each distinct message only once per 10-second window

    Data Structure Designhash-mapstreamingrate-limiting
  • System DesignMediumModel answer
    Digital Timing Analysis and Hardware Test Infrastructure

    Explain setup/hold timing constraints, clock skew effects, violation fixes, and hardware testability methods in digital chip design.

    System Designhardwaretiming-analysistestingdigital-design
  • System DesignHardModel answer
    Build a Fault-Tolerant Future Task Execution Engine

    Design a distributed scheduler that durably stores millions of delayed tasks and dispatches them within seconds of their due time, surviving crashes and partitions.

    System Designdistributed-systemsschedulingfault-tolerancedatabases
  • BehavioralMediumModel answer
    Lead Through Friction: Project Challenges and Hard-to-Manage People

    Demonstrate leadership depth by walking through a project obstacle you owned and a time you managed someone who resisted direction, using concrete actions and outcomes.

    Behavioralleadershipconflict-resolutionpeople-managementSTAR
  • Statistics & ExperimentsMediumModel answer
    A/B Test Inference: Z-Test, Confidence Interval, and Power

    Evaluate statistical significance, construct a confidence interval, calculate required sample size, and apply a multiple-comparison correction for an online experiment.

    Statistics & Experimentsa-b-testinghypothesis-testingsample-size
  • BehavioralMediumModel answer
    A Leader Who Changed How You Work

    Describe a mentor or manager who shaped your approach, and walk through a later situation where you applied that lesson yourself.

    Behavioralleadershipmentorshipgrowthreflection
  • SQL & DataMediumModel answer
    Cohort Engagement Metrics for Single-Category Users

    Filter users into mutually exclusive content-type cohorts, then compute activity counts, median active days, a 10-day threshold rate, and per-user average minutes.

    SQL & Datacohort-analysisaggregationwindow-functionsdata-quality
  • System DesignMediumModel answer
    Build a Scalable Task Execution System

    Design a fault-tolerant background task scheduler supporting one-time and recurring jobs with at-least-once guarantees at scale.

    System Designdistributed-systemsschedulingfault-tolerance
  • Statistics & ExperimentsHardModel answer
    Design a profit comparison study for two competing retail locations

    Plan data collection, analysis, and decision framework to reliably determine which of two side-by-side shops will be more profitable next quarter.

    Statistics & Experimentscausal-inferenceexperimental-designmetricsconfidence-intervals
  • Machine LearningMediumModel answer
    Write a PyTorch Training Loop from Scratch

    Implement a complete per-batch training loop in PyTorch, covering device placement, gradient management, and per-epoch loss tracking.

    Machine Learningpytorchdeep-learningtraining-loopgradient-descent
  • SQL & DataMediumAuto-graded
    Classify Risky Transactions and Dispute History

    Tests multi-window aggregation, business-rule encoding, and precise date/time boundary handling across three related data tables.

    SQL & Datadata-manipulationdatetimebusiness-rules
  • BehavioralEasyModel answer
    Navigating a Complex Technical Investigation

    Walk through how you approached an ambiguous technical problem, the evidence you gathered, and how you drove it to resolution.

    Behavioralproblem-solvingcommunicationleadership
  • Machine LearningMediumModel answer
    Temperature Data: Stats, Regression, and Greedy Feature Selection

    Given daily temperature readings for NYC and several towns, compute variability stats, fit linear regressions, and select five predictors via greedy forward search.

    Machine Learningpandasnumpylinear-regressionfeature-selection