KatInterview

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

Interview Practice Problems

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

6025
Problems
2231
Auto-graded
15
Topics
273
Added today

Showing 2791–2820 of 3794 results

  • Trees & GraphsMediumModel answer
    Assemble a Binary Tree from Parent-Child Edge Records

    Given a list of directed labeled edges, reconstruct the binary tree they describe and return its root node.

    Trees & Graphsbinary-treehash-maptree-construction
  • BehavioralHardModel answer
    Narrate Your Career Arc, Defend a Competitive Moat, Right-Size a Presentation

    Walk through your career with hypotheses and outcomes, analyze a company's durable advantage with evidence, and describe a high-stakes presentation trade-off under deadline.

    Behavioralcareer narrativecompetitive strategystakeholder communicationdata science
  • SQL & DataMediumModel answer
    SQL Window Functions, Join Types, and Python Aggregation

    Demonstrate SQL window functions, join semantics, ranking functions, string aggregation, and Python dict-based accumulation over transactional row data.

    SQL & Datawindow-functionsjoinsaggregationpython
  • BehavioralHardModel answer
    Adaptability, Leadership, and Feedback in Engineering Roles

    Demonstrate cultural adaptability, cross-functional leadership, inclusive communication, and a concrete feedback loop in a multi-part behavioral interview.

    Behavioralleadershipculture-fitfeedbackcross-functional
  • BehavioralMediumModel answer
    Judgment, Prioritization, and Influence: Three Behavioral Prompts

    Three structured behavioral prompts testing how you reason under uncertainty, make deliberate trade-offs, and drive change without relying on formal authority.

    Behavioralbehavioralleadershipcommunicationinfluence
  • BehavioralMediumModel answer
    Helping an Underperforming Team Member During a Critical Deadline

    Describe how you've supported a colleague missing milestones on a time-critical project while protecting team productivity and morale.

    Behavioralleadershipteamworkmentorship
  • BehavioralMediumModel answer
    Roadmapping the Next Marketplace Feature for Third-Party Sellers

    A product-judgment exercise: pick one seller segment and one pain point, scope a prioritized v1, and define seller metrics with shopper guardrails.

    Behavioralproduct-strategyseller-experienceexperimentationprioritization
  • SQL & DataMediumModel answer
    Compare Acquisition Channels by Spend, Retention, and Early Revenue

    Write SQL to profile marketing channels across four dimensions: user counts, top spenders, cohort retention, and 90-day ARPU.

    SQL & Datawindow-functionscohort-analysisaggregationjoins
  • BehavioralMediumModel answer
    Articulating Career Motivation and Technical Projects

    Walk through your career goals, job search strategy, and a technical project in depth during an HR or culture-fit conversation.

    Behavioralcareer-motivationcommunicationtechnical-storytelling
  • System DesignMediumModel answer
    Caching and Inventory Architecture for a Vacation Rental Platform

    Design a multi-tier caching system for a high-traffic rental marketplace that serves fast search results while guaranteeing zero double-bookings through authoritative holds.

    System Designcachingdistributed-systemsconsistencyinventory-management
  • BehavioralMediumModel answer
    Navigating an Ethical Dilemma at Work

    Walk through a real workplace situation where you faced a genuine moral tension, how you reasoned through it, and what you did.

    Behavioralethicsintegrityescalationjudgment
  • StringsMediumModel answer
    Java String Interning, Identity, and Concatenation Costs

    Trace identity vs equality across literals, `new String`, `intern`, and constant folding, then compare loop `+`, `StringBuilder`, and `StringBuffer`.

    Stringsjavastring-poolimmutabilitystringbuilder
  • Machine LearningMediumModel answer
    Why L1 Regularization Zeros Out Coefficients but L2 Does Not

    Compare Lasso and Ridge penalties on a 500-feature regression model, explaining mathematically and geometrically why one produces sparse weights and the other does not.

    Machine Learningregularizationlassoridgelinear-regression
  • System DesignMediumModel answer
    TCP Three-Way Handshake: Spot the Valid State Claim

    Identify the one correct statement about TCP connection-establishment state transitions and explain why the other three are wrong.

    System DesignnetworkingTCPstate-machine
  • SQL & DataMediumModel answer
    Validate and Aggregate Subscription Event Data

    Profile a subscription events table to verify data integrity, then compute the earliest active date and most recent inactive date per subscription.

    SQL & Datasqlpandasdata-validationtime-series
  • Statistics & ExperimentsHardModel answer
    Diagnose a Disease with Cascading Conditional Probabilities

    Apply Bayes' theorem across two sequential tests to find the true posterior probability that a patient has a rare disease.

    Statistics & Experimentsconditional probabilityBayes theoremstatisticsprobability
  • BehavioralHardModel answer
    Rank Six Feature Ideas for an App You Actually Use

    Pick a mobile app you use weekly, propose six concrete improvements, size their impact, prioritize them under real constraints, and design an experiment for your top pick.

    Behavioralproduct thinkingprioritizationexperimentationestimation
  • System DesignMediumModel answer
    Design a Tree Storage Service with Descendant Lookup

    Design a REST API and backing storage model to persist a node hierarchy and efficiently retrieve all descendants of any node.

    System DesignREST APIdatabase schematreespagination
  • Machine LearningMediumModel answer
    Building a City-Specific Sports News Feed with LLM Summaries

    Design an ML system that ingests sports content, generates grounded summaries for local audiences, and personalizes delivery at scale.

    Machine Learningml-system-designragnlppersonalization
  • Statistics & ExperimentsMediumModel answer
    Modeling Engagement Durations and Rare Event Counts

    Derive and validate exponential session-length models and Poisson comment-count models, covering memorylessness, survival diagnostics, and overdispersion.

    Statistics & Experimentsprobability-distributionssurvival-analysispoissonoverdispersion
  • System DesignMediumModel answer
    Design a Recurring Task Scheduler with Pause and Resume

    Design a distributed service that registers one-time and cron-based tasks, dispatches them when due, and supports pausing and resuming schedules reliably.

    System Designschedulingdistributed-systemscronfault-tolerance
  • System DesignHardModel answer
    Streaming Analytics: Building a Live Product Popularity Service

    Design a distributed system that processes purchase event streams in real time and continuously exposes the most popular products across multiple time horizons.

    System Designstreamingdistributed-systemsanalyticsscalability
  • System DesignMediumModel answer
    Build a Cloud Storage System with Chunked Uploads and Permissions

    Architect a file-hosting platform separating content from metadata, supporting granular access rules and resumable multi-part uploads.

    System Designstoragedistributed-systemsapi-designupload
  • System DesignEasyModel answer
    Building a Foreground-Safe Stopwatch with Reliable UI Updates

    Design a small iOS stopwatch/SwiftUI app with a clear state machine, clock-derived elapsed time, main-thread updates, and sensible lifecycle handling.

    System Designiosswiftuistate-managementconcurrency
  • Heaps, Sorting & SearchHardModel answer
    Binary Search with Delayed Feedback Protocol

    Find a hidden number using binary search when each query returns the result of your previous guess instead of your current one.

    Heaps, Sorting & Searchbinary-searchalgorithmsfeedback-systems
  • Data Structure DesignMediumModel answer
    Extend a Python Abstract Pipeline with a Concrete File Processor

    Implement a concrete subclass inside a pre-built abstract framework that streams CSV input, transforms rows to JSON, and self-registers with a CLI factory.

    Data Structure Designobject-oriented-designabstract-base-classfile-iostreaming
  • Arrays & HashingMediumModel answer
    Sliding Tile Board: Merge Logic for All Four Directions

    Implement the slide-and-merge move for a 2048-style grid in all four directions, sharing a single merge routine across every direction.

    Arrays & Hashingarrayssimulationmatrix
  • StringsMediumModel answer
    Python Lists vs Tuples: Mutability, Memory, and Use Cases

    Compare Python lists and tuples across mutability, memory layout, hashability, and idiomatic use, including tricky edge cases.

    Stringspythondata-structuresmutabilityhashability
  • SQL & DataMediumModel answer
    Quarter-over-Quarter Revenue Analysis with Same-Store Metrics

    Build a SQL query that compares quarterly performance across different time periods, handling store openings/closings and computing both total and same-store growth rates.

    SQL & Datasqlaggregationtime-seriesanalytics
  • System DesignHardModel answer
    Write Path Internals: InnoDB, Cache Consistency, and TLS

    Trace a single HTTPS profile update through TLS negotiation, a Redis cache-aside layer, and InnoDB's WAL-based durability guarantees.

    System Designmysqlredistlsinnodb