KatInterview

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

Interview Practice Problems

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

5995
Problems
2220
Auto-graded
15
Topics
270
Added today

Showing 5491–5520 of 5995 results

  • Math & Bit ManipulationEasyAuto-graded
    Maximum Group Size with Shared Bit Position

    Tests ability to use bit manipulation and counting to find the largest group of numbers sharing at least one common bit.

    Math & Bit Manipulationbit-manipulationgreedycounting
  • Data Structure DesignMediumAuto-graded
    Two-Stack Document Editor with Cursor Operations

    Tests efficient implementation of a mutable text buffer with insertion, deletion, and bidirectional cursor movement using dual-stack architecture.

    Data Structure Designstacksstring-manipulationsimulation
  • Data Structure DesignMediumModel answer
    Binary Protocol for String Dictionary Persistence

    Build a binary encoder and decoder for string dictionaries with strict validation of format integrity, size bounds, and key ordering.

    Data Structure Designserializationbinary-protocolsvalidationdata-structures
  • Greedy & IntervalsMediumAuto-graded
    Task Assignment with Skill Matching and One Flexible Worker

    Tests greedy selection within independent groups and optimal placement of a single unrestricted resource.

    Greedy & Intervalsgreedyhash-tablesorting
  • Data Structure DesignMediumModel answer
    Build Directory Tree Operations with Path Parsing

    Implement directory creation and listing for an in-memory hierarchical structure with automatic parent creation and path normalization.

    Data Structure Designtreetriepath-parsingstring-manipulation
  • System DesignHardModel answer
    Build a Frame-Perfect Video Playback Engine

    Implement playback logic for a video player that maintains 25fps timing using thread-safe coordination between frame reading and rendering operations.

    System Designconcurrencythreadingproducer-consumerreal-time-systems
  • Heaps, Sorting & SearchMediumAuto-graded
    Running Median from Integer Stream

    Tests ability to maintain order statistics efficiently in a streaming context using heap-based data structures.

    Heaps, Sorting & Searchheapsstreaming-algorithmsdata-structures
  • StringsMediumAuto-graded
    Palindromic Substring Counter

    Tests ability to identify and count all palindromic substrings using center expansion and understanding of linear-time optimization techniques.

    Stringspalindromestwo-pointersstring-matching
  • Math & Bit ManipulationHardAuto-graded
    Count Lattice Paths Avoiding Forbidden Cells

    Tests combinatorics by counting monotone lattice paths from (0,0) to (m,n) that avoid a given set of forbidden grid cells, using inclusion-exclusion over path prefixes.

    Math & Bit Manipulationcombinatoricsdynamic programmingmathbit manipulation
  • System DesignMediumModel answer
    Build a React Autocomplete Component with Async Search

    Create a reusable autocomplete input component in React that queries a search API, handles asynchronous responses, and displays suggestions efficiently.

    System Designreactcomponent-designapi-integrationcaching
  • Machine LearningHardModel answer
    Build a Return-Forecasting Pipeline with Sentiment and Price Signals

    Design an end-to-end ML system that predicts next-day stock returns from news sentiment and price data, covering features, model choice, backtesting, and drift monitoring.

    Machine Learningtime-seriesfeature-engineeringbacktestingconcept-drift
  • Arrays & HashingMediumAuto-graded
    Draw a Grid Chart from Coordinate Pairs

    Tests array processing, coordinate mapping, and ASCII visualization by building a bordered grid from unsorted integer coordinates.

    Arrays & Hashingarraysstringshash-mapvisualization
  • BehavioralMediumModel answer
    Deadlines, Feedback, and Going the Extra Mile

    A behavioral screen testing how you handle time pressure, missed commitments, critical feedback, self-initiated improvements, and root-cause investigations.

    Behavioralleadershipprioritizationaccountabilitycommunication
  • BehavioralMediumModel answer
    Walk Me Through Your Biggest Contribution on a Recent Project

    Demonstrate ownership, technical judgment, and measurable impact by narrating your specific role in a project you can defend in depth.

    BehavioralownershipSTAR methodimpactcommunication
  • Statistics & ExperimentsMediumModel answer
    Measuring Ad Product Impact and Paywall Optimization

    Design a causal study for a new advertiser optimization feature with limited sample size, then evaluate reducing a profile-view paywall threshold.

    Statistics & Experimentsexperimentationcausal-inferencepower-analysisselection-bias
  • System DesignMediumModel answer
    Design a Table Booking Platform

    Design a scalable system for booking dining tables that handles concurrent requests and prevents conflicts.

    System Designdistributed-systemsconcurrencydatabasescaching
  • Greedy & IntervalsMediumAuto-graded
    Minimum Days to Execute Sequential Jobs with Cooldown

    Simulates executing a fixed sequence of jobs where re-running the same job requires waiting through a cooldown period.

    Greedy & Intervalsgreedyhash-mapsimulation
  • System DesignMediumModel answer
    Design a Reverse-Image Search Index at Scale

    Design a system that accepts an image query and returns visually similar images from a corpus of billions, covering storage, indexing, and retrieval trade-offs.

    System Designsystem designstorageindexingvector search
  • Data Structure DesignHardAuto-graded
    Build a Virtual Directory Tree with File Operations

    Design and implement a tree-based in-memory filesystem supporting directory creation, file I/O, listing, and deletion via absolute paths.

    Data Structure Designtreeshash-tablesdata-structure-designpath-traversal
  • BehavioralMediumModel answer
    Digital Wallet Growth Strategy and Diagnostics

    Define success metrics for a mobile payment platform, choose between two competing features, and diagnose why usage stagnates despite efficiency gains.

    Behavioralproduct-metricsprioritizationroot-cause-analysis
  • Arrays & HashingHardAuto-graded
    Manual Gradient Computation: Cumulative Products and Softmax Loss

    Implement forward and backward passes for cumulative multiplication and stable softmax cross-entropy loss without autograd libraries.

    Arrays & Hashinggradientsbackpropagationnumerical-stabilitychain-rule
  • System DesignMediumModel answer
    Design a Portfolio Aggregation Service

    Build a system that combines investment data from multiple third-party sources into a unified view with clear freshness indicators and consistent calculations.

    System Designdata-ingestioneventual-consistencyfinancial-systems
  • System DesignMediumModel answer
    Design a User Photo Library and Album Service

    Design a scalable backend for storing, organizing, and retrieving user photos and albums, covering API design, storage, data modeling, and reliability.

    System Designobject-storagecdnshardingmetadata
  • Machine LearningMediumModel answer
    Panel Data Cross-Validation with Temporal Embargo

    Design a time-series CV splitter for panel data that prevents entity leakage across train/test sets using an embargo period and supports geographic holdout folds.

    Machine Learningcross-validationtime-seriespanel-dataleakage-prevention
  • Machine LearningMediumModel answer
    Build a Multimodal Content Moderation Pipeline

    Design an ML system to classify and filter harmful user-generated content across text, images, and video at high throughput with strict latency constraints.

    Machine Learningml-system-designmultimodalcontent-moderationproduction-ml
  • System DesignMediumModel answer
    Design a Time-Series Metrics Collection and Alerting Platform

    Build a system that ingests numeric measurements from distributed services, persists them efficiently, powers query dashboards, and triggers alerts.

    System Designtime-seriesdistributed-systemsdata-modelingstorage
  • Machine LearningHardModel answer
    Real-Time Transaction Fraud Scoring System

    Design a complete ML pipeline to classify payment fraud in under 100ms, addressing delayed labels, streaming features, class imbalance, and cost-aware decisions.

    Machine Learningfraud-detectionreal-time-mlimbalanced-classificationfeature-engineering
  • Machine LearningMediumModel answer
    Designing a Fair Real Estate Valuation System

    Design an ML pipeline to predict residential property values for mortgage lending, addressing bias, temporal validation, and regulatory requirements.

    Machine Learningfairnessregressionfeature-engineeringmodel-validation
  • Arrays & HashingEasyAuto-graded
    Binomial Probability of Exactly k Successes

    Tests whether a candidate can implement the binomial PMF, including the combination factor, a bias parameter, and out-of-range edge cases.

    Arrays & Hashingprobabilitycombinatoricsmath
  • SQL & DataMediumAuto-graded
    Aggregate Sales Report from Transaction Records

    Tests the ability to perform group-by aggregation (sum, count, average) over a list of dicts, mimicking SQL GROUP BY with multiple metrics and tie-breaking output order.

    SQL & Datagroup-by aggregationdata cleaninglist of dicts