KatInterview

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

Interview Practice Problems

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

6101
Problems
2258
Auto-graded
15
Topics
272
Added today

Showing 2311–2340 of 6101 results

  • Data Structure DesignMediumAuto-graded
    Versioned Network Edge Tracker

    Process a stream of edge insertions, snapshot triggers, and historical adjacency queries for a dynamic graph.

    Data Structure Designdesign-dsarraystrees-graphs
  • Heaps, Sorting & SearchMediumAuto-graded
    Lowest-Numbered Free Room Booking for Time Slots

    Simulate a deterministic room-allocation process with heaps: sort by start, free finished rooms, pick the smallest free ID, and report assignments in input order.

    Heaps, Sorting & Searchheapsimulationsortingintervals
  • Dynamic ProgrammingHardModel answer
    Best Self-Matching Count After Removing Array Elements

    Delete any elements from an array so the most remaining values equal their new 1-based position. Reduce it to a longest-chain problem solved in O(n log n).

    Dynamic Programmingdynamic-programminglongest-increasing-subsequencebinary-searchsubsequence
  • Data Structure DesignHardAuto-graded
    Design a Custom Key-Value Map

    Execute a series of map operations (put, get, remove) by simulating a hash map without using built-in dictionaries or sets.

    Data Structure Designarraysdesign-dshash-table
  • SQL & DataMediumAuto-graded
    Find Top-Funded Municipalities and Their Leading Projects

    Aggregate relational records over a specific date window to identify peak entities with tie preservation at multiple hierarchical levels.

    SQL & Dataarrayshash-tablesortingdate-parsing
  • System DesignMediumModel answer
    Reservation Notes Feature: Domain Model, Permissions, Bulk Edits

    Design the object model and system for free-text notes on a reservation, with owner and admin edit rights, change auditing, and a safe path for bulk admin updates.

    System Designobject-oriented-designaccess-controlaudit-logbatch-processing
  • Data Structure DesignEasyAuto-graded
    Rolling Ten-Minute Error Counter by Endpoint Prefix

    Replay a log of error-recording and alert-check operations, grouping errors by URL prefix and counting those in an inclusive 600-second window against a strict threshold.

    Data Structure Designdesignbinary-searchhash-mapsliding-window
  • Dynamic ProgrammingMediumModel answer
    Autonomous Drone Navigation in Dynamic Canyons

    Design a deterministic per-tick controller for a thruster-driven drone navigating procedurally generated obstacle canyons using lookahead simulation.

    Dynamic Programmingdynamic-programminglookahead-searchsimulationmemoization
  • Heaps, Sorting & SearchMediumAuto-graded
    Where Is Everyone? Locating Travelers at a Given Instant

    Group unsorted flight records by traveler and decide each traveler's status at a query timestamp, using half-open flight intervals.

    Heaps, Sorting & Searchsortinghash-mapintervalstimestamps
  • Arrays & HashingEasyAuto-graded
    Target Token Loss and Exponential Uncertainty Score

    Compute the mean negative log-likelihood across target tokens and convert it into perplexity for a given logarithm base.

    Arrays & Hashingmachine-learningmathnlp
  • Data Structure DesignHardModel answer
    Design a Time-Series Cloud Credit Ledger

    Design an in-memory cloud billing system supporting delayed cashback rebates, account consolidation, point-in-time historical balance queries, and spend leaderboards.

    Data Structure DesignData Structure DesignHeapUnion FindBinary Search
  • System DesignHardModel answer
    Designing a Distributed In-Memory Caching Tier

    Design a scalable, resilient distributed in-memory cache shared by backend services, covering memory management, partitioning, failover, and database protection.

    System Designsystem-designdistributed-systemscachingconsistent-hashing
  • Data Structure DesignMediumModel answer
    Build a Data-Fetching React Hook and Wire Up a Dashboard UI

    Write a React hook that fetches and reshapes API data with loading, error and refetch support, then connect a modal, a collapsible list and action buttons to component state.

    Data Structure DesignreacthooksuseEffectasync
  • Machine LearningHardModel answer
    Forecasting Hourly Rentals at a Single Bike-Share Dock Station

    Design an end-to-end model that forecasts hourly bike pickups at one docked station for the next 24 hours, covering target definition, features, models, and evaluation.

    Machine Learningtime-seriesforecastingcensored-datafeature-engineering
  • Machine LearningMediumModel answer
    Stress-Testing Your Own Published ML Paper Under Critique

    Prepare to present a paper you authored to a reviewer who has read it and will probe its experimental design, real-world usefulness, and how newer work changes its claims.

    Machine Learningresearch-paperexperimental-designself-critiqueablations
  • Data Structure DesignMediumAuto-graded
    Typo-Tolerant Word Lookup with One Edit

    Answer batches of lookups against a fixed word list, returning every word within Levenshtein distance 1 of the query, using a deletion-based hash index.

    Data Structure Designhash-mapedit-distancestringsindexing
  • BehavioralEasyModel answer
    Handling Stakeholder Friction and Manager Evaluation Questions

    Learn how to frame stakeholder conflict stories effectively and navigate manager-rating calibration questions with self-awareness and professional transparency.

    Behavioralbehavioralstakeholder-managementleadershipconflict-resolution
  • Trees & GraphsHardModel answer
    Tree to String and Back: A Lossless Binary Tree Codec

    Build a pair of functions that flatten a binary tree of integers into a string and restore the identical tree from that string, with a clear format and a correctness argument.

    Trees & Graphsbinary-treeserializationpreorderstack
  • System DesignMediumModel answer
    Sub-50ms Payment Risk Scoring Service for Peak Traffic

    Architect an online scoring service that labels each card payment as approve, flag or block within 50 ms, handles 10k+ RPS and spikes, and ships new models with no downtime.

    System Designml-system-designlow-latencyfeature-storemodel-serving
  • Trees & GraphsHardAuto-graded
    Climbing Routes From the Corner: Batch Lookup of Shortest Paths

    Run one BFS from the top-left cell of a grid with distinct values, using strictly increasing moves, then answer many target queries by rebuilding paths from stored parent links.

    Trees & Graphsbfsgridshortest-pathpath-reconstruction
  • Linked ListsHardAuto-graded
    Convert Multi-Level Branching List to Doubly Linked List

    Flatten a tree-like linked structure with main and side links into a single doubly linked sequence using preorder traversal.

    Linked Listslinked-liststrees-graphsstacks-queues
  • Stacks & QueuesEasyAuto-graded
    Calculate Rolling Means from a Data Stream

    Evaluate tracking a sliding window over incoming numbers to incrementally update and output moving averages.

    Stacks & Queuessliding-windowqueuedequearray
  • BehavioralMediumModel answer
    Handling Urgent Ad-Hoc Analytics Requests Under Time Constraints

    Learn how to structure a behavioral interview response about managing high-stakes, ambiguous, and time-sensitive analytics requests using an enhanced STAR format.

    BehavioralBehavioralStakeholder ManagementPrioritizationData Quality
  • StringsEasyAuto-graded
    Render Payment Records as Boxed Receipt Cards

    Turn a list of parsed payment records into fixed-layout text cards, testing whitespace trimming, exact decimal rounding, and precise string formatting while preserving order.

    Stringsstring-formattingdecimalparsingsimulation
  • System DesignMediumModel answer
    Designing a Resilient Asynchronous Task Worker with Exponential Backoff and DLQ

    Architect a reliable queue consumer system featuring exponential backoff retries, dead-letter queues, idempotent execution, and crash recovery mechanisms.

    System Designsystem-designdistributed-systemsqueuesfault-tolerance
  • System DesignHardModel answer
    Designing a Multi-Modal Document & Asset Vector Search System

    Architect an end-to-end vector storage and retrieval engine for processing user documents, images, and videos, supporting multi-modal search under low-latency constraints.

    System Designsystem-designmachine-learningvector-searchmultimodal
  • Data Structure DesignEasyAuto-graded
    Simulate a Constant-Time LRU Eviction Cache

    Process a series of lookup and insert requests on a fixed-size Least Recently Used (LRU) key-value cache in O(1) time per operation.

    Data Structure Designdesign-dslinked-listsarrays
  • Greedy & IntervalsEasyAuto-graded
    Maximum Affordable Items Within Budget

    Determine the maximum collection of items that can be purchased given individual item costs and a total spending limit.

    Greedy & Intervalsgreedysortingarrays
  • Data Structure DesignMediumModel answer
    Design a Database Connection Pool

    Implement a resource-managing connection pool wrapper that enforces pool limits, reuses idle connections, and handles lease lifecycles safely.

    Data Structure Designdesign-dsobject-oriented-designresource-managementconcurrency
  • Machine LearningHardModel answer
    Designing a Scalable Audio Content Moderation Pipeline

    Architect an ML inference and labeling ecosystem for real-time speech moderation, covering cascading stages, calibration, metadata storage, and active learning loops.

    Machine Learningmachine-learningsystem-designaudio-processingactive-learning