KatInterview

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

Interview Practice Problems

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

6002
Problems
2223
Auto-graded
15
Topics
273
Added today

Showing 5371–5400 of 6002 results

  • Trees & GraphsHardAuto-graded
    Minimum Cost Route with Limited Layovers

    Tests understanding of constrained shortest-path algorithms on directed weighted graphs with edge-count restrictions.

    Trees & Graphsgraphsshortest-pathbellman-fordconstraints
  • Data Structure DesignHardAuto-graded
    Track the Earliest Single-Occurrence Integer in a Stream

    Design a structure that efficiently identifies the first integer appearing exactly once in a dynamic sequence of integers.

    Data Structure Designqueuehash-tabledata-structure-design
  • Arrays & HashingHardAuto-graded
    Compute P-Values for Statistical Hypothesis Tests

    Tests numerical stability in tail probability calculation, distribution function implementation, and handling of hypothesis testing edge cases.

    Arrays & Hashingstatisticsnumerical-methodshypothesis-testing
  • System DesignMediumModel answer
    Backend Architecture for Activity Recording Platform

    Design a scalable system to capture high-frequency GPS data from mobile workout sessions, compute activity metrics, and serve historical workout information.

    System Designhigh-throughputgeospatialtime-seriesdata-modeling
  • StringsHardAuto-graded
    Parse Token Components Without External Libraries

    Tests manual implementation of Base64URL decoding and understanding of multi-part token structure with bit-level encoding.

    Stringsencodingparsingbit-manipulation
  • Arrays & HashingMediumAuto-graded
    Find Contiguous Prefix Values in Permutation

    Tests understanding of positional reasoning and incremental range tracking in permutations to identify when values 1..k occupy consecutive indices.

    Arrays & Hashingarrayspermutationssliding-windowgreedy
  • BehavioralMediumModel answer
    Identify and fix thread-safety bugs in a market data handler

    Spot concurrency flaws, atomicity gaps, and design issues in a multi-threaded price tracking class, then refactor it to be thread-safe.

    Behavioralconcurrencycode-reviewjavathread-safety
  • Arrays & HashingMediumAuto-graded
    Straight-Line Word Search Across Eight Directions

    Tests whether a target word appears in a letter grid along any single unbroken ray, locking direction after the first letter.

    Arrays & Hashinggridstring-matchingenumeration
  • Arrays & HashingMediumModel answer
    Parallel Image Pipeline Without External Libraries

    Build a CPU-based image transformation engine that chains grayscale, brightness, and resize operations across multiple images using pure Python.

    Arrays & Hashingimage-processingparallel-processingarray-manipulation
  • Trees & GraphsMediumAuto-graded
    Minimum Steps in Word Ladder

    Tests BFS on an implicit graph with efficient neighbor generation using wildcard pattern indexing.

    Trees & Graphsbfsgraphstringhashing
  • BehavioralMediumModel answer
    Owning Risk Beyond Your Role

    Explain a time you took ownership of a meaningful problem outside your core responsibilities, managed uncertainty with data, and delivered measurable impact.

    Behavioralleadershipownershiprisk-managementinitiative
  • Data Structure DesignMediumAuto-graded
    Multi-Component Data Processing Challenge

    Tests array merging from the back, queue-based task scheduling with time slices, and price-level order matching in a simulated trading book.

    Data Structure Designarraysqueuessimulation
  • System DesignHardModel answer
    Loyalty Ledger: Building a Transaction-to-Points Rewards System

    Design a service that converts card transactions to loyalty points, ensuring exactly-once processing, precise arithmetic, and safe redemptions.

    System Designdistributed-systemsledgeridempotencyconsistency
  • Data Structure DesignMediumAuto-graded
    Task Assignment System with Expiration Windows

    Tests in-memory data modeling, time-based state management, priority queuing, and handling overlapping task assignments with TTL semantics.

    Data Structure Designobject-oriented-designtime-based-logicdata-structures
  • BehavioralHardModel answer
    Walk Me Through a Time You Navigated a Workplace Disagreement

    Recount a real professional disagreement, covering both sides fairly, how you reached a resolution, and what you did differently afterward.

    Behavioralconflict resolutioncommunicationleadershipcollaboration
  • Arrays & HashingMediumAuto-graded
    Find Minimum Window Containing All Distinct Characters

    Tests ability to use a sliding window combined with hash counting to find the shortest substring that contains every distinct character appearing in the input string.

    Arrays & Hashingsliding windowhash mapstringstwo pointers
  • Machine LearningMediumModel answer
    Build a Travel Time Prediction Service for Ride Applications

    Design a machine learning system that forecasts journey duration for ride-hailing trips, addressing data collection, feature design, model choice, and deployment.

    Machine Learningml-system-designproduction-mlregressionspatial-data
  • Greedy & IntervalsMediumAuto-graded
    Maximum Placement with Spacing Constraints

    Tests greedy iteration with adjacency rules, requiring precise edge-case handling and index management.

    Greedy & Intervalsgreedyarraysiteration
  • Dynamic ProgrammingHardAuto-graded
    Minimum Cost to Multiply a Chain of Matrices

    Tests interval dynamic programming by finding the least expensive way to parenthesize consecutive matrix multiplications.

    Dynamic Programminginterval-dpoptimizationmemoization
  • Machine LearningMediumModel answer
    Core Concepts in Machine Learning and Deep Learning

    Demonstrate understanding of fundamental ML/DL concepts through precise definitions, mathematical formulations, and practical examples.

    Machine Learningfundamentalsdeep-learningtheorymathematics
  • BehavioralMediumModel answer
    Pricing Strategy for an Early-Stage Cloud SaaS Product

    Design a multi-tier pricing model for a young cloud service, justify it with unit economics, and mitigate key business risks while planning controlled growth.

    Behavioralproduct-strategypricingunit-economics
  • BehavioralMediumModel answer
    Resolving Conflict in a Technical Partnership

    Discuss a time you repaired a deteriorating work relationship by diagnosing root causes, owning your role, and implementing process changes that made the partnership durable.

    Behavioralconflict-resolutioncollaborationcommunicationprocess-improvement
  • Machine LearningMediumModel answer
    Orchestrating Classification and Embedding Services at Scale

    Build a document processing pipeline that calls two ML services (classification and embedding) for both single-file and bulk uploads up to 1,000 files.

    Machine LearningML System DesignAPI DesignScalabilityService Orchestration
  • SQL & DataEasyAuto-graded
    Social Media Reply Analytics

    Analyzes reply patterns in social media data using temporal filtering, joins, and aggregation to compute engagement metrics.

    SQL & Datadata-analysisaggregationfiltering
  • BehavioralMediumModel answer
    Balancing Risk Mitigation and Feature Delivery Timelines

    Discuss navigating trade-offs between technical risk and product velocity when stakeholders have competing priorities.

    Behavioralleadershiprisk-managementstakeholder-alignment
  • Math & Bit ManipulationMediumAuto-graded
    Convert Absolute-Value Penalty to Linear Program Constraints

    Transform a portfolio optimization model with absolute-value transaction costs into standard linear programming form using auxiliary variables.

    Math & Bit Manipulationlinear-programmingoptimizationmathematical-modeling
  • BehavioralMediumModel answer
    Navigate Trade-Offs Between Competing Work Values

    Explain how you choose between two valid engineering approaches when compromise fails, and demonstrate consistent decision-making across contexts.

    Behavioraltrade-offsself-awarenessdecision-makingwork-style
  • Arrays & HashingMediumAuto-graded
    Longest Subarray with Bounded Variance Sum

    Tests the ability to combine prefix sums with hash maps to efficiently find the longest contiguous subarray whose element-wise difference from the mean of two boundary values stays within a given tolerance.

    Arrays & Hashingarraysprefix sumshash maps
  • BehavioralMediumModel answer
    Walk Me Through a High-Impact Project You Owned

    Describe a project where you spotted a meaningful problem, drove the solution, and delivered measurable results.

    Behavioralownershipimpactmetricstrade-offs
  • Statistics & ExperimentsMediumModel answer
    Interpreting A/B Test Results That Reverse When Aggregated

    An experiment shows treatment winning in each segment but losing overall; diagnose the cause and determine the correct launch decision.

    Statistics & Experimentsab-testingsimpsons-paradoxexperimentationstatistical-inference