KatInterview

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

Interview Practice Problems

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

5980
Problems
2215
Auto-graded
15
Topics
272
Added today

Showing 3541–3570 of 3765 results

  • Machine LearningMediumModel answer
    URL Safety Classifier with Imbalanced Data

    Design and evaluate a classifier to identify malicious URLs given limited labeled examples and severe class imbalance.

    Machine Learningclassificationimbalanced-datafeature-engineeringmodel-evaluation
  • Data Structure DesignMediumModel answer
    Sparse Matrix Implementation with Operations

    Build a memory-efficient representation for sparse matrices and implement addition, multiplication, and display operations.

    Data Structure Designsparse-matrixdictionarymatrix-operations
  • Statistics & ExperimentsMediumModel answer
    Diagnosing a Sudden Rise in Loan Default Rates

    Determine why a lender's delinquency metric increased last quarter by ruling out measurement issues, isolating portfolio composition effects, and comparing performance within matched cohorts.

    Statistics & Experimentsroot-cause-analysisfinancial-metricscohort-analysis
  • BehavioralEasyModel answer
    Motivation for Scale, Cross-Team Collaboration, and Production Ownership

    Explain why you prefer large-scale environments with distributed teams, why you want this specific role, and how you maintain motivation during heavy on-call rotations.

    Behavioralmotivationproduction-systemsdistributed-teams
  • BehavioralMediumModel answer
    Project Walkthrough: Trade-offs and Resolving Technical Disagreements

    Discuss a past project, explain a key technical trade-off you made with supporting evidence, and describe how you resolved a technical disagreement with a colleague.

    Behavioralbehavioralleadershipcommunicationtechnical-decision-making
  • BehavioralHardModel answer
    Product Management Multi-Round Interview Simulation

    Navigate a full PM interview loop covering strategic thinking, analytics, product design, technical execution, and self-reflection through seven distinct prompts.

    Behavioralproduct-managementstrategyanalyticsleadership
  • Machine LearningMediumModel answer
    Targeting Drivers for Real-Time Demand Spikes

    Build a system that selects which drivers to alert during sudden demand increases at high-traffic locations, balancing response speed with market stability.

    Machine Learningrankinguplift-modelingfeature-engineering
  • BehavioralMediumModel answer
    Walk Me Through a Hard Technical Trade-Off You Owned

    Describe a real decision where you weighed competing architectural paths, navigated stakeholder concerns, and can reflect honestly on the outcome.

    Behavioraltrade-offsdecision-makingstakeholder managementengineering judgment
  • Heaps, Sorting & SearchMediumModel answer
    Optimal Order Fulfillment with Decaying Prices

    Determine the maximum revenue when fulfilling orders from inventory where each item's price equals its current stock level and decreases with each sale.

    Heaps, Sorting & Searchbinary-searchgreedymathpriority-queue
  • Data Structure DesignMediumModel answer
    Real-Time List Filter with Dynamic Maximum Highlighting

    Create a filterable transaction list that automatically highlights entries with the highest amount among currently visible results.

    Data Structure Designfrontendstate-managementfilteringui-components
  • Machine LearningMediumModel answer
    Designing a Post-Purchase Email Recommendation System

    Design and validate an email recommendation feature that sends product suggestions after checkout, focusing on incremental profit and customer experience.

    Machine Learningrecommendation-systemsexperimentationproduct-metricscustomer-lifecycle
  • System DesignHardModel answer
    Debug Random Process Creation Failures in a Production Cluster

    Diagnose why newly spawned processes fail unpredictably on Linux cluster nodes by systematically checking resource limits, kernel logs, and system metrics.

    System Designlinuxdebugginginfrastructureresource-limits
  • BehavioralMediumModel answer
    Behavioral Competency Questions for Engineering Roles

    Demonstrate ownership, judgment under ambiguity, incident communication, conflict resolution, accountability, and genuine role motivation through structured stories.

    Behavioralownershipcommunicationconflict-resolutionself-awareness
  • BehavioralMediumModel answer
    Technical Project Deep Dive with Leadership Reflection

    Describe a significant technical project you led: the problem, your decisions, trade-offs, measurable outcomes, your toughest challenge, and how you mentored others.

    Behavioralleadershipproject-managementtechnical-depthmentorship
  • Machine LearningMediumModel answer
    Binary Classification Pipeline for Rare Events

    Design a complete ML pipeline for severely imbalanced classification, including temporal splitting, calibration, threshold selection, and drift monitoring.

    Machine Learningimbalanced-classificationcalibrationtemporal-validationpipeline-design
  • BehavioralMediumModel answer
    Navigate Conflicting Technical Priorities

    Describe a situation where you resolved competing technical or project requirements, explained your decision framework, and owned the outcome.

    Behavioralleadershipdecision-makingstakeholder-management
  • Machine LearningHardModel answer
    Build an ML System for Optimizing Short-Term Rental Prices

    Design a production machine learning system that suggests optimal nightly prices for vacation rental hosts based on demand forecasting and price elasticity.

    Machine Learningpricingdemand-forecastingreinforcement-learningcausal-inference
  • System DesignMediumModel answer
    Design a Distributed Web Crawler at Scale

    Design a fault-tolerant, distributed web crawler that discovers, fetches, parses, and stores billions of pages while respecting site politeness rules.

    System Designdistributed-systemscrawlingurl-frontierdeduplication
  • Machine LearningHardModel answer
    Safe deployment strategy for adaptive experimentation

    Design a Bayesian bandit with delayed feedback, churn protection, and rollback rules; compare regret to fixed-split testing under real-world constraints.

    Machine Learningbanditsbayesian-inferenceexperimentationonline-learning
  • SQL & DataMediumModel answer
    Extract User Metrics and Daily Summaries from Order Data

    Perform three pandas aggregations: identify each user's highest-value order, calculate mean order value, and generate per-day order statistics.

    SQL & Datapandasaggregationgroupbydata-analysis
  • System DesignMediumModel answer
    Content-Addressed Photo Service with Cross-User Deduplication

    Design a service where users upload, view, and remove photos, storing each unique content blob once using its hash as the key.

    System Designstoragededuplicationdistributed-systemsapi-design
  • Data Structure DesignMediumModel answer
    Contiguous Range Manager with Dynamic Resizing

    Build a system to manage named, non-overlapping contiguous ranges over a fixed ID space with dynamic resizing that minimally shifts neighbors.

    Data Structure Designrange-managementgreedyarraysystem-design
  • Data Structure DesignMediumModel answer
    Transaction Policy Engine Design and Implementation

    Build a configurable rule engine that evaluates financial transactions against spending policies and returns approval decisions in real-time.

    Data Structure Designrule-enginepolicy-evaluationsystem-designdata-structures
  • System DesignMediumModel answer
    Building and Testing a REST API Endpoint in Python

    Design a REST endpoint for a Python function and write unit tests that validate logic, handle edge cases, and isolate dependencies.

    System DesignREST APItestingPythonweb frameworks
  • Data Structure DesignMediumModel answer
    Frame-Based Media Player in JavaScript

    Build a JavaScript controller for frame-by-frame playback with play, pause, seek, and configurable FPS, handling timer accuracy and state management.

    Data Structure Designjavascripttimersclosuresapi-design
  • Statistics & ExperimentsMediumModel answer
    Subscription Profitability and Policy Pricing Analysis

    Calculate customer lifetime value across different contract terms, model churn impact, determine break-even thresholds, and analyze insurance claim rates with statistical intervals.

    Statistics & Experimentsunit-economicsexpected-valuebreak-evenconfidence-intervals
  • Machine LearningHardModel answer
    Variational Autoencoders: Theory and Training Dynamics

    Derive the ELBO objective for VAEs, explain gradient estimation through reparameterization, compute the KL term analytically, and diagnose posterior collapse.

    Machine Learninggenerative-modelsvariational-inferencedeep-learning
  • Data Structure DesignMediumModel answer
    Text Editor with Undo and Word Suggestions

    Build a text editor class supporting character insertion, deletion, cursor movement, undo/redo operations, and prefix-based word autocompletion.

    Data Structure Designdata-structurestrieundo-redogap-buffer
  • BehavioralMediumModel answer
    Investigating and Resolving a Deep Technical Issue

    Explain how you diagnosed and fixed a complex system problem using instrumentation, hypothesis testing, and validation.

    Behavioraldebuggingproblem-solvingownershiptechnical-depth
  • System DesignMediumModel answer
    Multi-Region File Distribution with Tenant Isolation

    Design a scalable pipeline that replicates large immutable files from a central location to multiple per-tenant destinations with guaranteed delivery and strict isolation.

    System Designdistributed-systemsmulti-tenancydata-replicationfault-tolerance