KatInterview

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

Interview Practice Problems

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

6027
Problems
2232
Auto-graded
15
Topics
272
Added today

Showing 1021–1050 of 3795 results

  • BehavioralHardModel answer
    Behavioral Loop: Disagreement, Failure, and Project Ownership

    Tell three structured stories: a substantive disagreement you resolved, a serious mistake you owned and fixed systemically, and a project you led, defended in technical depth.

    Behavioralbehavioralleadershipconflict-resolutionpostmortem
  • BehavioralMediumModel answer
    Articulating Scope, Impact, and Leadership Under Line-Item Challenges

    Learn how to present technical ownership, trade-offs, and career advancement under intense line-item questioning without losing composure or structure.

    BehavioralBehavioralLeadershipTechnical CommunicationPromotion
  • System DesignMediumModel answer
    Build a Timed and Recurring Task Execution Platform

    Design a service that accepts tasks, fires them immediately, at a future time or on a cron schedule, runs them on a worker fleet, and tracks each execution reliably.

    System Designsystem-designschedulerdistributed-systemscron
  • System DesignHardModel answer
    Design an Enterprise Knowledge Base RAG Platform

    Architect an end-to-end Retrieval-Augmented Generation system handling millions of internal documents, low latency, real-time updates, and strict document-level security.

    System Designragvector-searchsystem-designmachine-learning
  • BehavioralMediumModel answer
    Mastering Behavioral and Leadership Scenarios in Engineering Interviews

    A comprehensive guide to structured response frameworks for technical behavioral interviews, focusing on ownership, collaboration, prioritization, and technical trade-offs.

    Behavioralleadershipbehavioralprioritizationconflict-resolution
  • BehavioralMediumModel answer
    Turning a Fuzzy Analytics Question into a Decision-Ready Study

    Describe a research project you led that began with an unclear goal, covering scoping, data checks, analysis, stakeholder updates, and a recommendation that states where it may fail.

    Behavioralbehavioralambiguitystakeholder-managementdata-validation
  • System DesignMediumModel answer
    Fermi Estimate: Daily Video Egress for a Global Streaming Site

    Estimate how many exabytes a worldwide video platform delivers to viewers each day, using viewers, watch time, bitrate and overhead, then validate the result with independent checks.

    System Designfermi-estimationcapacity-planningback-of-envelopebandwidth
  • Machine LearningMediumModel answer
    Next-Month Purchase Model: Leak-Free Pipeline and AUC Evaluation

    Build a reproducible stratified-split pipeline with a gradient-boosted classifier for repeat-purchase prediction, report held-out AUC, and propose two ways to improve generalization.

    Machine Learninggradient-boostingscikit-learncross-validationauc
  • SQL & DataMediumModel answer
    Design an Idempotent Incremental Data Pipeline for Big Data Tables

    Explain how to build a robust, idempotent daily incremental ingestion workflow that handles duplicates, backfills, and schema validation on large relational tables.

    SQL & Datadata-engineeringsqletldata-pipelines
  • System DesignHardModel answer
    Build a Multi-Team GPU Cluster Platform for Distributed Training

    Design a shared platform where several teams run distributed GPU training jobs, with all-or-nothing placement, fair quotas, fast failure recovery and a storage layer that avoids I/O stalls.

    System Designml-infrastructuregang-schedulingfault-tolerancecheckpointing
  • Statistics & ExperimentsMediumModel answer
    Optimizing and Testing the Candidate Team-Matching Pipeline

    Define funnel conversion metrics, establish monitoring targets, and design an A/B test with power calculation and decision rules to improve candidate-to-team matching.

    Statistics & Experimentsfunnel analyticsexperiment designsample size calculationab testing
  • BehavioralMediumModel answer
    Deep Dive: Highlighting Your Most Impactful Work and Key Lessons

    Structure a compelling narrative detailing your most significant engineering achievement, highlighting personal ownership, technical depth, key learnings, and strategic retrospective changes.

    Behavioralbehavioralproject-deep-diveleadershipcommunication
  • Data Structure DesignMediumModel answer
    Design a Phone-Style Calculator in the Browser

    Build a four-function calculator UI with immediate-execution semantics, tricky key sequences handled correctly, and a layout close to a familiar mobile calculator.

    Data Structure Designstate-machinefrontendjavascriptedge-cases
  • Statistics & ExperimentsEasyModel answer
    Designing Evaluation Framework for Checkout Donation Feature

    Design a metrics hierarchy, user-level experiment plan, and launch decision framework for an optional checkout donation feature on a food-delivery platform.

    Statistics & ExperimentsExperiment DesignA/B TestingMetricsMarketplace
  • StringsMediumModel answer
    Filter Words Reachable From a Target by One Character Swap

    Given a target string and a list of words, return every word that becomes the target after swapping at most one pair of characters in that word, keeping input order.

    Stringsstringstwo-pointerscharacter-frequencybuddy-strings
  • System DesignMediumModel answer
    React Component That Fetches a List Safely When Its Endpoint Changes

    Build a React component that fetches a list from a prop-supplied URL inside useEffect, with correct loading, empty, error and success states and no stale-response bugs.

    System DesignreactuseEffectrace-conditionsabortcontroller
  • SQL & DataMediumModel answer
    Calculating Monthly Theme Engagement and Revenue Trends in SQL

    Define usage growth metrics and write SQL to analyze monthly active users, new user acquisition, and discrete monthly revenue for custom app themes.

    SQL & Datasqltime-seriesaggregationwindow-functions
  • System DesignHardModel answer
    Backend Design for a City-Scale Taxi Dispatch Service

    Design the backend for a multi-city on-demand taxi app: dispatch, live driver tracking, dynamic pricing, durable payments and trip records, and resilience at millions of daily users.

    System Designsystem-designgeospatial-indexingreal-time-streamingdistributed-systems
  • Data Structure DesignEasyModel answer
    Log a Button's Label on Click with the DOM Event API

    Wire up a click handler on a page button that logs its label to the console, and explain what the event object's target property refers to, including nested-element cases.

    Data Structure Designjavascriptdomevent-handlingfrontend-fundamentals
  • BehavioralHardModel answer
    Pitching an AI Work Assistant Across Search, Mail, Docs and Calendar

    Make the product case for an AI assistant embedded in search, email, documents and calendar: user value now, a 15-year trajectory, an executive pitch, metrics and risks.

    Behavioralproduct-strategyproduct-senseai-assistantvision
  • BehavioralMediumModel answer
    Walking Through Your Own Project and Its Toughest Technical Problem

    Prepare a project deep dive that shows what you owned, one hard technical problem in depth, the options you weighed, and the evidence that your fix worked.

    Behavioralbehavioralproject-deep-diveownershiptechnical-communication
  • System DesignMediumModel answer
    Choosing Between C++ and Go for Server-Side Systems

    Compare C++ and Go for backend work across memory, concurrency, error handling, language design and tooling, and justify which one fits a given service.

    System Designcppgolanglanguage-comparisonconcurrency
  • SQL & DataMediumModel answer
    Top Content Category by Country and Weekly Power-User Share

    Write SQL to find each country's top-impression category and the share of weekly active users who were active on 4+ days and used 3+ distinct features on a single day.

    SQL & Datasqlwindow-functionsaggregationcte
  • Machine LearningMediumModel answer
    Designing a User-Generated Game Recommendation System

    Architect an end-to-end recommendation backend and ML pipeline for a large platform offering user-created interactive experiences, emphasizing cold-start strategies and multi-task learning.

    Machine Learningrecommendation-systemsmachine-learningsystem-designmulti-task-learning
  • System DesignMediumModel answer
    Engagement Analytics Pipeline: Daily and Monthly Unique Users

    Design a pipeline that ingests app events and serves daily and monthly distinct-user counts, with sliced dashboards, correct handling of late data, and sound data-quality and privacy practices.

    System Designsystem-designdistinct-countinghyperloglogstreaming
  • System DesignMediumModel answer
    Real-Time Heavy Hitters Pipeline for a High-Volume Event Stream

    Design a distributed streaming service that reports the K most frequent keys over sliding and tumbling windows, with fast queries, hot-key tolerance and replay-safe results.

    System Designstreamingtop-kcount-min-sketchspace-saving
  • Stacks & QueuesEasyModel answer
    Run a Tiny Postfix Command Interpreter with Error Codes

    Simulate a small stack machine over whitespace-separated tokens, handling arithmetic, DUP, POP and PRINT, and stop at the first error while keeping the output produced so far.

    Stacks & Queuesstacksimulationparsingerror-handling
  • SQL & DataMediumModel answer
    Calculate Early User Retention Rates by Subscription Tier

    Compute 7-day retention rates across user subscription plans using PostgreSQL, handling distinct user counts, edge cases, and four-decimal precision.

    SQL & Datasqlpostgresqlaggregationsjoins
  • System DesignEasyModel answer
    Mastering Core Java and Spring Framework Fundamentals

    A comprehensive technical overview of essential Java language mechanics, concurrency models, SOLID architecture, and Spring Framework core concepts for backend engineers.

    System Designjavaspringconcurrencysolid-principles
  • Data Structure DesignEasyModel answer
    Immutable Folder Tree State with Safe Move and Delete

    Design a normalized, immutable state model for a nested folder tree and implement add, move (with cycle rejection) and recursive delete efficiently for deep trees.

    Data Structure Designtreestate-managementimmutabilitycycle-detection