KatInterview

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

Interview Practice Problems

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

6016
Problems
2229
Auto-graded
15
Topics
274
Added today

Showing 841–870 of 3787 results

  • Machine LearningMediumModel answer
    Evaluating Feature Imputation Methods for Linear Regression Models

    Analyze and contrast mean imputation, empirical sample imputation, and missingness indicator techniques in linear models across MCAR, MAR, and MNAR data mechanisms.

    Machine Learningmachine-learningstatisticsdata-preprocessingfeature-engineering
  • System DesignHardModel answer
    Designing a Scalable Distributed Key-Value Store

    Architect a fault-tolerant, horizontally scalable key-value storage system utilizing consistent hashing, tunable quorums, and automated data rebalancing.

    System Designsystem-designconsistent-hashingdistributed-systemsfault-tolerance
  • Data Structure DesignMediumModel answer
    Build an Expiring LRU Cache with an Injectable Clock

    Design a fixed-capacity cache with least-recently-used eviction and per-entry expiry, and justify your data structures, tests and complexity.

    Data Structure Designlru-cacheordereddictttlunit-testing
  • System DesignMediumModel answer
    Investigate Autonomous Fleet Charging Failure and Degradation

    Analyze noisy charging logs, define unbiased reliability metrics, formulate root cause logic in SQL, and design a debugging playbook for slow-charging sessions.

    System Designsystem-designdata-engineeringroot-cause-analysismetrics
  • Statistics & ExperimentsHardModel answer
    Experiment Plan for a Shareable Playlists-Style Collections Feature

    Plan an experiment for a shareable collections feature on a social app: metrics, randomization with spillover, sample size, stopping rules, logging, revenue estimate, and no-launch reasons.

    Statistics & Experimentsab-testingexperiment-designpower-analysisnetwork-effects
  • Math & Bit ManipulationHardModel answer
    Balanced Character Rewriting and Offline Grid Threshold Queries

    Solve parity-based string transformation via bitmasks and handle offline 2D range count queries using dynamic point-update data structures.

    Math & Bit Manipulationbit-manipulation2d-fenwick-treesweep-lineprefix-sum
  • Statistics & ExperimentsMediumModel answer
    Evaluating Causal Impact of Optional Hardware Devices

    Learn how to measure causal impact when users self-select into optional hardware purchases using propensity scores and quasi-experiments.

    Statistics & Experimentscausal inferencepropensity score matchingdifference-in-differencesquasi-experiments
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • System DesignHardModel answer
    Build a Fault-Tolerant Money Transfer Ledger at Scale

    Design a distributed ledger for account-to-account transfers that stays strictly consistent, avoids overdrafts and duplicate charges, and survives crashes at any point.

    System Designsystem-designledgeracididempotency
  • Stacks & QueuesMediumModel answer
    Simulated Stock Trading Signals and Two-Char String Reduction

    Solve two streaming state problems: daily stock trading based on sign patterns in O(N) time and two-character substring elimination using an in-place stack.

    Stacks & Queuesstacks-queuesarraysstringsmath-bits