KatInterview

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

Interview Practice Problems

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

6025
Problems
2231
Auto-graded
15
Topics
273
Added today

Showing 991–1020 of 6025 results

  • Data Structure DesignMediumAuto-graded
    Replay Bounded Cache Commands with Recency Eviction

    Simulate a fixed-capacity key-value store that evicts its stalest entry, replaying a command log in O(1) per step using a hash map and recency ordering.

    Data Structure Designlru-cachehash-mapdoubly-linked-listsimulation
  • BehavioralMediumModel answer
    Resetting Scope When the Delivery Date Cannot Be Met

    Tell a story about a deadline your team could not realistically meet, showing how you used numbers and trade-off options to reach an agreed, quality-preserving plan.

    Behavioralbehavioralstakeholder-managementestimationprioritization
  • System DesignMediumModel answer
    Build a Regression-Testing Platform for LLM Agent Releases

    Design a platform where agent-building teams can test a new prompt or model against a baseline and see the effect on answer quality, tool usage, latency and cost before shipping.

    System Designml-system-designllm-evaluationagentsllm-as-judge
  • System DesignMediumModel answer
    Build a Live Bike Rental Platform: Tracking, Holds and Unlocks

    Design a bike rental backend where riders see nearby bikes live, hold one, unlock it, and end the trip, covering telemetry ingestion, geospatial lookup and race-free reservations.

    System Designsystem-designgeospatialconcurrencyiot
  • Data Structure DesignMediumAuto-graded
    Replay a Recency-Evicting Cache from a Command Log

    Simulate a fixed-size cache that evicts the least recently used entry, by replaying text commands and collecting the answers to lookups in order.

    Data Structure Designlru-cachehash-mapordered-dictsimulation
  • System DesignMediumModel answer
    Building a Duplicate-Safe Money Movement Service with Settlement Matching

    Design a service that moves customer funds through external bank rails without double-charging, tracks each transfer's lifecycle, and repairs mismatches using daily bank settlement files.

    System Designidempotencypaymentsstate-machinereconciliation
  • Data Structure DesignMediumModel answer
    Design a Safe, Idempotent Auto-Approval Engine for Order Refunds

    Design and code a refund decision engine that applies pluggable rules, never refunds more than was paid, and handles retried or concurrent requests without paying twice.

    Data Structure Designdomain-modelingidempotencyrules-enginemoney-handling
  • System DesignMediumModel answer
    Designing a Bot Dispatch Service for Joining Online Meetings

    Design the backend between a web UI and a pool of meeting-joining bots that safely assigns bots, tracks session state, and recovers from failures at 100K concurrent sessions.

    System Designsystem-designqueuesleasesidempotency
  • BehavioralHardModel answer
    Choosing a Training Platform Across Competing Teams

    Lead HR, Security, Legal and Finance to a single choice among a basic vendor, a premium vendor and an in-house build, with guardrails, a decision memo, fallbacks and 90-day metrics.

    Behavioralstakeholder-managementtrade-offsdecision-memodata-governance
  • BehavioralMediumModel answer
    Choosing a Post-Layoff Path With a Pending Green Card

    Decide among seven post-layoff options for a visa-dependent engineer using explicit criteria, a weighted matrix, a clear recommendation, and a 90-day plan with pivot triggers.

    Behavioraldecision-makingcareer-planningtrade-offsrisk-assessment
  • BehavioralMediumModel answer
    Walking Through Your Hardest Project From Start to Finish

    Practice presenting one demanding project end to end: goal, data, people, your role, obstacles, trade-offs, validation and measurable outcomes.

    Behavioralbehavioralproject-deep-diveownershipleadership
  • Data Structure DesignMediumAuto-graded
    Replay Operations on a Bounded Recency-Evicting Store

    Simulate a fixed-size key-value store that evicts the stalest entry, replaying a list of get/put commands and returning each command's result.

    Data Structure Designhash-maplinked-listordered-dictsimulation
  • Machine LearningMediumModel answer
    ML System Evaluation, Sequence Architectures, Distribution Drift, and Optimizers

    A deep-dive technical interview covering model validation strategies, metrics, sequence model trade-offs (RNNs vs. Transformers), distribution shift detection, and optimizer selection.

    Machine Learningevaluation metricssequence modelingdistribution shiftoptimizers
  • System DesignMediumModel answer
    Build a Recommendation Engine Pairing Freelance Experts with Open Jobs

    Design a low-latency engine that recommends eligible, available freelancers for client jobs, handles newcomers with no track record, and learns from downstream hiring outcomes.

    System Designsystem-designrecommendationrankingcold-start
  • Trees & GraphsEasyAuto-graded
    Group Hierarchy Members by Depth Level

    Construct an adjacency graph from reporting links and perform a level-order traversal to group node IDs by depth.

    Trees & Graphstrees-graphsbfshash-map
  • Greedy & IntervalsMediumAuto-graded
    Minimum Time Slots for Cooldown-Constrained Jobs

    Compute the shortest timeline needed to run labeled jobs when equal labels must be separated by a cooldown, using frequency counting and a greedy frame argument.

    Greedy & Intervalsgreedycountingschedulingmath
  • System DesignMediumModel answer
    Building a Secure Login and Session Service for a Cloud App

    Design a login and session service for web and API clients using email and password, extensible to federated identity, with strong credential handling, abuse defenses, and a plan for 10x growth.

    System Designauthenticationsessionssecurityscalability
  • Math & Bit ManipulationMediumAuto-graded
    Two-Segment Rider Model: Weekly Activity, Posterior, Forecast

    Compute three probabilities from a two-group mixture model: at-least-one-success over n days, a Bayesian posterior after all-success streaks, and a posterior predictive forecast.

    Math & Bit Manipulationprobabilitybayesmixture-modelcomplement-rule
  • BehavioralMediumModel answer
    Navigating High-Stakes Technical Complexity and Architectural Trade-offs

    Demonstrate technical leadership, data-driven decision-making, and self-awareness by explaining how you resolved a high-stakes engineering challenge using the STAR methodology.

    Behavioralbehavioraltechnical leadershiparchitecturetrade-offs
  • Machine LearningMediumModel answer
    Validating a Smile Classifier in a Photo Library App

    Design a plan to prove a smile detection feature in a photo app works, covering labels, metrics, hard cases, fairness, pipeline tests, rollout and monitoring.

    Machine Learningmodel-evaluationground-truthfairnessprecision-recall
  • Trees & GraphsMediumAuto-graded
    Best Plot After Reclaiming a Single Water Tile

    Find the largest connected land region achievable by turning at most one water cell into land, which tests component labeling and merging neighbors without double counting.

    Trees & Graphsgridflood-fillconnected-componentsdfs
  • System DesignMediumModel answer
    Demystifying Relational Database Transactions and Isolation

    Understand the core mechanics of database transactions, the ACID guarantees, ANSI isolation levels, concurrency anomalies, and underlying MVCC implementation details.

    System Designdatabasesacidconcurrencytransactions
  • Trees & GraphsMediumAuto-graded
    Two Teams With Rival Pairs Kept Apart

    Decide whether a set of people can be placed into two teams so that no rival pair shares a team, which tests graph 2-coloring across possibly disconnected components.

    Trees & Graphsgraphbipartitebfscoloring
  • Data Structure DesignMediumAuto-graded
    Simulate a Cursor Editor with Sticky-Column Vertical Moves

    Replay a log of editor commands (type, backspace, move in four directions, render) on a single-cursor multi-line buffer, with a column that persists across vertical moves.

    Data Structure Designsimulationdesigncursorstrings
  • Data Structure DesignMediumAuto-graded
    Versioned Key-Field Store with Expiry and Time Travel

    Simulate a timestamped two-level store with expiring values, conditional updates, sorted prefix scans and historical lookups, driven by a batch of operations.

    Data Structure Designdesignhash-mapbinary-searchttl
  • Trees & GraphsMediumAuto-graded
    Render a Nested Folder Structure as Indented Lines

    Traverse a nested dictionary tree in pre-order, tracking depth to build indented lines with a fixed marker, preserving the given child order.

    Trees & Graphstree-traversaldfsstackstrings
  • Machine LearningMediumModel answer
    Self-Information, Log Bases, and Perplexity in Language Models

    Define the information content of a token, explain how the log base sets its unit, link it to cross-entropy and perplexity, and spot common mistakes when reading or comparing these numbers.

    Machine Learninginformation-theorylanguage-modelingcross-entropyperplexity
  • Data Structure DesignHardModel answer
    Design a Tree-Based Storage Simulator with Auto-Renaming

    Build an in-memory file store that auto-creates parent folders, renames clashing files with the lowest free numeric tag, and lists folder contents in ASCII order.

    Data Structure Designdesigntreehash-setstrings
  • System DesignMediumModel answer
    Optimizing Airport Wi-Fi Monetization and Guest Connectivity

    Redesign the product strategy for a venue-based internet service offering limited free access followed by paid tiers to increase revenue and passenger satisfaction.

    System Designproduct-designpricing-strategyfunnel-optimizationuser-experience
  • Math & Bit ManipulationHardAuto-graded
    Count Substrings Rearrangeable into Palindromes

    Given a list of strings, count the number of contiguous substrings in each string whose characters can be permuted to form a valid palindrome.

    Math & Bit Manipulationbit-manipulationhash-tablestringsprefix-sum