KatInterview

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

Interview Practice Problems

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

6045
Problems
2239
Auto-graded
15
Topics
275
Added today

Showing 4681–4710 of 6045 results

  • SQL & DataMediumModel answer
    SQL Net Revenue Rankings and Transaction Data Quality Checks

    Write SQL queries to rank vendors by net revenue globally and by city/state, then design and implement data quality checks on a transaction table.

    SQL & Datasqlwindow-functionsdata-qualityaggregation
  • BehavioralMediumModel answer
    Four Behavioral Stories with Deep Follow-up Pressure

    Prepare and deliver four distinct STAR stories covering customer impact, ownership, a missed deadline, and hard feedback — each built to survive 10 minutes of probing.

    BehavioralleadershipSTARstakeholder managementself-awareness
  • Arrays & HashingMediumAuto-graded
    Rotate a Square Matrix 90° Clockwise In Place

    Tests whether a candidate can transform an n×n grid in place using transpose and row-reversal, with no extra matrix allocated.

    Arrays & Hashingmatrixin-placetwo-pointer
  • Greedy & IntervalsMediumAuto-graded
    Fewest Irrigation Devices to Water a Linear Garden

    Tests greedy interval selection and the ability to handle coverage gaps in a linear range.

    Greedy & Intervalsgreedyintervalssorting
  • Arrays & HashingMediumAuto-graded
    Sample Size Calculator for Two-Proportion Z-Test

    Tests ability to implement statistical power calculations for comparing two binary outcome rates in experimental design.

    Arrays & Hashingexperimentationstatisticspower-analysis
  • Data Structure DesignHardModel answer
    O(1) Insert, Delete, and Fair Random Draw from a Live Set

    Design a data structure that supports adding, removing, and uniformly sampling integer values, all in average O(1) time with no duplicates.

    Data Structure Designhash maparrayrandomizationdata structure design
  • Data Structure DesignMediumAuto-graded
    Build a Time-Aware Key-Value Store with Expiration Logic

    Tests data structure design, time-based expiration semantics, and clean handling of missing or stale entries in an in-memory cache.

    Data Structure Designhash-tabletime-simulationexpirationcache-design
  • Arrays & HashingMediumAuto-graded
    Rotation Distance: Sum Absolute Differences Across All Shifts

    Tests array rotation mechanics, computing position-wise absolute differences for every cyclic offset, and returning results in sorted order.

    Arrays & Hashingarraysrotationsorting
  • System DesignMediumModel answer
    Design a Blob Storage Service with Buckets and Keys

    Design a scalable service where clients store, retrieve, list, and delete binary objects addressed by key inside named buckets.

    System Designstoragedistributed-systemsreplication
  • Machine LearningMediumModel answer
    Regularization Penalties, Regression Basics, and Classification Metrics

    Define precision and recall, compare L0/L1/L2/L∞ penalties, state linear regression assumptions, and contrast linear with logistic regression.

    Machine Learningregularizationclassification-metricsregressionlogistic-regression
  • Trees & GraphsMediumAuto-graded
    Build a Visual Directory Tree from Nested Dictionary

    Tests recursion, dictionary traversal, and string formatting to produce an indented tree structure with box-drawing connectors.

    Trees & Graphsrecursiontree-traversalstringsformatting
  • Arrays & HashingMediumAuto-graded
    Contiguous Subarray Sum Count

    Tests prefix sum technique with hash maps to count subarrays matching a target sum in linear time

    Arrays & Hashingprefix-sumhash-mapsubarray
  • Machine LearningHardModel answer
    Build and Serve a Domain-Adapted LLM Without Hallucinating

    Design, fine-tune, and operate a Transformer-based LLM on a specialized corpus while preserving general capabilities and controlling hallucinations in production.

    Machine Learningtransformersllmfine-tuninghallucination
  • Greedy & IntervalsMediumAuto-graded
    Consecutive-Range Handoff Pairs for Interval Coverage

    Tests interval reasoning and efficient pairing: find all unordered listing pairs whose consecutive availability windows together cover a full date range.

    Greedy & Intervalsintervalsbinary-searchhashingsorting
  • System DesignMediumModel answer
    Build a time-series monitoring platform with alerts

    Design an observability system that ingests high-volume metrics, supports real-time dashboards and historical analysis, and evaluates alerting rules.

    System Designtime-seriesobservabilitystreamingdata-modeling
  • Greedy & IntervalsMediumAuto-graded
    Track Segment Coverage by Expanding Intervals

    Tests interval merging and coverage detection with streaming data updates.

    Greedy & Intervalsintervalsmerge-intervalsdata-structuresstreaming
  • System DesignMediumModel answer
    GPU Matrix Transpose: From Strided to Coalesced Memory Access

    Explain why a naive GPU matrix transpose causes uncoalesced memory traffic, then design a tiled shared-memory kernel that achieves coalesced reads and writes.

    System DesignGPUmemory-coalescingparallel-computingshared-memory
  • SQL & DataMediumModel answer
    Freight Analytics: Top States, Daily Rates, and Running Totals

    Join three logistics tables to rank states by completed jobs, compute daily average rates, and build a running cumulative count using window functions.

    SQL & Datawindow-functionsaggregationjoinscte
  • Heaps, Sorting & SearchMediumAuto-graded
    Top-K Price Harvest from Tiered Stock Levels

    Tests whether a candidate can reformulate a greedy revenue problem into summing the largest elements across union-of-range price sets and implement an O(n log n) layer-sweep solution.

    Heaps, Sorting & Searchgreedysortingmath
  • Data Structure DesignMediumAuto-graded
    Digit Hand Showdown

    Classify numeric hands by frequency patterns with custom ranking, then break ties using positional comparison without sorting.

    Data Structure Designobject-oriented-designpattern-matchingextensibility
  • StringsHardAuto-graded
    Group Anagram Chains by Transformation Distance

    Tests anagram grouping combined with string parsing and multi-key sorting to build and rank clusters of anagrammatically related words from a structured input.

    Stringsstringsanagram groupingsortingparsing
  • BehavioralMediumModel answer
    Structuring behavioral stories for leadership competencies

    Prepare concise, data-driven examples demonstrating decision-making, conflict resolution, feedback, and ownership using a four-part narrative framework.

    Behavioralleadershipdecision-makingcommunication
  • Machine LearningHardModel answer
    End-to-End Pipeline for Penalized Linear Regression

    Build a complete scikit-learn pipeline with preprocessing, regularization, proper validation, and interpretation for predicting marketing signups.

    Machine Learningregressionregularizationcross-validationfeature-engineering
  • Dynamic ProgrammingMediumAuto-graded
    Maximum Profit Under Capacity Constraint

    Tests understanding of 0/1 knapsack disguised by a misleading ordering constraint that is actually always satisfiable.

    Dynamic Programmingknapsackdynamic-programminggreedy
  • Data Structure DesignMediumModel answer
    Job Scheduler with Dependency Resolution

    Build a thread-safe scheduler that accepts jobs with dependencies, identifies runnable jobs, and tracks state transitions through success and failure.

    Data Structure Designstate-machinedependency-graphconcurrencysystem-design
  • BehavioralEasyModel answer
    Introduce Yourself and Make the Case for the Role

    Structure a compelling self-introduction and motivation pitch tailored to a product manager role in consumer gaming.

    Behavioralself-introductionmotivationcareer narrative
  • Machine LearningMediumModel answer
    Design a Documentation Q&A System Using LLM APIs

    Build a retrieval-augmented generation system that answers developer questions from internal documentation using embeddings and language model APIs.

    Machine Learningretrieval-augmented-generationembeddingsllm-orchestrationvector-search
  • Machine LearningEasyModel answer
    Decision Trees: Splits, Hyperparameters, and Ensembles

    Explain how decision trees partition data, how splits are scored for classification vs regression, how hyperparameters control overfitting, and how ensemble methods improve on a single tree.

    Machine Learningdecision-treesrandom-forestgradient-boostingbias-variance
  • Dynamic ProgrammingMediumAuto-graded
    Partition Items Into Bins With Limited Capacity

    Tests the classic bounded knapsack variant where you must determine the minimum number of identical bins needed so each bin's total weight stays within a capacity, using DP to check feasibility.

    Dynamic Programmingdynamic programmingknapsackmemoization
  • BehavioralMediumModel answer
    Leading Through Influence: A Cross-Team Challenge Story

    Demonstrate emergent leadership, collaboration, and measurable impact through a concrete story about driving results without relying on formal authority.

    Behavioralleadershipcollaborationinfluence-without-authoritySTAR