KatInterview

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

Interview Practice Problems

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

6109
Problems
2261
Auto-graded
15
Topics
275
Added today

Showing 3541–3570 of 6109 results

  • SQL & DataMediumAuto-graded
    MySQL Expression Results

    Tests understanding of MySQL type coercion, boolean evaluation, and string comparison functions.

    SQL & Datatype-coercionsqlboolean-logic
  • Machine LearningEasyModel answer
    Fundamentals of KNN and PCA: Theory and Practical Considerations

    Discuss K-Nearest Neighbors and Principal Component Analysis, covering their mechanics, hyperparameter selection, computational challenges, and when each method works well or fails.

    Machine Learningknnpcadimensionality-reductionfundamentals
  • StringsMediumAuto-graded
    Count Balanced Two-Block Substrings in a Binary String

    Tests whether a candidate can group consecutive identical characters into runs and use adjacent run lengths to efficiently count valid balanced substrings.

    Stringsstringstwo-pointersrun-length-encoding
  • Data Structure DesignMediumModel answer
    Build a FIFO Queue: Compare Linked List, Array, and Ring Buffer

    Implement a queue with enqueue, dequeue, peek, and isEmpty. Compare linked list, dynamic array, and circular buffer approaches.

    Data Structure Designqueuedata-structurescomplexity-analysismemory-management
  • BehavioralMediumModel answer
    Tell me about a project where you made a significant impact

    Articulate a meaningful project you led, covering technical decisions, trade-offs, collaboration challenges, measurable outcomes, and lessons learned.

    Behavioralbehavioralleadershipcommunicationownership
  • Trees & GraphsMediumModel answer
    Trace a Target String Through a Character Grid

    Decide whether a word can be spelled by a non-repeating, four-directional path of adjacent cells in a character matrix, with pruning and complexity analysis.

    Trees & Graphsbacktrackingdepth-first-searchgridpruning
  • Machine LearningMediumModel answer
    Building a Kid-Suitability Filter for Rental Listings

    Design a probabilistic classifier that marks rental listings as suitable for infants and children, covering labeling, features, modeling, evaluation, host gaming, fairness, and cold start.

    Machine Learningml-system-designclassificationtrust-and-safetyfairness
  • Dynamic ProgrammingMediumModel answer
    Stock Trading Profit with Transaction Limits and Fees

    Maximize stock trading profit given a cap on total transactions and a per-sale fee, using a unified DP state machine.

    Dynamic Programmingdynamic-programmingstate-machinegreedy
  • BehavioralMediumModel answer
    Developing Managers and Addressing Performance Issues

    Describe how you've coached a reporting manager through growth and handled underperformance, demonstrating diagnosis, accountability, and leadership leverage.

    Behavioralleadershipmanagementcoachingperformance-management
  • SQL & DataMediumAuto-graded
    Reduce Subscription Events to Latest User Status

    Collapse an append-only subscription event log into one status row per user, picking the newest event per user with a deterministic tie-break.

    SQL & Dataevent-logdeduplicationgroupingdatetime-parsing
  • Trees & GraphsMediumAuto-graded
    Minimum Steps Through an Obstacle Map

    Tests ability to model a 2D grid as an unweighted graph and apply BFS to find the fewest moves between two corners while avoiding walls.

    Trees & Graphsbfsgraphsgrid
  • BehavioralEasyModel answer
    Answering Behavioral Questions with Leadership Principles

    Prepare structured responses to common behavioral prompts about overcoming obstacles, unblocking teams, and explaining your motivation using concrete examples and measurable outcomes.

    Behavioralbehavioralleadership-principlesstar-method
  • BehavioralHardModel answer
    Describing Your Learning Process and a Difficult Technical Challenge

    Explain how you acquire unfamiliar skills efficiently and walk through a demanding project you owned, demonstrating learning agility and technical leadership.

    Behaviorallearning-agilityproject-ownershiptechnical-leadership
  • System DesignMediumModel answer
    Fixing Priority Preemption in a GPU Lease Scheduler

    Diagnose why a GPU lease manager preempts the wrong tenant, rewrite victim selection to evict the weakest lease, and design regression tests.

    System Designconcurrencyschedulingdebuggingunit-testing
  • SQL & DataMediumModel answer
    Code Review: Geospatial Data Processing Pipeline

    Evaluate a Python module that computes distances and clusters geographic points from CSV/GeoJSON sources, identifying bugs, performance issues, and production risks.

    SQL & Datacode-reviewgeospatialpythondata-processing
  • Data Structure DesignMediumAuto-graded
    Simulated Word Store with Prefix Query

    Tests trie-style prefix counting logic via operation replay, with optional case-insensitive and trailing-digit normalization flags.

    Data Structure Designtriestringssimulation
  • System DesignMediumModel answer
    Real-Time Multiplayer Game Backend with Move Reversal

    Architect a scalable backend for a turn-based multiplayer game supporting concurrent matches, move reversal requests, and dynamic player rankings.

    System Designreal-time systemsstateful servicesdistributed systems
  • System DesignMediumModel answer
    Dedupe a Huge Directory Tree with Tiered Hashing

    Design and code a disk-scale deduplicator that filters candidates cheaply, hashes in streams, verifies bytes, and safely hard-links duplicates.

    System Designdeduplicationhashingstreaming-iohard-links
  • System DesignMediumModel answer
    Membership Service for a Growing ID Set: Latency, Memory, Durability

    Design a check-and-insert service for ~1 million user IDs, covering data structure choice, atomic concurrency, probabilistic filters, and crash-safe on-disk storage.

    System Designbloom-filterlsm-treeconcurrencyhashing
  • System DesignMediumModel answer
    Design a Multi-Tenant File Sync and Share Platform

    Design an enterprise file storage service covering resumable chunked uploads, metadata/blob separation, versioning, and inherited permissions.

    System Designsystem-designobject-storagededuplicationaccess-control
  • Heaps, Sorting & SearchMediumAuto-graded
    Find k Nearest Values in Sorted Array

    Tests binary search on window positions with careful tie-breaking that prefers smaller values when distances are equal.

    Heaps, Sorting & Searchbinary-searchsliding-windowtwo-pointers
  • System DesignMediumModel answer
    Screenshot-to-Component: Building a Token-Driven Card with Chips

    Turn a static card-and-chip screenshot into a tokenized, accessible, responsive component and explain how you'd verify pixel fidelity.

    System Designfrontendaccessibilitydesign-tokensresponsive-layout
  • Data Structure DesignHardAuto-graded
    Running Median Over a Live Integer Feed

    Tests whether a candidate can design a two-heap structure that inserts integers and queries the running median in better than O(N) time per operation.

    Data Structure Designheapsdesignstreaming
  • Trees & GraphsMediumAuto-graded
    Count Land Cells in a Connected Region

    Tests iterative graph traversal (DFS/BFS) on a binary grid, including bounds handling, visited-marking strategy, and complexity analysis.

    Trees & Graphsgraph traversalDFSBFSmatrix
  • Arrays & HashingEasyAuto-graded
    Aggregate Parallel Pipeline Results Safely

    Fix async pool usage so results are collected in order, worker errors surface, and one JSON file is written.

    Arrays & Hashingmultiprocessingconcurrencydebuggingfile-io
  • Machine LearningMediumModel answer
    Building and Deploying an End-to-End Machine Learning System

    Walk through a complete ML system you've owned, from problem definition through production deployment, then discuss resolving technical disagreements.

    Machine Learningml-system-designproduction-mlcross-functional-collaboration
  • Arrays & HashingMediumAuto-graded
    Compress Sorted Array to Unique Elements

    Tests in-place array manipulation with two-pointer technique to remove duplicates from a sorted sequence.

    Arrays & Hashingtwo-pointersin-placesorted-array
  • System DesignMediumModel answer
    React Internals: Rendering, Effects, Errors, and Concurrency

    Walk through how React reconciles trees, when effects run, how to contain component failures, and what concurrent mode primitives actually buy you.

    System Designreactfrontendhookserror-boundaries
  • Data Structure DesignMediumAuto-graded
    Mini Query Engine: Filter, Sort, and Project Rows

    Tests ability to implement a pipeline of filter, multi-column sort, and column projection over a list of in-memory row dicts.

    Data Structure Designdata structuressortingfiltering
  • Machine LearningEasyModel answer
    Gradient Boosting with Cross-Validation: Train, Evaluate, and Persist

    Build a sklearn Pipeline with gradient boosting, measure generalization via stratified 5-fold ROC-AUC, then refit on all data and save to disk.

    Machine Learninggradient-boostingcross-validationsklearnpipeline