KatInterview

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

Interview Practice Problems

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

6094
Problems
2258
Auto-graded
15
Topics
270
Added today

Showing 3751–3780 of 6094 results

  • BehavioralEasyModel answer
    Walk Me Through Your Technical Stack

    Describe your programming languages, libraries, and dev tooling by proficiency tier, then tie the stack to a concrete, measurable outcome.

    Behavioraltoolinglanguagesengineering fundamentalsHR screen
  • Stacks & QueuesHardAuto-graded
    Peak Values in Fixed-Length Subarrays

    Tests understanding of monotonic deques to efficiently track the largest element across consecutive fixed-size subarrays in linear time.

    Stacks & Queuesdequesliding-windowmonotonic-queue
  • Heaps, Sorting & SearchMediumAuto-graded
    Three-Way Color Partition

    Tests the ability to partition an array into three distinct categories using a single-pass, constant-space algorithm.

    Heaps, Sorting & Searcharraystwo-pointerssortingpartitioning
  • System DesignMediumModel answer
    Scalable Duplicate File Detection in a Large Directory Tree

    Design and implement an algorithm to find (and safely remove) duplicate files in a directory tree that may exceed available memory.

    System Designhashingfile-systemsdeduplicationscalability
  • Machine LearningMediumModel answer
    End-to-End Classification: Text Features, Ensembles, and CTR

    Walk through a full supervised ML lifecycle covering bag-of-words pipelines, OOB validation, CTR modeling from data to deployment, and debugging a model that degrades in production.

    Machine Learningclassificationfeature-engineeringctr-predictionrandom-forests
  • System DesignMediumModel answer
    Design a GPU-Backed Video Generation Service with Fair Scheduling

    Design the backend for a text-to-video service where each job occupies exactly one GPU, covering task lifecycle, fair multi-user queueing, and cancellation at every stage.

    System Designsystem-designqueuesdistributed-systems
  • Statistics & ExperimentsHardModel answer
    No-Holdout Launch: Judging a Watch-Time Regression

    Decide whether to roll back, continue, or mitigate a 100%-rollout ranking change when a 2.7% watch-time drop coincides with a premiere and an outage, using DiD and synthetic control.

    Statistics & Experimentscausal-inferencedifference-in-differencessynthetic-controlexperiment-design
  • Machine LearningMediumModel answer
    Probability Calibration via Temperature Scaling: Derive and Code It

    Derive the NLL gradient with respect to a single temperature scalar, then implement a numerically stable optimizer and calibrated inference function in Python.

    Machine Learningcalibrationsoftmaxgradient-descentdeep-learning
  • BehavioralEasyModel answer
    Handling Critical Deliverables with Constrained Timelines

    Explain how you managed a project with insufficient time, covering scope decisions, stakeholder alignment, quality assurance, and debt resolution.

    Behavioralprioritizationrisk-managementcommunicationproject-management
  • BehavioralEasyModel answer
    Navigating PM and Eng as a Data Scientist

    Show how you structure cross-functional work, decide when to push back, and use data to steer a product decision.

    Behavioralcollaborationstakeholder-managementinfluenceexperimentation
  • System DesignHardModel answer
    Design a Fair, Real-Time Pricing Engine for a Ride Platform

    Design the components, data flows, and core pricing logic for a ride platform that handles surge, carpooling, fairness constraints, and live experimentation at scale.

    System Designpricingreal-time systemssurgecarpooling
  • Arrays & HashingMediumAuto-graded
    Merge Two Sorted Lists Into a Padded Buffer

    Merge a sorted list into the sorted prefix of a larger list that ends with unused slots, writing in place with constant extra memory.

    Arrays & Hashingtwo-pointersin-placesorted-arraysmerge
  • Trees & GraphsMediumAuto-graded
    Group Serialized Tree Values by Depth

    Parse a LeetCode-style level-order array and return values grouped into nested lists by depth, preserving left-to-right order.

    Trees & Graphstreesbfsarrays
  • Arrays & HashingMediumAuto-graded
    Count Close Triplets Within a Value Range

    Tests sorting, sliding window, and combinatorial counting to find how many index-distinct triplets fit within a given value spread.

    Arrays & Hashingsliding-windowsortingcombinatorics
  • Arrays & HashingMediumAuto-graded
    Grid Walk With Clockwise Redirects at Walls and Obstacles

    Tests grid simulation by traversing a matrix in a right-biased clockwise walk that turns at boundaries, visited cells, and blocked positions until no move is possible.

    Arrays & Hashingmatrixsimulationgrid
  • Machine LearningMediumModel answer
    Feature Selection Mechanism in L1-Regularized Regression

    Explain how and why L1 regularization drives coefficients to exactly zero, covering mathematical foundations, practical implications, and trade-offs.

    Machine Learningregularizationfeature-selectionlassooptimization
  • Dynamic ProgrammingHardAuto-graded
    Enumerate All Possible Tic-Tac-Toe Game Paths

    Tests recursive game-tree traversal with memoization to count distinct play sequences by outcome.

    Dynamic Programmingrecursionmemoizationgame-theory
  • Statistics & ExperimentsHardModel answer
    Designing Experiments for a New Group Video Feature

    Design surveys, benchmark competitors indirectly, plan an A/B test with appropriate metrics, and handle network interference when launching group calling.

    Statistics & Experimentsexperiment-designcausal-inferencemetricssurvey-design
  • Trees & GraphsMediumAuto-graded
    Shared Manager in Organizational Hierarchy

    Tests tree traversal, ancestor queries, and handling multiple input formats with a custom precedence rule.

    Trees & Graphstreeslowest-common-ancestorgraph-traversal
  • Trees & GraphsMediumAuto-graded
    Fill Rooms With Distance to Nearest Exit

    Tests multi-source BFS on a grid to propagate shortest walking distances from all exits simultaneously to every reachable empty room.

    Trees & Graphsbfsgraphsgrid
  • Dynamic ProgrammingMediumAuto-graded
    Longest Strictly Increasing Subsequence

    Tests understanding of dynamic programming optimization using binary search and greedy subsequence construction with the patience sorting technique.

    Dynamic Programmingbinary-searchsubsequencesgreedy
  • Machine LearningHardModel answer
    Building and Evaluating a Personalized Content System

    Walk through how you designed a personalized content system: what signals defined user interest, how you represented content and users, and how you validated that model updates actually improved outcomes.

    Machine Learningembeddingslabelingmodel-evaluationproduction-ml
  • BehavioralMediumModel answer
    Self-Description, Goal-Setting, Paper Review, and Competition Retrospective

    Craft structured behavioral answers covering your professional identity, how you plan goals, a research paper you studied, and what a stronger competitor taught you.

    Behavioralself-awarenessgoal-settingresearch literacygrowth mindset
  • BehavioralMediumModel answer
    Leading a Cross-Functional ML Recommendation System Initiative

    Describe how you would plan, staff, execute, and measure a large-scale recommendation project across engineering, product, and data science teams.

    Behavioralleadershipproject-planningcross-functionalml-systems
  • Statistics & ExperimentsHardModel answer
    Measuring the Impact of a Delivery Fee Promotion

    Design an experiment to evaluate whether offering reduced delivery fees drives profitable growth and determine which customer segments benefit most.

    Statistics & Experimentsexperimentationcausal-inferencecustomer-segmentation
  • System DesignMediumModel answer
    Designing a Real-Time and Batch Device Telemetry Pipeline

    Architect an ingest-to-query system that handles millions of device messages per second while serving both sub-second dashboards and long-range batch analytics.

    System Designdistributed-systemsstream-processingdata-pipelinetime-series
  • Arrays & HashingMediumAuto-graded
    Stable Grouping and Column Gravity

    Tests stable partitioning of categorized strings and simulating gravity on independent grid columns

    Arrays & Hashingarrayssortingsimulationtwo-pointers
  • Machine LearningHardModel answer
    Build a Bagging Ensemble Classifier from Scratch

    Implement bootstrap sampling, multi-tree training, and majority-vote aggregation for a bagging classifier using only Python lists and the standard library.

    Machine Learningensemble learningdecision treesbootstrap sampling
  • StringsMediumModel answer
    Aggregate HTTP Logs to Identify Top Client Addresses

    Parse multi-file request logs to extract and rank the five IPv4 addresses that generated the most completed HTTP requests.

    Stringsparsingregexaggregationtop-k
  • System DesignHardModel answer
    Multi-Level Parking Facility: Allocation, Ticketing, and Payments

    Design a multi-level parking facility with typed spots, entry/exit gates, ticketing, pricing, and availability — covering concurrency, consistency, and failure handling.

    System Designsystem-designconcurrencyidempotencystate-machines