KatInterview

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

Interview Practice Problems

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

6037
Problems
2236
Auto-graded
15
Topics
273
Added today

Showing 4801–4830 of 6037 results

  • Greedy & IntervalsMediumAuto-graded
    Collect Coins with Fixed-Jump Pieces

    Tests modular arithmetic insight and greedy reasoning to determine which resources are reachable under constrained movement rules.

    Greedy & Intervalsgreedymodular-arithmeticarrays
  • Machine LearningMediumModel answer
    Finding Duplicate Transactions in a Payment Dataset

    Design a system to detect, classify, and quantify duplicate records in a payment transaction dataset, handling both exact matches and fuzzy near-duplicates.

    Machine Learningrecord-linkagedata-qualityentity-resolutiondeduplication
  • BehavioralHardModel answer
    Own It: Projects, Setbacks, and What You Learned

    Prepare structured, story-driven answers to seven core behavioral prompts covering ownership, conflict, failure, feedback, and self-improvement.

    Behavioralbehavioralleadershipcommunicationgrowth-mindset
  • Stacks & QueuesHardAuto-graded
    Peak Tower Configuration with Height Limits

    Construct a sequence that rises then falls while respecting per-element caps, maximizing the sum using greedy peak selection and monotonic stacks.

    Stacks & Queuesmonotonic-stackgreedyprefix-sum
  • Trees & GraphsMediumAuto-graded
    Detect Cycles in a Package Dependency Graph

    Tests ability to detect cycles in a directed graph using DFS-based cycle detection, modelling package dependencies where a cycle makes installation impossible.

    Trees & Graphsgraphscycle detectiondepth-first searchtopological order
  • Dynamic ProgrammingMediumAuto-graded
    Count Tile-Filling Combinations for a Target Length

    Tests unbounded-knapsack DP by counting unordered multisets of tile widths, drawn from a given list, that sum exactly to a target corridor length.

    Dynamic Programmingdynamic-programmingcombinatoricsunbounded-knapsack
  • Arrays & HashingMediumAuto-graded
    Seven-Segment Display 180° Rotation Symmetry

    Determine if a sequence of seven-segment digits appears identical when the entire display is flipped upside down.

    Arrays & Hashingarrayssimulationmapping
  • BehavioralHardModel answer
    Navigating Competing Priorities Across Multiple Teams

    Describe a situation where you balanced conflicting requirements from different groups, made explicit trade-offs, and delivered a solution that addressed core needs.

    Behavioralstakeholder-managementcommunicationprioritizationtrade-offs
  • BehavioralMediumModel answer
    Take Ownership Beyond Your Role: Cross-Team Leadership

    Demonstrate leadership by describing a time you stepped up on a problem outside your direct scope, influenced others, and delivered measurable results.

    Behavioralownershipinfluence-without-authoritySTAR methodcross-team collaboration
  • System DesignHardModel answer
    Build a Real-Time Configuration Management System

    Design a service that stores configuration data and notifies subscribed clients when values change, covering APIs, consistency, scaling, and failure handling.

    System Designdistributed-systemsreal-timepub-subconsistency
  • Heaps, Sorting & SearchMediumAuto-graded
    Kth Element in Union of Two Sorted Lists

    Tests ability to find the kth smallest element from two sorted arrays using binary search on partition counts rather than merging.

    Heaps, Sorting & Searchbinary-searcharraystwo-pointers
  • SQL & DataMediumAuto-graded
    Monthly Revenue Summary by Product Category

    Tests group-by aggregation over a list of transaction records to compute per-category monthly revenue, count, and average order value.

    SQL & Datagroup-by aggregationdata cleaningdictionaries
  • Statistics & ExperimentsHardModel answer
    Balance Scale Strategy for Identifying One Defective Coin

    Devise a three-weighing strategy using a balance scale to identify which of 12 identical coins is defective and determine if it's heavier or lighter.

    Statistics & Experimentslogicinformation-theorycombinatorics
  • Math & Bit ManipulationMediumAuto-graded
    Observer Simulation and Manual Integer Conversion

    Tests event-driven simulation optimization and precise numeric string formatting including signed 32-bit boundary handling.

    Math & Bit Manipulationsimulationmathstring-manipulation
  • Statistics & ExperimentsHardModel answer
    Build a rigorous A/B test for a small-business incentive pilot

    Design randomization, compute power, define ITT/TOT estimands, specify variance reduction and guardrails, handle data quality, and make a rollout decision.

    Statistics & Experimentsexperimentationcausal-inferencepower-analysisA/B-testing
  • BehavioralMediumModel answer
    Build Interdependent Month Dropdowns in React

    Create two controlled month selector dropdowns with validation logic that prevents selecting invalid date ranges and past months.

    Behavioralreactformsvalidationaccessibility
  • Statistics & ExperimentsHardModel answer
    Assessing a Customer Retention Incentive Using Causal Methods

    Design and validate a causal analysis for a regionally piloted customer compensation policy using difference-in-differences and related techniques.

    Statistics & Experimentscausal-inferenceexperimentationdifference-in-differencesbusiness-metrics
  • System DesignHardModel answer
    Define and optimize performance for a high-traffic microservice

    Design SLIs/SLOs, instrument a service, plan load tests, identify bottlenecks, and propose optimizations with trade-offs for a stateless HTTP API.

    System Designperformanceobservabilityload-testingsli-slo
  • BehavioralMediumModel answer
    Recover from a project that shipped and then failed in production

    Demonstrate how you handled a project that launched but broke down post-release, showing ownership, diagnosis, and learning.

    Behavioralbehavioralfailureownershippost-mortem
  • BehavioralHardModel answer
    Debugging False Approvals in a Risk Scoring System

    Investigate why a return-eligibility scoring service incorrectly approves high-risk requests and identify root causes across inputs, logic, and control flow.

    Behavioraldebuggingsoftware-engineeringsystemstroubleshooting
  • SQL & DataMediumAuto-graded
    Daily Session Starters: Count Users Who Opened the App First

    Tests window-function thinking, tie-breaking logic, and grouped aggregation by finding users whose very first recorded action each day was opening the app.

    SQL & Datasimulationhash-mapsorting
  • BehavioralHardModel answer
    Iterating on a Launched Product: Prioritizing Post-MVP Improvements

    Describe launching an initial product version and your approach to deciding which enhancements to build next based on real-world usage and feedback.

    Behavioralproduct-thinkingprioritizationtechnical-debtleadership
  • Machine LearningHardModel answer
    Build a Ranking Model for User Engagement

    Design a complete ML ranking system including data collection, feature engineering, model architecture, evaluation metrics, and production deployment.

    Machine Learningmachine-learningrankingproduction-mlsystem-design
  • Statistics & ExperimentsHardModel answer
    Measuring Offline Ad Impact: Train Station Billboard Analysis

    Design a causal measurement framework for billboards in transit hubs, quantify incremental user growth, estimate exposed audience, and build a forecasting model.

    Statistics & Experimentsexperimentationcausal-inferencemarketing-analytics
  • Arrays & HashingMediumAuto-graded
    Group and Rank Users by Average Value

    Tests efficient grouping and aggregation over dictionaries, plus multi-key sorting to produce ordered output.

    Arrays & Hashingaggregationdictionariessorting
  • SQL & DataMediumAuto-graded
    Carrier Defect Metrics and High-Risk Shipping Routes

    Aggregating shipment quality metrics by carrier and time period, computing period-over-period changes, and ranking routes by defect frequency.

    SQL & Dataaggregationjoinswindow-functionsdata-analysis
  • BehavioralMediumModel answer
    Navigating Cross-Team Conflict on a Data-Driven Decision

    Describe resolving a significant disagreement between teams on a data-informed choice, showing how you diagnosed the conflict, facilitated alignment, and owned execution.

    Behavioralleadershipcollaborationdata-analysisconflict-resolution
  • BehavioralMediumModel answer
    Professional Growth, Role Context, and Technical Project Walkthrough

    Explain how you develop professionally, describe your current position, dissect a major technical project, reflect on lessons learned, and pose informed questions.

    Behavioralleadershipcommunicationtechnical-depthself-awareness
  • SQL & DataMediumModel answer
    Retrieve and rank teams from a paginated REST API

    Build a client that fetches all pages of team records, handles retries and rate limits, then returns the top n teams sorted by wins descending and name ascending.

    SQL & Datapaginationapierror-handlingsorting
  • BehavioralMediumModel answer
    Walk Me Through Two Projects You've Worked On

    Demonstrate technical depth, ownership, and cross-functional maturity by narrating two real projects with concrete tradeoffs and measurable results.

    Behavioralownershiptradeoffscross-functionalcommunication