KatInterview

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

Interview Practice Problems

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

6089
Problems
2257
Auto-graded
15
Topics
277
Added today

Showing 2041–2070 of 6089 results

  • Heaps, Sorting & SearchMediumModel answer
    Design and Analyze an Intentionally Inefficient Correct Sorting Algorithm

    Propose a fully correct yet highly inefficient sorting algorithm, prove its termination and correctness, and derive its time and space complexity.

    Heaps, Sorting & Searchsortingcomplexity-analysiscombinatoricsrecursion
  • Heaps, Sorting & SearchMediumAuto-graded
    Weighted Distribution Sampling from Uniform Draws

    Validate probability weights and map pre-generated uniform float values to discrete outcomes using prefix sums and binary search.

    Heaps, Sorting & Searcharraysbinary-searchmathvalidation
  • Greedy & IntervalsEasyAuto-graded
    Summarize Integer Ranges into String

    Process an unorganized array of integers by sorting, deduplicating, and formatting contiguous numerical ranges into a compact string.

    Greedy & Intervalsarrayssortingintervalsstrings
  • BehavioralMediumModel answer
    Explain a Core Technical Concept to a Junior Engineering Mentee

    Demonstrate technical mastery, audience adaptation, and structured communication by explaining database indexing or async programming to a junior colleague.

    Behavioraltechnical communicationmentorshipsystem design fundamentalsdatabase indexing
  • Trees & GraphsEasyAuto-graded
    Collect Every File Path from a Nested Directory Tree

    Traverse a nested directory dictionary depth-first and build the full slash-joined path for each file, following precise joining and ordering rules.

    Trees & Graphsdfstree-traversalrecursionstrings
  • Arrays & HashingMediumAuto-graded
    Per-Unit Coupon Pricing with Half-Even Cent Rounding

    Total a shopping cart where each coupon discounts one unit of its item, with percent discounts rounded half-to-even in exact integer arithmetic.

    Arrays & Hashinghash-mapsimulationroundinginteger-math
  • BehavioralMediumModel answer
    Presenting Your Top Engineering Accomplishment

    Learn how to structure and present your most impactful technical project in a machine learning or systems engineering interview using the extended STAR framework.

    Behavioralbehavioralleadershipproject-walkthroughtrade-offs
  • BehavioralMediumModel answer
    Defending Ownership of Your Current Project in an Interview

    Explain the project you currently drive in clear terms, then show with concrete decisions, risks and accountability why you act as its owner and not simply a contributor.

    Behavioralbehavioralownershipleadershipproject-narrative
  • Statistics & ExperimentsHardModel answer
    Evaluating Short-Form Video Integration into a Social Newsfeed

    Define a framework to measure impact, set up metrics and guardrails, design an A/B test, and mitigate network interference when adding short videos to a newsfeed.

    Statistics & ExperimentsA/B TestingProduct MetricsNetwork EffectsSystem Design
  • Data Structure DesignMediumModel answer
    Designing Dynamic Load Balancers: Round-Robin and Consistent Hashing

    Implement a resilient round-robin request balancer that handles dynamic server membership, followed by a consistent hashing router to maintain key affinity.

    Data Structure Designdesign-dshashingconcurrencybinary-search
  • System DesignHardModel answer
    Designing a Scalable Mixed-Latency Multi-Tenant Workflow Engine

    Architect a multi-tenant orchestration engine handling high-throughput fast I/O tasks alongside long-running LLM tasks with tenant fairness and tiered state storage.

    System Designsystem-designdistributed-systemsqueuesstorage-architecture
  • SQL & DataEasyModel answer
    Pivot Quarterly Crypto Sales and Yearly Totals in SQL

    Write an efficient SQL query to aggregate quarterly activity and overall yearly stats per cryptocurrency, preserving coins with zero transactions.

    SQL & Datasqlaggregationjoinspivoting
  • System DesignHardModel answer
    Designing Asynchronous Systems: Queues, NoSQL Stores, and Concurrency

    Analyze message queues, delivery semantics, push vs. pull models, NoSQL vs. relational databases, and distributed concurrency controls including deadlock resolution.

    System Designsystem-designmessage-queuesnosqlconcurrency
  • BehavioralMediumModel answer
    Walk Through Your Most Impactful Engineering Projects

    Present a past software project end to end: the problem, your ownership, key decisions, obstacles, success metrics, results and lessons learned, in a structured and defensible way.

    Behavioralbehavioralproject-deep-diveownershipimpact-metrics
  • System DesignHardModel answer
    Design a Cloud IDE System for Browser-Based Code Execution

    Architect a cloud-based development environment enabling real-time browser code editing, interactive terminal streaming, sandboxed execution, and workspace state persistence at scale.

    System Designsystem-designcloud-idesandboxingwebsockets
  • Statistics & ExperimentsMediumModel answer
    Sizing Sydney's Flower Shops and Quoting a Market on the Count

    Estimate how many walk-in florist shops are in Greater Sydney using two independent methods, quote a bid/ask on the count, then revise after a trade and a partial registry count.

    Statistics & Experimentsfermi-estimationmarket-makingbayesian-updatingadverse-selection
  • Trees & GraphsMediumModel answer
    Build a Collapsible JSON Tree Renderer in React

    Design and implement a React component to display nested JSON with collapsible nodes, indentation, and syntax highlighting for primitive types.

    Trees & GraphsReactJSONTreeFrontend
  • Statistics & ExperimentsMediumModel answer
    Flash-Sale Order Burst: Triage, Decision Policy and Safer Promos

    Triage a suspicious burst of flash-sale orders, set priced approve/hold/reject rules under chargeback and review-capacity limits, then redesign the promo and plan a safe rollout.

    Statistics & Experimentsfraud-analyticsdecision-thresholdscost-matrixexperiment-design
  • Math & Bit ManipulationMediumAuto-graded
    Aggressive Wagering: Chance of Hitting the Goal Before Going Broke

    Model a state-dependent betting strategy as a Markov chain and solve absorption probabilities, including cycles, via a linear system.

    Math & Bit Manipulationprobabilitymarkov-chainlinear-algebragaussian-elimination
  • Arrays & HashingEasyAuto-graded
    Compute Post-Match Standardized Mean Differences

    Evaluate post-matching covariate balance by computing the absolute standardized mean difference across features.

    Arrays & Hashingstatisticsmath-bitsarrays
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Product Mix Profitability Metrics

    Computes baseline and mix-shifted unit profit averages, per-unit margin delta, and overall impact on profit given total volume.

    Math & Bit Manipulationmatharrays
  • System DesignMediumModel answer
    Designing a High-Throughput Order Management & Execution System

    Design a scalable retail brokerage order management system handling limit/market orders, cancellations, concurrency-safe account balances, and edge cases like lost/duplicate fill reports.

    System Designsystem-designdistributed-systemsconcurrencyfintech
  • Data Structure DesignMediumAuto-graded
    Banned-Word Review Screener with Per-User Strike Counts

    Simulate a stateful screening service driven by an operation log: whole-token, case-insensitive banned-word checks, replaceable word lists, and per-user flagged-review tallies.

    Data Structure Designhash-sethash-mapsimulationstrings
  • Arrays & HashingEasyAuto-graded
    Rollout Impact: Diff-in-Diff Estimate with Baseline Drift Check

    Aggregate per-group, per-window means from daily records, compute a difference-in-differences estimate, and flag baseline drift between two pre-period sub-windows.

    Arrays & Hashinghashingaggregationstatisticsdate-windows
  • System DesignMediumModel answer
    Design and Implement a 2x3 React Post Grid with API Integration

    Build a 2x3 React grid component for display feeds, integrate data loading with proper state management, and explain React hook mechanics.

    System Designreactfrontendcss-gridhooks
  • Data Structure DesignMediumModel answer
    Refactoring and Hardening a Driver Dispatch Service

    Identify anti-patterns in legacy dispatch assignment code, implement fixes, introduce domain types, and design for thread-safety.

    Data Structure Designrefactoringthread-safetyobject-oriented-designclean-code
  • Statistics & ExperimentsHardModel answer
    Building a Fair Scorecard for Last-Mile Couriers

    Design a measurement system that evaluates couriers fairly across very different routes and conditions, going beyond raw parcel counts and elapsed time.

    Statistics & Experimentsmetrics-designnormalizationmixed-effects-modelsfairness
  • System DesignMediumModel answer
    Design a Real-Time Driver Tracking and Nearby Location Service

    Architect a low-latency ingestion and spatial indexing system for tracking real-time vehicle locations and serving proximity queries at high scale.

    System Designsystem-designgeospatialin-memory-databasestream-processing
  • System DesignHardModel answer
    Design a Collaborative LLM Prompt Workbench with Live Streaming

    Design a multi-tenant web tool where teams author prompts, run them on external LLMs with streamed output, version and compare results, and track cost, latency, and safety.

    System Designsystem-designstreamingmulti-tenancyidempotency
  • Heaps, Sorting & SearchMediumAuto-graded
    Determine the K-th Highest Score in an Unsorted Array

    Find the k-th largest value in an unsorted array of integers without fully sorting the input.

    Heaps, Sorting & Searcharrayssortingdivide-and-conquerquickselect