KatInterview

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

Interview Practice Problems

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

6081
Problems
2255
Auto-graded
15
Topics
272
Added today

Showing 1921–1950 of 6081 results

  • BehavioralMediumModel answer
    Walking Through a Project You Are Proud Of and Why You Want the Role

    Tell the story of a project you are proud of, focusing on your own contribution and evidence, then link your motivations honestly to the role's confirmed responsibilities.

    Behavioralbehavioralhr-screenstorytellingmotivation
  • Machine LearningHardModel answer
    Rescuing a Rare-Event Image Flagger That Predicts Only "Safe"

    A logistic regression flagger for rare harmful uploads shows high accuracy but no detections, sparse ID features, and uneven regional quality. Lay out a plan to diagnose and repair it.

    Machine Learningimbalanced-datalogistic-regressioncategorical-encodingfairness
  • Statistics & ExperimentsMediumModel answer
    Measuring Incremental Conversions from a Holdout-Based Ad Test

    Estimate conversion lift from test and holdout counts, test it, size the experiment to detect a 5% relative lift at 90% power, and restate the analysis in Bayesian terms.

    Statistics & Experimentsab-testingtwo-proportion-z-testpower-analysisbayesian
  • BehavioralMediumModel answer
    Navigating Project Ambiguity and Communication Obstacles

    Demonstrate how you brought clarity to ambiguous requirements, bridged communication gaps across teams, and safeguarded delivery using a specific technical project experience.

    Behavioralbehavioralcross-functionalproject-managementleadership
  • BehavioralMediumModel answer
    Hitting a Hard Deadline by Cutting Scope Wisely

    Describe a real project with a fixed deadline, the scope tradeoff you made, how you aligned stakeholders, and how you verified the outcome was acceptable.

    Behavioralbehavioralprioritizationdeadlinestradeoffs
  • BehavioralMediumModel answer
    Validating Assumptions and Aligning Stakeholders for Permission Model Changes

    Outline how to validate high-risk assumptions and secure cross-functional alignment when implementing a major refactor to a product's access control system.

    Behavioralproduct-executionstakeholder-managementrisk-assessmentfeature-flags
  • StringsEasyAuto-graded
    Parse Hex Color Code to ARGB Integer

    Parse a hex color string (6 or 8 characters) into a 32-bit ARGB packed integer, returning a fallback on invalid input.

    Stringsstringsparsingmath-bits
  • BehavioralMediumModel answer
    Walking Through an ML Project You Owned From Idea to Production

    Tell the story of a machine learning project you owned, covering goals, data, modeling, evaluation, serving, failures, and lessons, with clear metrics and trade-offs.

    Behavioralbehavioralmachine-learningproject-ownershipstakeholder-management
  • Arrays & HashingMediumModel answer
    Code Review Drill: Three Pandas Helpers in a Data Pipeline

    Explain what three short pandas helper functions do, then propose and justify improvements to their correctness, speed, readability, robustness and testability.

    Arrays & Hashingpythonpandascode-reviewvectorization
  • System DesignMediumModel answer
    Design a Payment Authorization, Capture, and Settlement Engine

    Architect a resilient payment platform handling two-phase auth/capture flows, double-entry financial ledgering, and batch settlement reconciliation with downstream gateways.

    System Designsystem-designdistributed-systemsfinancial-systemsidempotency
  • System DesignHardModel answer
    Defend the Architecture of a System You Built, End to End

    Walk through a non-trivial system you own, from diagram and invariants to scaling, security, SLOs, a real incident, a 10x plan and a hindsight redesign.

    System Designsystem-designarchitecture-reviewscalabilityreliability
  • System DesignMediumModel answer
    Design an Enterprise Assistant for Internal Knowledge and Workflows

    Design a secure, low-latency enterprise AI assistant that performs retrieval-augmented generation across internal data sources and executes tool workflows under strict access controls.

    System DesignRAGLLMAccess ControlSystem Design
  • Data Structure DesignHardAuto-graded
    Simulate a Time-Aware Financial Ledger

    Process sequential financial operations with scheduled transfers, account merging, historical snapshot queries, and activity rankings using heaps and binary search.

    Data Structure Designdesign-dsheaps-sortingarrays
  • Machine LearningHardModel answer
    Comprehensive Architectural Analysis of Transformers and Variants

    Detailed breakdown of transformer mechanisms, computational complexity, stability strategies, structural variants, and domain-specific adaptations.

    Machine Learningtransformersattention-mechanismdeep-learningllm
  • Data Structure DesignMediumModel answer
    Implement Dynamic Bitwise Masking and Uniform O(1) Set

    Construct an XOR string transformation function alongside an expected constant-time randomized container structure.

    Data Structure DesignArraysHash MapBit ManipulationDesign
  • Machine LearningHardModel answer
    Deciding Whether a New Ads Ranking Model Can Retire the Old One

    Judge whether a new ad-ranking model is ready to replace production: pre-launch checks, resolving a CTR vs revenue conflict, experiment design, and an executive-ready readout.

    Machine Learningab-testingads-rankingmodel-evaluationguardrail-metrics
  • System DesignMediumModel answer
    Multi-Tenant Labeling Service: API Contract and Storage Design

    Design a workspace-scoped labeling service with REST endpoints, a schema, a search strategy for AND/OR filtering, and handling of concurrency, idempotency and pagination.

    System Designrest-apidata-modelingidempotencypagination
  • Heaps, Sorting & SearchMediumAuto-graded
    Final Departure From a Bouncing Convoy on a Road

    Find when the last vehicle leaves a segment and which one it is, when equal-speed vehicles reverse on contact, using pass-through equivalence and order preservation.

    Heaps, Sorting & Searchsortingsimulation-shortcutghost-particlesordering-invariant
  • System DesignMediumModel answer
    Design a Scalable Food-Item Review and Voting Platform

    Design a scalable review, rating, and vote tracking service for a food ordering platform, focusing on data modeling, atomic vote mutations, and read/write path performance.

    System Designsystem-designdatabase-designcachingdistributed-systems
  • Machine LearningHardModel answer
    Implement Scaled Dot-Product Attention and Manual Backward Pass

    Derive and implement the forward and backward passes for scaled dot-product multi-head attention without autograd, alongside causal masking and numerical stability considerations.

    Machine Learningtransformersattentionbackpropagationdeep-learning
  • BehavioralMediumModel answer
    Optimizing an Inefficient Engineering Workflow or Team Process

    Demonstrate your ability to spot systemic operational drag, gain cross-team buy-in using data, implement scalable fixes, and track outcomes without causing collateral issues.

    Behavioralbehavioralleadershipprocess-improvementstakeholder-management
  • Data Structure DesignMediumAuto-graded
    Frozen-View Integer Set with Independent Cursors

    Simulate a mutable integer set whose iterators capture the set's contents at creation time and stay isolated from later changes and from each other.

    Data Structure Designdesignhash-setiteratorsnapshot
  • Data Structure DesignMediumModel answer
    Build a Persistent Key-Value Shell with Tests and CI

    Design a single-class interactive key-value shell that saves to disk, handles bad input, logs errors, accepts new commands easily, and ships with unit tests, a README, and CI.

    Data Structure Designoopcliunit-testingpersistence
  • System DesignEasyModel answer
    Troubleshooting Search Inconsistencies and Inventory Bugs in Web Apps

    Outline a structured debugging methodology for diagnosing search and inventory state discrepancies in full-stack applications using targeted tracing and controlled AI code analysis.

    System Designdebuggingfull-stackapistate-management
  • Heaps, Sorting & SearchMediumAuto-graded
    Find Boundary Indices in Sorted Sequence

    Adapt binary search to locate the starting and ending index of a target value in a sorted sequence in logarithmic time.

    Heaps, Sorting & Searchbinary-searcharrayssearching
  • Arrays & HashingEasyAuto-graded
    Dot Product of Two Run-Length Encoded Vectors

    Compute the dot product of two run-length encoded integer vectors by walking both run lists together, without expanding them into full arrays.

    Arrays & Hashingtwo-pointersrun-length-encodingsimulation
  • BehavioralMediumModel answer
    Discussing a Professional Failure and Its Organizational Impact

    Learn how to present a major technical or operational error, detail your immediate response, and show how it drove long-term process improvements.

    Behavioralbehavioralleadershipincident-responseownership
  • System DesignMediumModel answer
    Presenting End-to-End System Architecture and Database Strategy

    Architect and present a high-volume production system, detailing API flow, query indexing, data partitioning, fault tolerance, and explicit technical trade-offs.

    System Designsystem-designdatabase-indexingpartitioningdata-architecture
  • StringsEasyModel answer
    Find Unique Words Across Two Text Blocks

    Identify words that appear in either of two given text strings, but not in both, using symmetric set difference.

    Stringsstringsarraysset-operations
  • Trees & GraphsMediumAuto-graded
    Follow Graph: Following Lists and Mutual-Count Suggestions

    Answer batched queries on a static directed follow graph: list direct followees and rank second-hop accounts by how many followees also follow them.

    Trees & Graphsgraphhash-mapadjacency-listsorting