KatInterview

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

Interview Practice Problems

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

6107
Problems
2259
Auto-graded
15
Topics
274
Added today

Showing 2401–2430 of 6107 results

  • Greedy & IntervalsMediumAuto-graded
    Analyze Schedule Capacity and Overlaps

    Evaluate interval concurrency to determine if single-resource scheduling is possible and calculate peak concurrent demand.

    Greedy & Intervalsintervalssortingheapsweep-line
  • Data Structure DesignMediumModel answer
    Design and Implement Connect Four with Game Logic and State Management

    Build a complete two-player Connect Four game on a 6x7 grid, including drop mechanics, win/draw state evaluation, edge-case prevention, and modular state architecture.

    Data Structure DesignArraysGame DesignState ManagementData Structures
  • Math & Bit ManipulationEasyAuto-graded
    Confusion Matrix Scorecard with Safe Division

    Compute precision, recall, specificity, F1 and accuracy from confusion-matrix counts, returning 0.0 for any metric whose denominator is zero.

    Math & Bit Manipulationmetricsconfusion-matrixedge-casesarithmetic
  • System DesignMediumModel answer
    Unified Permission Service for Roles and Per-Item Sharing

    Design a multi-tenant authorization service that combines scoped role assignments with per-resource grants, covering the data model, evaluation rules, APIs, caching, auditing, and tricky edge cases.

    System Designauthorizationrbacaclcaching
  • BehavioralEasyModel answer
    Ownership, Upward Conflict, and a Slipping Executive Deadline

    Three behavioral prompts on stepping outside your role, resolving an impasse with your manager, and handling a senior leader's task that will not ship on time.

    Behavioralbehavioralownershipmanaging-upescalation
  • Machine LearningMediumModel answer
    Matching Error Costs to Metrics for Three Image Moderation Models

    Pick precision, recall, or F1 for three moderation models with different error costs, then reason about recall-oriented tuning and how thresholds move the operating point on a PR curve.

    Machine Learningprecision-recallf1-scoreclass-imbalancethreshold-tuning
  • System DesignHardModel answer
    Build a Shared Throttling Layer for a Multi-Server Web API

    Design a throttling service that caps per-key request volume across a fleet of servers, with low added latency, correct behavior under concurrency, and a clear plan for backend failures.

    System Designrate-limitingredisdistributed-systemsconcurrency
  • Data Structure DesignMediumModel answer
    Tuning a Multithreaded C++ Pipeline for Speed and Tail Latency

    Explain how you would profile and speed up an existing multithreaded C++ service whose thread pool and queue are given, covering memory, cache, contention, and verification.

    Data Structure Designcppperformanceconcurrencyprofiling
  • Statistics & ExperimentsMediumModel answer
    Evaluating Promo Discount Impact in Shared-Supply Markets

    Learn how to design experiments for discount promotions in spatial marketplaces, mitigating interference and evaluating net ecosystem impact with guardrail metrics.

    Statistics & ExperimentsA/B TestingExperimentationMarketplaceNetwork Effects
  • BehavioralMediumModel answer
    Navigating Ambiguity and Resolving Engineering Disagreements

    Learn how to structure response strategies for interview prompts on leading projects with undefined requirements and navigating high-stakes technical design disagreements.

    Behavioralbehavioralleadershiptechnical-designambiguity
  • BehavioralMediumModel answer
    Turning an Unfamiliar Technical Area into Production-Ready Skill

    Describe a repeatable method for picking up an unfamiliar technical topic and the evidence you use to decide you know it well enough to rely on it in real engineering work.

    Behavioralbehaviorallearningself-directionengineering-judgment
  • BehavioralMediumModel answer
    Belonging, Hosting, and Purpose-Driven Behavioral Answers

    Prepare structured behavioral answers about a company's mission, what belonging means to you, hosting a guest experience, and one action you would take to improve the world.

    Behavioralbehavioralvalues-interviewmission-alignmentstorytelling
  • Data Structure DesignHardAuto-graded
    Interactive Time Calendar with Pagination and Range Queries

    Process dynamic interval updates, range queries, and ordered pagination operations efficiently.

    Data Structure Designtrees-graphsdesign-dsgreedy-intervals
  • Machine LearningHardModel answer
    Design a Baseline Credit Offer Engine

    Design an ML recommendation engine for financial credit offers that balances default risk prediction, user acceptance propensity, risk calibration, fair lending compliance, and feedback loop mitigation.

    Machine Learningmachine-learningsystem-designrecommendation-systemcredit-risk
  • BehavioralMediumModel answer
    Bridging ML and Business: Talking to Non-Experts and Explaining Your Why

    A two-part behavioral prompt: explain a complex ML idea to a non-technical colleague using a real example, and say why you want to apply ML in a trading setting.

    Behavioralcommunicationstakeholder-managementstar-methodml-in-finance
  • Heaps, Sorting & SearchMediumAuto-graded
    Merge Multiple Sorted Series with Grouping

    Efficiently merge K pre-sorted event logs while combining entries sharing identical timestamps.

    Heaps, Sorting & Searchheaps-sortingarraystwo-pointers
  • Math & Bit ManipulationEasyAuto-graded
    Probability of Keeping Majority Red Items

    Calculates the probability that at least two of three kept items are red when green items are returned upon selection.

    Math & Bit Manipulationmathcombinatoricsprobability
  • Arrays & HashingHardAuto-graded
    Calculate Expected Roll Counts for Target Dice Sequences

    Evaluate expected values for geometric process waiting times and pattern completion using Markov chain state transitions.

    Arrays & Hashingprobabilityexpected-valuemarkov-chainscombinatorics
  • Arrays & HashingEasyAuto-graded
    Find Minimum and Mode of an Integer Array

    Find the minimum element and the most frequent element (mode) in an unsorted list of integers.

    Arrays & Hashingarrayshash-tablefrequency-counting
  • BehavioralHardModel answer
    Behavioral Interview Strategy: Leadership, Technical Debates, and Outages

    Learn how to formulate strong STAR-R responses to behavioral questions on end-to-end accountability, resolving technical friction, and leading blameless post-mortems.

    BehavioralBehavioralLeadershipIncident ResponseConflict Resolution
  • System DesignMediumModel answer
    Build a Chat Platform with Channels, DMs, and Presence

    Design a real-time workspace chat backend with channels, DMs, paginated history, unread tracking, and presence, supporting 5M concurrent connections and channels of up to 50,000+ members.

    System Designwebsocketsfan-outpub-submessage-ordering
  • System DesignMediumModel answer
    Low-Level Generics in C vs RAII and Smart Pointers in C++

    Compare low-level C abstractions (type erasure, macros, linkages) with C++ resource management model (RAII, smart pointer memory layouts, and weak_ptr lifecycle dynamics).

    System Designccppmemory-managementpointers
  • Trees & GraphsHardAuto-graded
    Calculate Subtree Totals in a Tree

    Given an undirected tree and node weights, compute the sum of values for every subtree rooted at node 1.

    Trees & Graphstrees-graphsdfstree-traversalbottom-up
  • Machine LearningMediumModel answer
    Design an Iterative Sequence Optimization Platform for Synthetic Biology

    Design an automated active learning system that iteratively proposes, screens, and refines DNA sequences to maximize gene expression within physical synthesis constraints.

    Machine Learningactive learningbayesian optimizationsequence encodingml system design
  • BehavioralMediumModel answer
    Selling Enterprise GPU Acceleration to a Fortune 50 Retail CEO

    Structure an executive pitch, TCO model, phased pilot plan, risk matrix, and objection strategy for enterprise GPU deployment across retail operations.

    Behavioralexecutive communicationsales engineeringTCO modelingretail AI
  • Math & Bit ManipulationMediumAuto-graded
    Chance a Daily +/- Walk Ends Below Zero

    Model a price as a two-step random walk, reduce it to a binomial lower tail with a strict cutoff, and sum that tail in a numerically stable way.

    Math & Bit Manipulationprobabilitybinomialnumerical-stabilityrandom-walk
  • Trees & GraphsEasyAuto-graded
    Extract Sorted Values from Level-Order Encoded BST

    Extract all valid integer elements from a level-order serialized binary search tree and return them in non-decreasing order.

    Trees & Graphstrees-graphsheaps-sortingbinary-search-tree
  • Statistics & ExperimentsMediumModel answer
    Is a Second Season Worth Its Production Budget?

    Estimate the incremental revenue from greenlighting a second season using retention odds with and without the show, find the break-even audience, and critique the key assumptions.

    Statistics & Experimentsexpected-valueincremental-analysisbreak-evenretention
  • BehavioralEasyModel answer
    Present a Data Science Project From Problem to Impact

    Give a structured, concrete account of one data science project you led, covering framing, metrics, data, method, validation, risks, results, and next steps.

    Behavioralbehavioraldata-scienceproject-walkthroughmetrics
  • Trees & GraphsMediumAuto-graded
    Best Net Reward Route to an Underscore Node in a DAG

    Find the highest net score of a route in a weighted DAG that ends at a node whose name starts with an underscore, using topological order and DP.

    Trees & Graphsgraphdagtopological-sortdynamic-programming