KatInterview

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

Interview Practice Problems

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

6019
Problems
2229
Auto-graded
15
Topics
276
Added today

Showing 871–900 of 3790 results

  • BehavioralEasyModel answer
    Recruiter Call: Your Pitch, Motivation, Traits, and Java Level

    Practice a recruiter screen for a Java-focused software engineer role: a short pitch, your motivation, two strengths, one weakness, and an honest Java self-rating backed by coursework.

    Behavioralbehavioralhr-screenself-introductionself-assessment
  • System DesignHardModel answer
    Build a Fault-Tolerant Money Transfer Ledger at Scale

    Design a distributed ledger for account-to-account transfers that stays strictly consistent, avoids overdrafts and duplicate charges, and survives crashes at any point.

    System Designsystem-designledgeracididempotency
  • Stacks & QueuesMediumModel answer
    Simulated Stock Trading Signals and Two-Char String Reduction

    Solve two streaming state problems: daily stock trading based on sign patterns in O(N) time and two-character substring elimination using an in-place stack.

    Stacks & Queuesstacks-queuesarraysstringsmath-bits
  • BehavioralMediumModel answer
    Navigating Critical Feedback and Delivering Beyond Baseline Requirements

    Learn how to present two behavioral narratives detailing how you constructively resolved negative feedback and how you safely exceeded project requirements with measurable impact.

    Behavioralbehavioralstar-frameworkleadership-principlescommunication
  • BehavioralMediumModel answer
    Mastering the Engineering Manager Behavioral & Technical Leadership Screen

    A framework for answering technical leadership prompts covering mission alignment, org structures, AI developer tooling, and measurable team impact.

    Behavioralengineering-managementleadershipai-assisted-developmentbehavioral-interview
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Slow, Costly Support Complaints from Three Tables

    Use complaint, resolution and rating tables to find insights, propose and prioritize fixes, design a rollout test, and discuss bias and confounding.

    Statistics & Experimentsexperimentationcausal-inferencemetricscustomer-support
  • StringsEasyModel answer
    Round Decimal Strings to a Power-of-Ten Step, No Floats

    Round a decimal string to the nearest integer, then to a power-of-ten step such as 100 or 0.1, using only string and digit operations and a clearly stated tie-breaking rule.

    Stringsstringsroundingbig-numberscarry
  • Machine LearningMediumModel answer
    Bias-Variance, Normalization Axes, and Gradient Decay in Deep Nets

    Explain the bias-variance tradeoff, compare batch and layer normalization, and describe why gradients vanish in deep networks and how architecture can prevent it.

    Machine Learningbias-variancebatch-normalizationlayer-normalizationvanishing-gradients
  • Data Structure DesignMediumModel answer
    Non-Blocking Concurrent Log Writer with Bounded Buffer

    Build a thread-safe logger whose callers never wait on slow sink I/O, preserving submission order, bounding memory, and flushing every accepted message on shutdown.

    Data Structure Designconcurrencyproducer-consumerbounded-queuebackpressure
  • System DesignHardModel answer
    Multi-Tenant File Vault with Per-User Limits and Compression

    Design a multi-user file storage backend that handles uploads, downloads and copies, enforces per-user space limits, and transparently compresses data, with durability, security and testing covered.

    System Designsystem-designstoragequotascompression
  • System DesignMediumModel answer
    Design a Persistent Local Key-Value Store

    Architect an in-memory key-value cache backed by persistent disk storage, focusing on crash resilience, append-only logging, compaction, and high-volume value optimizations.

    System Designsystem-designcachingstoragedurability
  • Machine LearningMediumModel answer
    Comparing RLHF with Reward Models against Direct Preference Optimization

    Analyze the architecture, loss functions, training complexity, and theoretical connections between traditional PPO-based RLHF and Direct Preference Optimization (DPO).

    Machine LearningLLMsRLHFDPOAlignment
  • BehavioralMediumModel answer
    Walking Through Your Track Record as a Mentor

    Explain how you have guided other engineers: the scale and duration, the goals and results, your working methods, and one difficult mentoring relationship and what came of it.

    Behavioralmentorshipleadershipcoachingstar-method
  • System DesignMediumModel answer
    Design a Multi-Agent AI Chat Platform for Financial Services

    Design a scalable and secure backend system for an LLM-powered multi-agent financial assistant with real-time streaming, conversation persistence, and strict compliance controls.

    System Designsystem-designllm-architecturestreamingdistributed-systems
  • Statistics & ExperimentsHardModel answer
    Planning Runtime and Stopping Rules for a Delivery Add-On Test

    Size an A/B test on a 22% conversion metric with household clustering, plan weekly sequential looks, and estimate how variance reduction shortens the run.

    Statistics & Experimentspower-analysissample-sizedesign-effectgroup-sequential
  • Machine LearningHardModel answer
    Automated Diagnosis Coding Engine for Long Clinical Notes

    Design a service that reads long clinical notes, suggests ICD-10 codes with calibrated confidence and cited evidence, and learns from medical coder corrections over time.

    Machine Learningnlpextreme-multi-labelml-system-designlong-documents
  • BehavioralMediumModel answer
    Recruiter Culture Screen for a Streaming Ads Engineer

    Prepare short, honest, well-structured answers for a 30-minute non-technical recruiter call covering motivation, background, a hard challenge, a core value and feedback.

    Behavioralbehavioralrecruiter-screenstar-methodculture-fit
  • System DesignHardModel answer
    Fault-Tolerant Router for Multiple LLM API Vendors

    Design a client library that spreads LLM calls across several vendors, enforcing limits, isolating failures, and choosing providers by cost and latency while staying thread-safe and observable.

    System Designcircuit-breakerrate-limitingload-balancingretries
  • SQL & DataMediumModel answer
    Gap Between a User's Two Latest Views of the Same Ad

    Write one SQL query returning, per user and ad with at least two views, the newest and second-newest timestamps plus the gap between them in seconds.

    SQL & Datasqlwindow-functionsrow-numbertimestamp-arithmetic
  • BehavioralEasyModel answer
    Demonstrating Accountability and Handling Product Out-of-Stock Scenarios

    Learn how to present technical mistakes responsibly using structured frameworks and design resilient workflows for out-of-stock items in multi-party marketplaces.

    BehavioralBehavioralSystem DesignMarketplace OperationsIncident Management
  • Statistics & ExperimentsMediumModel answer
    Partnership Profit Equations and Break-Even: Restaurant and Card Cases

    Build profit equations, derive break-even volumes and the cost mix that holds profit flat, then stress-test a recommendation for a restaurant deal and a credit/debit product.

    Statistics & Experimentsunit-economicsbreak-evencontribution-marginsensitivity-analysis
  • Machine LearningMediumModel answer
    Building a Training Set for an OCR Error-Correction Model

    Design a scalable pipeline that scores noisy OCR pages, distills a small verified gold set from a stronger LLM, and filters out pages too degraded to repair.

    Machine Learningllm-fine-tuningdata-pipelinesynthetic-dataocr
  • Machine LearningMediumModel answer
    Conditions for Boundedness in Unconstrained Quadratic Minimization

    Analyze when an unconstrained scalar quadratic function has a finite minimum, and derive the optimal solution set and value using matrix properties.

    Machine Learningoptimizationconvexitylinear-algebraquadratic-form
  • BehavioralMediumModel answer
    Leading Platform-Wide Architectural Shifts and AI Integration

    Demonstrate Staff-level leadership by articulating how you drive cross-team platform migrations, resolve technical resistance, safely incorporate AI tooling, and deliver lasting impact.

    Behavioralleadershiparchitectureai-adoptioncross-team-collaboration
  • BehavioralMediumModel answer
    Navigating Team Disagreements Over Shared Events

    Learn how to resolve team conflicts around off-site planning while balancing majority preferences, inclusion, individual privacy, and clear decision-making.

    Behavioralconflict resolutioninclusive leadershipcommunicationstakeholder management
  • System DesignMediumModel answer
    Design a B2B Product Engagement & Liking System

    Design a scalable backend architecture for product likes on a wholesale platform, handling dual-access querying, search result enrichment, counter aggregation, and brand metrics.

    System Designsystem-designdata-modelingcachingscalability
  • Data Structure DesignMediumModel answer
    Build an In-Memory Ledger with Deposits and Transfers

    Implement an in-memory ledger class supporting account creation, deposits and transfers, with clear return codes, invariants, retry safety and concurrency choices.

    Data Structure Designhash-mapclass-designidempotencyconcurrency
  • BehavioralMediumModel answer
    Demonstrate Deep Technical Troubleshooting and Problem Resolution

    Structure a behavioral response demonstrating technical investigation beyond initial surface assumptions to identify, verify, and permanently prevent a complex issue.

    BehavioralBehavioralProblem SolvingRoot Cause AnalysisLeadership
  • BehavioralMediumModel answer
    Telling Your Career Story and Why This Company and Role

    Practice a concise answer on why you want to join a commerce-focused company, why you chose your degree and grad school path, and why an ML engineering role fits you now.

    Behavioralbehavioralmotivationcareer-narrativerecruiter-screen
  • BehavioralMediumModel answer
    Walking Through a System You Built: Architecture Review Prep

    Prepare to present a system you built with a diagram, an end-to-end flow, ownership boundaries, key decisions and alternatives, and how it fails and recovers, without inventing numbers.

    Behavioralarchitecture-reviewtechnical-deep-diveownershipdesign-tradeoffs