KatInterview

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

Interview Practice Problems

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

6005
Problems
2225
Auto-graded
15
Topics
273
Added today

Showing 5311–5340 of 6005 results

  • BehavioralEasyModel answer
    Manager Self-Assessment: Technical Ownership and Team Conflict

    Describe your own technical decisions on a project you managed, then explain how you handled friction with a direct report.

    Behavioralengineering-managementleadershipconflict-resolution
  • Data Structure DesignHardModel answer
    Build a Function Pipeline and JSON Serialization Mixin

    Create a left-to-right function compositor and a mixin class that serializes object attributes to JSON with configurable privacy filtering.

    Data Structure Designpythonclosuresmetaprogrammingserialization
  • Dynamic ProgrammingMediumAuto-graded
    Check if Text Can Be Built from Dictionary Words

    Tests dynamic programming with Trie optimization to determine if a string can be fully decomposed into a sequence of dictionary words.

    Dynamic Programmingtriestring-processingmemoization
  • Trees & GraphsMediumModel answer
    Timestamp When All Users Form a Single Connected Group

    Given users and a chronological log of pairwise interactions, determine when everyone first becomes transitively connected through interaction chains.

    Trees & Graphsunion-findgraph-connectivitytemporal-graphdisjoint-set
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Binomial Cumulative Probability for Limited Supply

    Tests understanding of binomial distributions and computing cumulative probabilities for discrete independent events.

    Math & Bit Manipulationprobabilitybinomial-distributioncombinatorics
  • BehavioralMediumModel answer
    Four-Story Senior Round: Ownership, Mentorship, and Decisions

    Prepare four distinct stories demonstrating senior-level ownership: a technical project, developing another engineer, navigating a design trade-off, and resolving disagreement.

    Behavioralleadershipcommunicationdecision-making
  • System DesignHardModel answer
    Distributed Cache and Compute Service Architecture

    Design a thread-safe in-memory cache with LRU eviction and a CPU-intensive reconciliation service that handles traffic spikes and manages computational limits.

    System Designcachingconcurrencyscalabilitydistributed-systems
  • BehavioralMediumModel answer
    Building Technical Standards and Team Ownership

    Discuss your engineering principles, describe a quality-speed tradeoff decision, and explain how you foster ownership, peer collaboration, and sustained team health.

    Behavioralleadershipteam-managementtechnical-judgment
  • Stacks & QueuesMediumAuto-graded
    Collapse Matching Neighbors

    Tests stack-based simulation to eliminate adjacent equal characters iteratively until no more cancellations are possible.

    Stacks & Queuesstackstring-manipulationsimulation
  • Data Structure DesignEasyModel answer
    Build an Inventory Manager with Nested Recipe Expansion

    Implement a service that models recipes with nested dependencies, validates acyclic graphs, and atomically decrements raw inventory when orders succeed.

    Data Structure Designobject-oriented-designgraph-validationatomicityconcurrency
  • SQL & DataEasyAuto-graded
    Compute Running Departmental Budget Consumed

    Tests ability to implement window-style running totals by computing each row's cumulative spend within its department, ordered by date then transaction ID.

    SQL & Datawindow functionsrunning totalsdata processing
  • Trees & GraphsHardAuto-graded
    Feature Deployment with Integrity Checks and Dependency Ordering

    Verify configuration integrity using polynomial hashing, detect dependency cycles with DFS, and produce a lexicographically-ordered topological deployment sequence.

    Trees & Graphsgraph-traversaltopological-sorthashingcycle-detection
  • StringsMediumAuto-graded
    IPv4 Address Checker and Builder

    Tests string parsing, validation rules, and backtracking to check and generate valid IPv4 addresses from digit strings.

    Stringsbacktrackingvalidationstring-processing
  • Machine LearningHardModel answer
    Components and Semantics of MDPs

    Define the formal structure of a Markov decision process and explain how policies generate trajectories that accumulate discounted return.

    Machine Learningreinforcement-learningdecision-processesmarkov-property
  • Greedy & IntervalsEasyAuto-graded
    Intercept Aircraft and Count User Sessions

    Tests greedy deadline scheduling for time-critical interception tasks and event grouping with gap-based sessionization.

    Greedy & Intervalsgreedysortingsimulationevent-processing
  • System DesignMediumModel answer
    Design a Distributed File Sync and Sharing Platform

    Build the architecture for a multi-client file storage system with hierarchical organization, collaborative sharing, chunked uploads, and cross-device synchronization.

    System Designdistributed-systemsstorageapi-designconsistency
  • Trees & GraphsHardAuto-graded
    Build Frequency-Based Binary Codec

    Tests ability to construct a deterministic frequency tree with tie-breaking, generate prefix-free binary codes, and encode/decode strings.

    Trees & Graphstreesheapsgreedybit-manipulation
  • Machine LearningHardModel answer
    Build a Real-Time Comment Ranking System

    Design an ML-powered system to rank comments in discussion threads, balancing quality, safety, and latency at scale.

    Machine Learningrankingml-system-designreal-timecontent-moderation
  • Arrays & HashingMediumAuto-graded
    Find Longest Subarray with Bounded Absolute Difference

    Tests the ability to use two pointers alongside auxiliary tracking structures to find the longest contiguous subarray where max−min does not exceed a given threshold.

    Arrays & Hashingarraystwo pointerssliding window
  • Data Structure DesignMediumAuto-graded
    Build a Min-Heap Data Structure from Scratch

    Evaluates ability to implement a complete binary min-heap using array indexing, bubble-up, and bubble-down operations without library support.

    Data Structure Designheaps-sortingarraysdata-structures
  • Dynamic ProgrammingMediumAuto-graded
    Expected Wait Time and Coin Combination Counting

    Tests probability reasoning with independent random events and dynamic programming for combinatorial counting with unlimited resources.

    Dynamic Programmingprobabilityexpected-valuecombinatoricsunbounded-knapsack
  • StringsMediumAuto-graded
    Minimum Window Containing All Target Characters

    Tests the ability to efficiently find the smallest substring containing all required characters using sliding window and hash tables.

    Stringssliding-windowhash-maptwo-pointers
  • Arrays & HashingHardAuto-graded
    Expected Wait Time for Repeating Train Schedules

    Calculate and compare expected waiting times for transit services with different repeating gap patterns using length-biased sampling.

    Arrays & Hashingprobabilityexpected-valueinspection-paradox
  • Greedy & IntervalsMediumAuto-graded
    Optimal 1D Coverage: Minimize Worst-Case Distance to k Centers

    Tests binary-search-on-answer combined with a greedy interval feasibility check to solve the 1D k-center minimax placement problem.

    Greedy & Intervalsbinary-searchgreedysorting
  • StringsMediumModel answer
    Plain-Text to HTML: Paragraphs, Blockquotes, and Strikethrough

    Write a function that converts a plain-text string to HTML with paragraphs, soft line breaks, blockquotes, and strikethrough, handling all edge cases correctly.

    Stringsparsingstring-processingtwo-pass
  • BehavioralEasyModel answer
    Explain a Technical Concept to Someone Learning It

    Demonstrate your ability to break down a technical idea clearly, using examples and checking comprehension in a brief teaching session.

    Behavioralcommunicationmentorshiptechnical-explanation
  • Data Structure DesignMediumModel answer
    Build a Social Payment Platform with Friend Connections

    Implement an in-memory system that handles user registration, friendship management, and peer-to-peer money transfers with proper validation.

    Data Structure Designobject-oriented-designhash-tablesstate-management
  • System DesignMediumModel answer
    Diagnosing Performance Bottlenecks and Planning Infrastructure Scale

    Debug a backend service that degrades under load, then calculate the infrastructure needed to support given traffic assumptions.

    System Designcapacity-planningperformanceinfrastructurescalability
  • System DesignHardModel answer
    BI Connection Strategy and Filter Execution Order

    Choose connection modes, tune query performance, and understand filter precedence for dashboards over large datasets in business intelligence platforms.

    System Designbusiness-intelligencedata-architectureperformance-optimization
  • Stacks & QueuesHardAuto-graded
    Check Balanced Brackets and Find Tree Level Width

    Tests stack-based matching for nested brackets and BFS position tracking to compute maximum horizontal distance in a binary tree.

    Stacks & Queuesstackbfstree-traversalstring-validation