KatInterview

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

Interview Practice Problems

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

6056
Problems
2241
Auto-graded
15
Topics
273
Added today

Showing 1471–1500 of 6056 results

  • Data Structure DesignMediumModel answer
    How Hash Tables Handle Collisions, Deletes, and Growth

    Walk through hash table internals: index mapping, chaining versus linear probing, safe deletion, load-factor resizing, and when operations degrade from O(1) to O(n).

    Data Structure Designhash-tablecollision-resolutionlinear-probingload-factor
  • Stacks & QueuesMediumModel answer
    Troubleshooting Silent Execution in Python Async Workflows

    Analyze and fix a Python async script that finishes silently without invoking its async functions, and explore concurrent execution options with asyncio.

    Stacks & Queuespythonasyncioconcurrencydebugging
  • Machine LearningMediumModel answer
    Mechanics of Positional Encodings in Transformer Architectures

    Understand Transformer positional encodings, including self-attention permutation properties, sinusoidal vs. learned schemes, linear shift derivations, and relative methods.

    Machine Learningtransformerspositional-encodingattentiondeep-learning
  • System DesignMediumModel answer
    Design a Real-Time Gaming Leaderboard Engine

    Architect a high-throughput, low-latency leaderboard platform handling tens of millions of active players and millions of concurrent score updates.

    System Designsystem-designrediscachingdistributed-systems
  • Data Structure DesignHardModel answer
    Boolean Condition Trees for a Spending Policy Checker

    Design a data-driven policy engine whose rules combine field checks with nested AND, OR and NOT, covering representation, validation, missing-field behavior and explainable results.

    Data Structure Designexpression-treerules-enginevalidationboolean-logic
  • System DesignMediumModel answer
    Design a Real-Time IP Blacklist and CIDR Lookup Engine

    Design a scalable, low-latency API and propagation architecture to block malicious IP addresses and CIDR ranges across distributed edge nodes.

    System Designsystem-designcachingnetworkingdistributed-systems
  • Trees & GraphsMediumAuto-graded
    Tally Separate Clusters of Occupied Cells in a Grid

    Count groups of orthogonally touching '1' cells in a character grid, a connected-components task solved with an iterative flood fill or union-find.

    Trees & Graphsgraphbfsgridconnected-components
  • Data Structure DesignMediumAuto-graded
    Hourly Courier Pay Ledger with Settlement Watermark

    Simulate a payroll ledger that records work intervals, tracks accrued cost, and settles wages up to a cutoff time without double-paying.

    Data Structure Designdesignsimulationintervalsidempotency
  • Machine LearningEasyModel answer
    Core ML Fundamentals: Generalization, Imbalance, and Missingness

    A foundational machine learning assessment covering model capacity trade-offs, handling heavily skewed class distributions, and processing incomplete data features.

    Machine Learningbias-varianceclass-imbalancemissing-datamachine-learning
  • Arrays & HashingEasyAuto-graded
    Pair Sum Existence Check in an Integer List

    Decide whether any two elements at different positions in an integer list add up to a given value, testing hash-set lookups and careful handling of duplicates.

    Arrays & Hashinghash-settwo-sumarrayscomplement
  • Data Structure DesignMediumAuto-graded
    Replay Commands on a Fixed-Bucket Key-Value Store

    Simulate a hand-built key-value store with a fixed bucket count by replaying a command log, handling collisions and overwrites correctly without a built-in dictionary.

    Data Structure Designhash-tableseparate-chainingsimulationdesign
  • Data Structure DesignMediumModel answer
    C++ Polymorphism: Overridable Methods vs Mandatory Interface Methods

    Explain how C++ virtual and pure virtual functions differ, how vtable dispatch works, when a class is abstract, and how virtual destructors affect safe cleanup.

    Data Structure Designcpppolymorphismvtableabstract-classes
  • Machine LearningMediumModel answer
    Ranking a Design Gallery and Turning Prompts into Safe UI Snippets

    Design an ML system that ranks a creative community's feed and also converts natural-language requests into validated, safe HTML/CSS components, including evaluation and feedback loops.

    Machine Learningml-system-designrecommendationrankingllm
  • System DesignMediumModel answer
    Expose a Local FastAPI Service as Tools for a Voice AI Agent

    Design and harden two HTTP tool endpoints that let a hosted conversational agent store a user's reported problem and recite earlier ones, with a local server made reachable.

    System Designfastapillm-toolsapi-designidempotency
  • System DesignMediumModel answer
    Hierarchical Sliding-Window Throttle for Outbound Alerts

    Design a distributed throttle that accepts or rejects alerts using exact 10-minute rolling limits for a user, their team and their company, atomically and correctly across many stateless servers.

    System Designrate-limitingdistributed-systemssliding-windowatomicity
  • System DesignMediumModel answer
    Identify Duplicate Files Across a File System and Analyze System Bottlenecks

    Design an algorithm to find all groups of identical files in a directory tree while handling massive files, edge cases, and analyzing CPU versus disk I/O performance.

    System Designfile-systemhashingio-performanceconcurrency
  • BehavioralMediumModel answer
    Deciding Under Uncertainty: Acting Safely on Partial Information

    Describe a high-stakes engineering or product call you made without complete data, how you limited the downside, and what the result taught you.

    Behavioralbehavioraldecision-makingrisk-managementambiguity
  • SQL & DataMediumAuto-graded
    Analyze Live Streaming Telemetry and Viewing Events

    Process minute-level streaming activity and viewer events to calculate time-series metrics, category shares, month-over-month growth, and joined yearly summaries.

    SQL & Datadata-aggregationtime-seriesjoinsanalytics
  • System DesignHardModel answer
    Design a PDF-to-Markdown Document Conversion System

    Design a scalable, multi-stage document processing architecture to transform complex PDFs into Markdown across synchronous streaming and asynchronous batch workflows.

    System Designsystem-designmachine-learningdistributed-systemsstreaming
  • System DesignMediumModel answer
    Build a Multi-User Live Text Editor Backend

    Design a backend that lets many people edit one document at once with fast sync, offline tolerance, durable storage, and version history.

    System Designsystem-designreal-timecrdtoperational-transformation
  • Data Structure DesignMediumModel answer
    Design a Resilient In-Memory Task Queue with Worker Failure Handling

    Build a thread-safe, in-process job queue that handles worker crashes, lease timeouts, late reports, and retry bounds using deterministic testing mechanics.

    Data Structure Designdesign-dsstacks-queuesconcurrencythreads
  • Dynamic ProgrammingMediumAuto-graded
    Longest Eastward Chain of Cities from Raw CSV Text

    Parse CSV text with quoted fields, then find the longest chain of cities with increasing longitude and non-decreasing latitude, breaking ties by the smallest list of names.

    Dynamic Programmingcsv-parsinglongest-increasing-subsequencedag-dplexicographic-tiebreak
  • BehavioralMediumModel answer
    Writing Achievement Bullets, a Project Tour, and a Technical Walkthrough

    Prepare three short impact statements, a five-minute tour of your last two years of work, and a 30-minute project presentation that survives rapid, detailed technical follow-up questions.

    Behavioralbehavioralproject-storytellingownershipimpact
  • System DesignMediumModel answer
    Crash-Safe Refund Pipeline as a Resumable Task Graph

    Design a fault-tolerant orchestration service that runs a refund as a dependency graph of steps, survives worker crashes, avoids double refunds, and handles failure and versioning.

    System Designworkflow-engineidempotencyoutbox-patternsaga
  • System DesignMediumModel answer
    Build a Petabyte-Scale Blob Storage Service

    Design a distributed blob storage service with put, get, delete and list, covering metadata, data placement, multipart uploads and the trade-off between replication and erasure coding.

    System Designsystem-designdistributed-storageerasure-codingpartitioning
  • Data Structure DesignMediumAuto-graded
    Ticket Ranges: Find the Bucket Owning Each Draw

    Map integer draws to the index whose cumulative weight range contains them, using prefix sums and binary search, driven through a batch of init/query operations.

    Data Structure Designprefix-sumbinary-searchdesignbisect
  • Statistics & ExperimentsMediumModel answer
    Support Ticket Analytics: Root Causes, Refund Impact, Chatbot Test

    Join ticket, resolution and survey tables to find the worst complaint category, estimate a refund policy's causal effect from observational data, and design a chatbot A/B test.

    Statistics & Experimentsab-testingcausal-inferencesqlmissing-data
  • BehavioralEasyModel answer
    Recruiter Call: Your Pitch, Motivation, Traits, and Java Level

    Practice a recruiter screen for a Java-focused software engineer role: a short pitch, your motivation, two strengths, one weakness, and an honest Java self-rating backed by coursework.

    Behavioralbehavioralhr-screenself-introductionself-assessment
  • Dynamic ProgrammingMediumAuto-graded
    Optimal Closed Tour Cost Across Directed Locations

    Find the minimum cost to complete a full circuit starting and ending at node 0, visiting all other nodes exactly once with asymmetric leg costs.

    Dynamic Programmingdynamic-programmingbit manipulationgraph
  • Data Structure DesignMediumAuto-graded
    Closest Pair Gaps Between Words in a Fixed List

    Answer many closest-index-distance queries over a fixed word list by building a position index, precomputing same-word gaps, and binary searching the smaller list.

    Data Structure Designinverted-indexbinary-searchpreprocessinghash-map