KatInterview

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

Interview Practice Problems

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

5986
Problems
2219
Auto-graded
15
Topics
271
Added today

Showing 3451–3480 of 3767 results

  • Data Structure DesignMediumModel answer
    Restaurant Query and Order Analytics System

    Design data structures and algorithms to query restaurants by price and distance, then compute order statistics and rankings over time windows.

    Data Structure Designdata-structuresalgorithmstime-seriesheap
  • SQL & DataMediumModel answer
    Improve a Pandas Pipeline: Validation, Testing, and Packaging

    Fix defects in a CSV processing script, refactor for testability with type hints and input checks, write unit tests, and package with Conda.

    SQL & Datapandasrefactoringtestingdata-validation
  • System DesignMediumModel answer
    Build a Real-Time Error Aggregation Service with Top-K Tracking

    Design a distributed system that ingests exception logs from microservices, groups similar errors, and maintains a live top-10 most common exceptions dashboard.

    System Designdistributed-systemsstreamingdata-pipelineaggregation
  • Machine LearningHardModel answer
    Hourly Demand Forecasting for Shared Mobility Systems

    Build a model to forecast hourly demand at individual stations in a bike-sharing network, handling time-series structure, censored observations, and overfitting risks.

    Machine Learningtime-seriesfeature-engineeringoverfittingdemand-forecasting
  • SQL & DataMediumModel answer
    Design and Query a Retail Order Database

    Build a PostgreSQL schema for orders, write insert statements, compute revenue aggregates with outer joins, filter recent purchases, and update coupon fields.

    SQL & Datasqlschema-designaggregationjoins
  • BehavioralHardModel answer
    Describing Your Technical Background and Recent Work

    Prepare to explain your career trajectory, technical interests, and a recent project in detail during a conversation with a hiring manager.

    Behavioralcommunicationtechnical-depthcareer-narrative
  • BehavioralMediumModel answer
    Debug and Secure Shell Command Patterns

    Diagnose failure modes in two Unix shell patterns and rewrite them with proper error handling, security practices, and stream management.

    Behavioralunixshelldebuggingsecurity
  • Machine LearningMediumModel answer
    Build a Document-Grounded Q&A Assistant for One Domain

    Design an enterprise conversational system that answers questions from a curated knowledge base with citations, handles multi-turn dialogue, and escalates when uncertain.

    Machine Learningragnlpconversational-aiinformation-retrieval
  • System DesignMediumModel answer
    Relational Schema for Multi-Tenant Permission System

    Design a normalized database schema supporting users, roles, permissions, role inheritance, and both global and resource-scoped access control.

    System Designdatabase-designauthorizationnormalizationschema-design
  • BehavioralMediumModel answer
    Resolving Cross-Functional Trade-offs with Data

    Explain how you handled conflicting goals between teams, defined measurable success criteria, structured validation, and aligned stakeholders across time zones.

    Behavioralleadershipcollaborationexperimentationstakeholder-management
  • BehavioralMediumModel answer
    Production-Ready Python: Language Trade-offs and Pipeline Hardening

    Discuss Python's engineering trade-offs for data processing and describe how to transform a working prototype into a robust production pipeline.

    Behavioralsoftware-engineeringproduction-systemspythondata-pipelines
  • Statistics & ExperimentsHardModel answer
    Evaluating Impact of Non-Randomized Feature Launches

    Design an observational study to measure causal effects when a product feature rolls out gradually across regions without randomization.

    Statistics & Experimentscausal-inferenceexperimentationdifference-in-differencesobservational-studies
  • BehavioralMediumModel answer
    Influencing Stakeholders and Navigating Workplace Conflict

    Demonstrate your ability to gain buy-in from non-technical partners and resolve difficult interpersonal or organizational situations through structured storytelling.

    Behavioralcommunicationleadershipstakeholder-managementconflict-resolution
  • BehavioralMediumModel answer
    Handling Resource Constraints on a Critical Deliverable

    Describe a situation where you shipped something important with limited time, people, or budget, explaining how you prioritized, communicated trade-offs, and delivered results.

    Behavioralproject-managementprioritizationstakeholder-communicationleadership
  • Data Structure DesignMediumModel answer
    Build an In-Memory Meal Catalog with Search and Updates

    Create a service that stores meal records with auto-incrementing IDs, normalized fields, atomic modifications, and filtered search with multiple sort orders.

    Data Structure Designdata-structuresstate-managementindexingnormalization
  • BehavioralMediumModel answer
    Communicating Your Professional Identity and Career Direction

    Articulate your current responsibilities, reasons for exploring new opportunities, and what matters to you in workplace culture and mission.

    Behavioralcommunicationself-awarenesscareer-goals
  • Data Structure DesignMediumModel answer
    Credit System with Expiration and Time-Ordered Replay

    Build a credit tracking system where allocations expire, spending prioritizes earliest expiration, and operations arrive out of chronological order.

    Data Structure Designheaptime-orderingdata-structure-design
  • Data Structure DesignMediumModel answer
    Design a Fixed-Heap Memory Manager

    Build malloc and free over a fixed byte array, comparing allocation strategies and analyzing fragmentation trade-offs.

    Data Structure Designmemory-managementdata-structurescomplexity-analysis
  • StringsEasyModel answer
    HTTP Field Extraction with IP Address Frequency Analysis

    Retrieve text fields from multiple endpoints, parse and validate IPv4 addresses, then rank them by occurrence frequency.

    Stringsstring-parsinghttpvalidationfrequency-counting
  • System DesignMediumModel answer
    Build a Real-Time Team Chat System Architecture

    Architect a scalable backend for workplace messaging with channels, direct messaging, history retrieval, and live delivery guarantees.

    System Designdistributed-systemsmessagingwebsocketsscalability
  • BehavioralMediumModel answer
    Articulating Career Transition and Role Fit

    Explain your motivation for joining a specific company, map your skills to their business challenges, and address departure logistics professionally.

    Behavioralcareer-motivationself-awarenessprofessional-communication
  • Machine LearningHardModel answer
    Streaming ETA System with GPS Signal Processing

    Build a low-latency pipeline that continuously updates driver ETAs using only GPS pings and trip events, handling noisy location data and grid transitions.

    Machine Learningml-system-designstreaminggpsreal-time
  • System DesignHardModel answer
    Building a Scalable Multi-Tenant Event Reservation Platform

    Design a backend system for managing event reservations across multiple venue types with pluggable business logic, concurrency safety, and transactional integrity.

    System Designsystem-designconcurrencytransactionsextensibility
  • Math & Bit ManipulationHardModel answer
    Build an IP Address Calculator Without Libraries

    Create a utility to parse, compute offsets, and analyze CIDR blocks for IPv4 and IPv6 addresses using integer arithmetic, no networking libraries allowed.

    Math & Bit Manipulationbit-manipulationparsingnetworkinginteger-arithmetic
  • System DesignHardModel answer
    Real-Time Impression Frequency Control System

    Build a low-latency distributed system that enforces rolling-window impression limits across multiple dimensions and time horizons for an advertising platform.

    System Designdistributed-systemsreal-timeapi-design
  • System DesignMediumModel answer
    Real-time Market Data Dispatch System

    Design an in-memory event matching engine that routes incoming market events to registered subscribers based on filtering criteria.

    System Designconcurrencydata-structureslow-latencypub-sub
  • Data Structure DesignMediumModel answer
    Build a Rule-Based Board Game State Manager

    Design an immutable, thread-safe game engine with pluggable validation rules for a turn-based strategy game.

    Data Structure Designobject-oriented-designimmutabilitystrategy-patternconcurrency
  • Statistics & ExperimentsMediumModel answer
    Designing an Experiment Metrics Framework for a New Feature

    Design a complete metrics framework to evaluate a new product feature, including success metrics, guardrails, cannibalization analysis, and multiple-testing controls.

    Statistics & Experimentsexperimentationmetricshypothesis-testingproduct-analytics
  • SQL & DataMediumModel answer
    Aggregate Session Time by Category Over a Rolling Week

    Calculate the percentage of total usage time for each application category across the most recent seven days of user sessions.

    SQL & Datasqldata-analysisaggregationjoins
  • BehavioralHardModel answer
    Describe a Difficult Situation You Resolved

    A behavioral interview question asking you to walk through a problem you encountered, your approach to solving it, the outcome, and what you learned.

    Behavioralbehavioralleadershipproblem-solving