KatInterview

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

Interview Practice Problems

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

6103
Problems
2259
Auto-graded
15
Topics
272
Added today

Showing 2341–2370 of 6103 results

  • Data Structure DesignMediumModel answer
    Design a Database Connection Pool

    Implement a resource-managing connection pool wrapper that enforces pool limits, reuses idle connections, and handles lease lifecycles safely.

    Data Structure Designdesign-dsobject-oriented-designresource-managementconcurrency
  • Machine LearningHardModel answer
    Designing a Scalable Audio Content Moderation Pipeline

    Architect an ML inference and labeling ecosystem for real-time speech moderation, covering cascading stages, calibration, metadata storage, and active learning loops.

    Machine Learningmachine-learningsystem-designaudio-processingactive-learning
  • System DesignMediumModel answer
    On-Call Playbook: Memory Alarm in a Card-Funding Service

    Walk through how you would triage, diagnose, mitigate, and follow up on a memory alert in a service that funds couriers' payment cards via a third-party provider and a Redis cache.

    System Designincident-responseobservabilitydebuggingredis
  • BehavioralHardModel answer
    Deep-Dive on a Major Project You Drove: Scope, Decisions, and Lessons

    Present a substantial engineering project end to end: constraints, your role, a key design trade-off, the toughest bug, how you verified results, and what you would change.

    Behavioralbehavioraltechnical-leadershipownershiparchitecture-tradeoffs
  • System DesignMediumModel answer
    Designing an Evaluation Framework for Local Language Models

    Design and implement a robust, extensible evaluation harness for local LLM endpoints with metrics, concurrency control, and fault tolerance.

    System Designsystem designmachine learningpythonasyncio
  • System DesignMediumModel answer
    Building a Crew Rostering Backend with Safe Shift Claiming

    Design a backend for posting, claiming, and locking restaurant work shifts that prevents double-claims and overlapping assignments while serving a heavily read schedule view.

    System Designsystem-designconcurrencydata-modelingcaching
  • Statistics & ExperimentsEasyModel answer
    Two Trial Offers: Chance of One Ride and of Lasting Loyalty

    Work out, for a rider shown two independently fair-or-unfair prices on day one, the chance of exactly one ride the next day and the chance they eventually become a permanent rider.

    Statistics & Experimentsprobabilitybinomialmarkov-chainfirst-step-analysis
  • Machine LearningHardModel answer
    Differentiable Routing Strategies for Mixture-of-Experts Models

    Explore techniques to make hard MoE routing differentiable, comparing straight-through estimation, Gumbel-Softmax, REINFORCE, and gate-scaling alongside auxiliary anti-collapse mechanisms.

    Machine Learningmixture of expertsgumbel softmaxreinforcegradient estimation
  • Data Structure DesignEasyAuto-graded
    Most Frequent Follower Lookup with Command Replay

    Simulate a train/predict command stream for a word-follower model, precomputing the top follower per word so each prediction is a single hash lookup, with a precise tie-break rule.

    Data Structure Designhash-mapdesignstringssimulation
  • Data Structure DesignMediumAuto-graded
    Simulate 2048 Moves with Scripted Tile Spawns

    Simulate a 4x4 sliding-tile merge game with scripted spawns, skipping spawns on no-op moves, then report the final board and whether any move remains.

    Data Structure Designsimulationmatrixstate-managementdeterministic-testing
  • Dynamic ProgrammingMediumAuto-graded
    Highest-Yield Consecutive Stretch in a Profit Log

    Find the largest total achievable by a non-empty run of adjacent integers, handling all-negative inputs and large sums, in one pass with constant extra space.

    Dynamic Programmingkadanesubarraydynamic-programmingarrays
  • SQL & DataMediumModel answer
    CTR Metrics with Deduplication Windowing and PR Model Evaluation

    Evaluate A/B experiment unique CTR using windowed SQL deduplication and analyze model precision-recall performance with weighted sample thresholds in Python.

    SQL & DataSQLWindow FunctionsPandasPrecision-Recall
  • System DesignMediumModel answer
    Building a Filterable Catalog Search with Live Facet Counts

    Design a billion-item catalog search service with relevance ranking, filters, accurate facet counts, stable pagination, and second-level freshness for fast-changing price and stock data.

    System Designsearchinverted-indexfacetingsharding
  • Arrays & HashingEasyAuto-graded
    Bayesian Origin Probability for Sampled Items

    Calculate the posterior probability that two black items came from a specific facility using Bayes' Theorem.

    Arrays & Hashingstatisticsprobabilitybayes-theorem
  • System DesignMediumModel answer
    Git, Docker, Python Environments and Modern C++ Essentials

    Explain a team Git workflow, Docker image practices, Python isolation and pinning, and core C++ idioms (RAII, moves, const), with reasons and trade-offs.

    System Designgitdockerpythoncpp
  • SQL & DataMediumModel answer
    Find Highest Weighted Venue Locations with Data Cleaning

    Compute top venue locations by summing vote weights using SQL and Python, while handling missing values, text normalization, and ties.

    SQL & DataSQLPythonData CleaningAggregation
  • Arrays & HashingEasyAuto-graded
    Overlap Ratio of Two Token Lists

    Compute the overlap ratio between the distinct strings of two lists using hash sets, with exact string matching and a defined result when both lists are empty.

    Arrays & Hashinghash-setsetsstringsedge-cases
  • Statistics & ExperimentsHardModel answer
    Detecting Structural Shifts, Building Counterfactuals, and Testing Interventions

    Detect structural shifts in time-series data, construct counterfactual predictions under non-stationary patterns, and design spillover-resistant validation experiments.

    Statistics & Experimentstime-serieschange-point-detectionab-testingcausal-inference
  • Math & Bit ManipulationHardModel answer
    Comprehensive Algorithmic Practice Set: Bitwise, Window, Monotonic Stack & Tree Operations

    A practice collection covering essential algorithms: bit manipulation, two pointers, monotonic stack, dynamic programming, binary search, tree path XORs, and graph re-rooting.

    Math & Bit Manipulationbit-manipulationmonotonic-stacktree-dpdynamic-programming
  • Greedy & IntervalsEasyAuto-graded
    Find Peak Event Density in Fixed Duration Window

    Determine the maximum number of recorded logs occurring within a contiguous time interval using a sliding window approach.

    Greedy & Intervalssliding-windowtwo-pointersarraysintervals
  • System DesignHardModel answer
    Design a Distributed Crossword Fill Engine

    Architect a scalable, fault-tolerant distributed system to solve large constraint-satisfaction crossword grid fills using parallel search strategies.

    System Designsystem-designdistributed-systemsconstraint-satisfactionparallel-computing
  • System DesignEasyModel answer
    Architecting Real-Time Data Sync with React and Firestore

    Architect a high-performance, cost-effective data retrieval strategy for a live fundraising application using React and Firestore.

    System Designreactfirebasefirestorearchitecture
  • Trees & GraphsMediumAuto-graded
    Hide Flagged Comment Threads for a Pet-Preference Reader

    Find all comments hidden from a reader when any flagged comment hides its whole reply subtree, handling unordered input, dangling parent IDs, and very deep chains.

    Trees & Graphstreedfshash-mapforest
  • BehavioralMediumModel answer
    Making Progress on a Project With Unclear Scope and Ownership

    Describe a time you moved forward on work with vague goals, requirements or ownership, and show how you cut uncertainty, paced decisions and kept stakeholders aligned.

    Behavioralbehavioralambiguityleadershipstakeholder-alignment
  • Math & Bit ManipulationEasyAuto-graded
    Determine Convergence of Digit-Square Sums

    Simulate a transformation that replaces a number with the sum of its squared digits, determining if it terminates at 1 or loops indefinitely.

    Math & Bit Manipulationmathhash-tabletwo-pointers
  • BehavioralHardModel answer
    Pitching Automated Unread Thread Pinning to Skeptical Engineers

    Deliver a structured pitch to persuade engineers to build auto-pinned unread chats, covering baseline metrics, architecture, performance budgets, and rollout guardrails.

    BehavioralStakeholder ManagementProduct SenseSystem ArchitectureA/B Testing
  • Machine LearningHardModel answer
    Build a Tiny Backpropagation Engine Over Torch Tensors

    Design a small tensor class that records a computation graph for add, mul, matmul, ReLU and sum, then runs reverse-mode differentiation to give correct gradients for every input.

    Machine Learningautogradbackpropagationreverse-mode-differentiationpytorch
  • BehavioralMediumModel answer
    Executive Behavioral: Elevator Pitch, Company Fit, and Stakeholder Trade-offs

    Craft compelling responses for behavioral questions targeting a Senior Product Manager role, focusing on career story, company alignment, and managing complex stakeholder trade-offs.

    BehavioralBehavioralProduct ManagementStakeholder ManagementTrade-offs
  • Statistics & ExperimentsHardModel answer
    Designing a Geo Experiment for a Seasonal Flu-Shot TV Flight

    Design a six-week local TV flight to lift flu vaccinations: pick and pair markets, define the KPI, choose a causal design, set media weight, run power math, and add guardrails.

    Statistics & Experimentsgeo-experimentcausal-inferencemedia-measurementpower-analysis
  • StringsMediumAuto-graded
    Group Digits of a Signed Integer with a Custom Delimiter

    Build a string from a signed 64-bit integer, placing a delimiter between each group of three digits from the right, with the minus sign kept in front, using manual digit handling.

    Stringsstringsmathformattingdigit-extraction