KatInterview

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

Interview Practice Problems

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

6053
Problems
2240
Auto-graded
15
Topics
270
Added today

Showing 1441–1470 of 6053 results

  • BehavioralMediumModel answer
    Four Career Stories: Setbacks, Unknowns, Competing Priorities, Critique

    Prepare four short, structured work stories covering a hard problem, a decision with missing data, juggling competing priorities, and acting on tough feedback.

    Behavioralbehavioralstar-methodownershipprioritization
  • BehavioralEasyModel answer
    Product Data Scientist Recruiter Call: Ten Questions to Prepare

    Prepare structured, evidence-backed answers for a recruiter phone screen for a product data scientist role at an e-commerce platform, covering motivation, past scope, PM collaboration and pay.

    Behavioralbehavioralrecruiter-screenproduct-data-sciencestakeholder-management
  • Trees & GraphsMediumAuto-graded
    Deterministic Mine Grid Plus Letter-Path Check

    Build a mine-count grid with mines in row-major order, then use DFS backtracking to check whether a word can be traced through a separate letter grid.

    Trees & Graphsgridbacktrackingdfssimulation
  • Data Structure DesignMediumAuto-graded
    Per-User Request Throttle Simulator with Rolling Time Window

    Replay a list of throttle operations and decide, per user, whether each request fits within k accepted requests in a rolling window of t ms, using inclusive boundary rules.

    Data Structure Designsliding-windowdequehash-mapsimulation
  • Dynamic ProgrammingMediumAuto-graded
    Smallest Sentence from a Spaceless String and Word List

    Segment a spaceless string into dictionary words and return the lexicographically smallest valid sentence, or None if impossible; tests suffix DP plus greedy reconstruction.

    Dynamic Programmingdynamic-programmingstringsgreedyword-break
  • Arrays & HashingEasyAuto-graded
    Repair a Sensor Log: Merge, Sort, and Interpolate Gaps

    Merge duplicate timestamps by averaging known readings, sort, then fill missing values by linear interpolation inside gaps and nearest-value holding at the ends.

    Arrays & Hashinghash-mapsortinginterpolationtime-series
  • Statistics & ExperimentsMediumModel answer
    Rolling Out Multi-Party Video Calls: Experiment Design Under Interference

    Plan and analyze a randomized rollout of a multi-participant calling feature, covering metric choice, network spillovers, participant caps, launch inputs and timing edge cases.

    Statistics & Experimentsab-testinginterferencecluster-randomizationcuped
  • Data Structure DesignMediumModel answer
    Object Model and Move Engine for a Sliding-Tile Merge Game

    Design the classes and core move algorithm for a configurable N x N sliding-tile merge puzzle, with testable randomness, win and loss detection, and room for undo.

    Data Structure Designobject-oriented-designgame-logicsimulationdependency-injection
  • Statistics & ExperimentsHardModel answer
    A/B Testing a Discovery-Oriented Feed Ranker

    Plan an online experiment for a ranker that pushes users toward new content, define metrics for discovery, satisfaction and ecosystem health, and make a launch call before long-term results arrive.

    Statistics & Experimentsab-testingexperiment-designrecommender-systemsmetrics
  • BehavioralMediumModel answer
    Five Behavioral Stories for an AI-Safety Engineering Role

    Prepare five spoken, story-based answers on pride, hardship, motivation, values under pressure, and respectful disagreement, each showing ownership, judgment, and honesty.

    Behavioralbehavioralleadershipstorytellingvalues
  • Machine LearningMediumModel answer
    Rank Predictors by Logistic Regression Coefficient Magnitude

    Fit an unpenalized binary logistic regression with an intercept on a features-by-samples matrix, then return the three predictors with the largest absolute coefficients.

    Machine Learninglogistic-regressionfeature-importancenumpyirls
  • StringsMediumAuto-graded
    Does This Shorthand Describe the Word?

    Check whether a shorthand of letters and skip counts exactly describes a word, handling multi-digit counts, leading zeros, overruns and leftover characters with a two-pointer scan.

    Stringstwo-pointersstring-parsingsimulation
  • Data Structure DesignMediumAuto-graded
    Word Index with Prefix Queries and Ordered Suggestions

    Simulate a command sequence on a word index that supports insert, exact lookup, prefix lookup, and alphabetically ordered, capped autocomplete, built on a trie.

    Data Structure Designtriedesigndfsstrings
  • Statistics & ExperimentsHardModel answer
    Sequential A/B Test, FDR Control, Bot Posterior, Skewed AOV

    Four applied statistics tasks: a two-proportion test with group-sequential boundaries, BH vs Bonferroni, a Bayes flag posterior, and robust inference for a skewed order-value metric.

    Statistics & Experimentshypothesis-testingsequential-testingmultiple-comparisonsbayes-theorem
  • System DesignMediumModel answer
    From Address Bar to Pixels: Tracing a Secure Page Load

    Describe the full journey of a secure page request, from the browser's first lookups through DNS, connection setup, edge and backend handling, to the final rendering of the page.

    System Designnetworkingdnstlshttp
  • BehavioralHardModel answer
    Model Choice Standoff, Pushy Client, and a 24-Hour Escalation

    Behavioral question on resolving a model-selection dispute with a tech lead, holding firm with an aggressive client, and handling an escalation without your manager.

    Behavioralconflict-resolutionstakeholder-managementmodel-selectionescalation
  • Machine LearningMediumModel answer
    Probabilistic Triage Model for Disputed Order Claims

    Design a calibrated probabilistic model that scores dispute cases for fraud despite informative missing data, shifting base rates, and cost-sensitive routing decisions.

    Machine Learningbayesian-inferencecalibrationmissing-datalabel-shift
  • Data Structure DesignEasyAuto-graded
    Ledger Simulator with Holds, Deferred Payments and Cancellations

    Simulate a small in-memory bank driven by a command script, covering account creation, instant and deferred transfers, batch settlement and cancellation of pending transfers.

    Data Structure Designsimulationhash-mapstate-managementclass-design
  • Machine LearningMediumModel answer
    Evaluating Feature Imputation Methods for Linear Regression Models

    Analyze and contrast mean imputation, empirical sample imputation, and missingness indicator techniques in linear models across MCAR, MAR, and MNAR data mechanisms.

    Machine Learningmachine-learningstatisticsdata-preprocessingfeature-engineering
  • System DesignHardModel answer
    Designing a Scalable Distributed Key-Value Store

    Architect a fault-tolerant, horizontally scalable key-value storage system utilizing consistent hashing, tunable quorums, and automated data rebalancing.

    System Designsystem-designconsistent-hashingdistributed-systemsfault-tolerance
  • Data Structure DesignMediumModel answer
    Build an Expiring LRU Cache with an Injectable Clock

    Design a fixed-capacity cache with least-recently-used eviction and per-entry expiry, and justify your data structures, tests and complexity.

    Data Structure Designlru-cacheordereddictttlunit-testing
  • Stacks & QueuesEasyAuto-graded
    Check Whether Bracket Pairs Are Correctly Nested

    Decide whether a string of round, square and curly brackets is well formed, which tests the use of a stack for last-in-first-out matching.

    Stacks & Queuesstackstringsparsing
  • Math & Bit ManipulationEasyAuto-graded
    Single Row of the Binomial Triangle in Linear Space

    Compute one row of Pascal's triangle by index, using only space proportional to the row, via an in-place update or the multiplicative binomial recurrence.

    Math & Bit Manipulationpascal-trianglecombinatoricsdynamic-programmingarrays
  • System DesignMediumModel answer
    Investigate Autonomous Fleet Charging Failure and Degradation

    Analyze noisy charging logs, define unbiased reliability metrics, formulate root cause logic in SQL, and design a debugging playbook for slow-charging sessions.

    System Designsystem-designdata-engineeringroot-cause-analysismetrics
  • Statistics & ExperimentsHardModel answer
    Experiment Plan for a Shareable Playlists-Style Collections Feature

    Plan an experiment for a shareable collections feature on a social app: metrics, randomization with spillover, sample size, stopping rules, logging, revenue estimate, and no-launch reasons.

    Statistics & Experimentsab-testingexperiment-designpower-analysisnetwork-effects
  • Math & Bit ManipulationHardModel answer
    Balanced Character Rewriting and Offline Grid Threshold Queries

    Solve parity-based string transformation via bitmasks and handle offline 2D range count queries using dynamic point-update data structures.

    Math & Bit Manipulationbit-manipulation2d-fenwick-treesweep-lineprefix-sum
  • Statistics & ExperimentsMediumModel answer
    Evaluating Causal Impact of Optional Hardware Devices

    Learn how to measure causal impact when users self-select into optional hardware purchases using propensity scores and quasi-experiments.

    Statistics & Experimentscausal inferencepropensity score matchingdifference-in-differencesquasi-experiments
  • Data Structure DesignMediumModel answer
    How Hash Tables Handle Collisions, Deletes, and Growth

    Walk through hash table internals: index mapping, chaining versus linear probing, safe deletion, load-factor resizing, and when operations degrade from O(1) to O(n).

    Data Structure Designhash-tablecollision-resolutionlinear-probingload-factor
  • Stacks & QueuesMediumModel answer
    Troubleshooting Silent Execution in Python Async Workflows

    Analyze and fix a Python async script that finishes silently without invoking its async functions, and explore concurrent execution options with asyncio.

    Stacks & Queuespythonasyncioconcurrencydebugging
  • Machine LearningMediumModel answer
    Mechanics of Positional Encodings in Transformer Architectures

    Understand Transformer positional encodings, including self-attention permutation properties, sinusoidal vs. learned schemes, linear shift derivations, and relative methods.

    Machine Learningtransformerspositional-encodingattentiondeep-learning