KatInterview

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

Interview Practice Problems

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

5993
Problems
2220
Auto-graded
15
Topics
270
Added today

Showing 5521–5550 of 5993 results

  • BehavioralMediumModel answer
    Navigating Technical Disagreements with Colleagues

    Demonstrate how you handle technical conflicts with peers or managers while maintaining relationships and driving project success.

    Behavioralleadershipcollaborationconflict-resolution
  • System DesignMediumModel answer
    End-to-End Flow: What Happens When a Shell Runs a Command

    Trace every layer from keypress to process exit when a shell executes a directory-listing command, covering process creation, syscalls, and filesystem interactions.

    System Designlinuxoperating-systemssyscallsfilesystem
  • Data Structure DesignMediumAuto-graded
    Crawling Worm Simulation: Track Length After Each Step

    Tests precise deque-plus-set simulation of a growing worm on a grid, including the exact ordering of tail removal and collision detection.

    Data Structure Designsimulationdequehash-set
  • Data Structure DesignMediumModel answer
    Ad Targeting Engine and Route Optimization

    Build an ad matcher with inverted indexes and a delivery router using shortest-path precomputation plus TSP heuristics.

    Data Structure Designindexinggraphsoptimizationtrade-offs
  • Machine LearningMediumModel answer
    PCA, Normalization, and Logistic Regression Fundamentals

    Explain dimensionality reduction, preprocessing choices, backpropagation mechanics, threshold tuning, and domain-constrained modeling in a classification context.

    Machine Learningdimensionality-reductionpreprocessingoptimizationclassification
  • Statistics & ExperimentsMediumModel answer
    Designing Metrics and Experiments for a Messaging Feature Launch

    Define success metrics, guardrails, and an experimental framework to evaluate whether a new messaging product achieves its goals.

    Statistics & Experimentsexperimentationmetricsproduct-analyticsa-b-testing
  • System DesignHardModel answer
    Backend Design for Employee Records and Payroll Audit System

    Build a backend architecture for managing employee data and payroll changes with strong audit trails, concurrency safety, and regional customization support.

    System Designdatabasesconcurrencyapi-designdata-modeling
  • System DesignMediumModel answer
    Client-Side Filtering and Sorting with Async Data

    Design a frontend component that fetches paginated data, applies client-side search and sort, and handles race conditions efficiently.

    System Designreactfrontend-architecturestate-management
  • System DesignMediumModel answer
    Building a Resilient Payment Processing Service

    Design a payment calculation service that maintains SLAs during dependency failures and choose appropriate storage for financial data correctness.

    System Designreliabilitystorage-architecturepaymentssla
  • Stacks & QueuesHardAuto-graded
    Validate Nested Chemical Formula Expressions

    Tests deep bracket-matching with multiplicative expansion rules by validating and evaluating a chemical-formula-style string with nested parentheses and numeric multipliers.

    Stacks & Queuesstacksbracket matchingparsingsimulation
  • Arrays & HashingMediumAuto-graded
    Three-Part Coding Challenge: Justification, Wildcards, and Pathfinding

    Evaluates text formatting with precise spacing rules, wildcard-based string validation, and grid traversal with path reconstruction.

    Arrays & Hashingstringsgraphsbfsgreedy
  • BehavioralMediumModel answer
    Learning From Interview Feedback

    Describe how you extract lessons from interview experiences, adjust your approach mid-process, and build a measurable plan to address identified weaknesses.

    Behavioralself-awarenesscommunicationgrowth-mindset
  • SQL & DataEasyAuto-graded
    Summarize Monthly Sales by Region from Transaction Records

    Tests group-by aggregation: given a list of transaction dicts, compute total revenue and order count per region per month, returned as a sorted list of summary records.

    SQL & Datadata aggregationdictionariessorting
  • Data Structure DesignMediumModel answer
    Build a Thread-Safe In-Memory Cache with TTL Expiry

    Design and implement a concurrent key-value store that supports optional per-entry expiration, lazy eviction, and background memory reclamation.

    Data Structure Designconcurrencyttlheapeviction
  • Data Structure DesignMediumModel answer
    Design a Fluent Query Builder with Chaining and Join Support

    Build a Python query builder that chains table, select, where, alias, and join methods, rendering to SQL strings that match an exact expected format.

    Data Structure Designapi-designfluent-interfacesql-generation
  • Data Structure DesignMediumModel answer
    Rate Limiter with Continuous Drainage Pattern

    Build a request throttler that drains at a fixed rate, accepting requests only when space exists, first single-threaded then thread-safe.

    Data Structure Designrate-limitingconcurrencytime-based-statetesting
  • Statistics & ExperimentsHardModel answer
    Computing Probabilities for Dice Sums with Dependent Outcomes

    Determine the probability that two six-sided dice total seven, first under independence, then when the second die's distribution depends on the first roll.

    Statistics & Experimentsprobabilityconditional-probabilitydiscrete-distributions
  • Statistics & ExperimentsHardModel answer
    Design and Evaluate Courier Incentive Programs with A/B Testing

    Design metrics, experiments, and causal reasoning to assess three driver-side programs in a two-sided delivery marketplace before deciding whether to launch them.

    Statistics & Experimentsa/b testingexperimentationmetric designmarketplace
  • Data Structure DesignMediumAuto-graded
    Query Engine for Content Moderation Event Logs

    Build an efficient query system over sorted violation records supporting policy lookups, post lookups, and time-based aggregations using indexing and binary search.

    Data Structure Designhash-mapbinary-searchindexing
  • Statistics & ExperimentsMediumModel answer
    Investigate a Sharp Drop in Marketplace Delivery Volume

    Diagnose an 18% single-day decline in completed deliveries using structured funnel analysis, hypothesis testing, and merchant impact quantification.

    Statistics & Experimentsroot-cause-analysisfunnel-decompositionmetric-debugging
  • StringsMediumAuto-graded
    Word Lookup in a Large Lexicon

    Tests efficient membership checking using hash sets, understanding amortized preprocessing costs, and recognizing algorithmic trade-offs for large-scale lookups.

    Stringshash-tablessetsoptimizationmembership-testing
  • StringsMediumModel answer
    Generator-Based Parser for Structured Log Streams

    Build a memory-efficient Python generator that parses log records with timestamps and key-value pairs, handling quoted strings with escapes.

    Stringsparsinggeneratorsstring-processingtext-processing
  • System DesignMediumModel answer
    Design a Real-Time Social Activity Feed

    Design a scalable system that delivers a personalized, real-time activity feed to millions of users with low latency and high throughput.

    System Designsystem designreal-timefeedsfan-out
  • Arrays & HashingMediumAuto-graded
    Select Log Records Meeting Severity Criteria

    Tests understanding of ordinal comparison over structured fields versus naive text matching and proper handling of malformed input.

    Arrays & Hashingfilteringstring-handlingedge-cases
  • Heaps, Sorting & SearchMediumModel answer
    Budget-Constrained Selection and Graph Distance Query

    Find how many sorted items fit within a budget using prefix sums and binary search, then parse a graph and compute the shortest path between two nodes.

    Heaps, Sorting & Searchbinary-searchdijkstraprefix-sumshortest-path
  • Machine LearningHardModel answer
    Design and Analyze a Counterfactual Online Experiment for a Ranking Model

    Design an online experiment to measure the causal impact of a new ML ranking model, handling interference, novelty effects, and metric trade-offs at scale.

    Machine Learningmachine learningexperimentationrankingcausal inference
  • StringsEasyAuto-graded
    Minimum Single-Character Edits to Make a Palindrome

    Tests whether a candidate can count the minimum number of single-character insertions or deletions needed to transform a string into any palindrome.

    Stringsstringsdynamic programmingedit operations
  • Trees & GraphsMediumAuto-graded
    Identify the Nearest Shared Ancestor of Two Tree Nodes

    Tests tree reconstruction and ancestor tracking to locate the closest common parent of two given values in a binary tree.

    Trees & Graphsbinary-treetree-traversalancestor-search
  • StringsMediumAuto-graded
    Find Next Palindrome Number

    Tests string manipulation and numeric logic to determine if a number is palindromic and compute the next larger palindrome efficiently.

    Stringspalindromestring-manipulationgreedy
  • Linked ListsEasyAuto-graded
    Flatten a Linked List in K-Group Level Order

    Tests pointer manipulation by collecting nodes from a singly linked list in chunks of k, then reversing the order within each chunk's values to produce a flat list.

    Linked Listslinked listsk-group operationspointer manipulation