KatInterview

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

Interview Practice Problems

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

6000
Problems
2221
Auto-graded
15
Topics
272
Added today

Showing 571–600 of 3779 results

  • System DesignMediumModel answer
    Build a Live Bike Rental Platform: Tracking, Holds and Unlocks

    Design a bike rental backend where riders see nearby bikes live, hold one, unlock it, and end the trip, covering telemetry ingestion, geospatial lookup and race-free reservations.

    System Designsystem-designgeospatialconcurrencyiot
  • System DesignMediumModel answer
    Building a Duplicate-Safe Money Movement Service with Settlement Matching

    Design a service that moves customer funds through external bank rails without double-charging, tracks each transfer's lifecycle, and repairs mismatches using daily bank settlement files.

    System Designidempotencypaymentsstate-machinereconciliation
  • Data Structure DesignMediumModel answer
    Design a Safe, Idempotent Auto-Approval Engine for Order Refunds

    Design and code a refund decision engine that applies pluggable rules, never refunds more than was paid, and handles retried or concurrent requests without paying twice.

    Data Structure Designdomain-modelingidempotencyrules-enginemoney-handling
  • System DesignMediumModel answer
    Designing a Bot Dispatch Service for Joining Online Meetings

    Design the backend between a web UI and a pool of meeting-joining bots that safely assigns bots, tracks session state, and recovers from failures at 100K concurrent sessions.

    System Designsystem-designqueuesleasesidempotency
  • BehavioralHardModel answer
    Choosing a Training Platform Across Competing Teams

    Lead HR, Security, Legal and Finance to a single choice among a basic vendor, a premium vendor and an in-house build, with guardrails, a decision memo, fallbacks and 90-day metrics.

    Behavioralstakeholder-managementtrade-offsdecision-memodata-governance
  • BehavioralMediumModel answer
    Choosing a Post-Layoff Path With a Pending Green Card

    Decide among seven post-layoff options for a visa-dependent engineer using explicit criteria, a weighted matrix, a clear recommendation, and a 90-day plan with pivot triggers.

    Behavioraldecision-makingcareer-planningtrade-offsrisk-assessment
  • BehavioralMediumModel answer
    Walking Through Your Hardest Project From Start to Finish

    Practice presenting one demanding project end to end: goal, data, people, your role, obstacles, trade-offs, validation and measurable outcomes.

    Behavioralbehavioralproject-deep-diveownershipleadership
  • Machine LearningMediumModel answer
    ML System Evaluation, Sequence Architectures, Distribution Drift, and Optimizers

    A deep-dive technical interview covering model validation strategies, metrics, sequence model trade-offs (RNNs vs. Transformers), distribution shift detection, and optimizer selection.

    Machine Learningevaluation metricssequence modelingdistribution shiftoptimizers
  • System DesignMediumModel answer
    Build a Recommendation Engine Pairing Freelance Experts with Open Jobs

    Design a low-latency engine that recommends eligible, available freelancers for client jobs, handles newcomers with no track record, and learns from downstream hiring outcomes.

    System Designsystem-designrecommendationrankingcold-start
  • System DesignMediumModel answer
    Building a Secure Login and Session Service for a Cloud App

    Design a login and session service for web and API clients using email and password, extensible to federated identity, with strong credential handling, abuse defenses, and a plan for 10x growth.

    System Designauthenticationsessionssecurityscalability
  • BehavioralMediumModel answer
    Navigating High-Stakes Technical Complexity and Architectural Trade-offs

    Demonstrate technical leadership, data-driven decision-making, and self-awareness by explaining how you resolved a high-stakes engineering challenge using the STAR methodology.

    Behavioralbehavioraltechnical leadershiparchitecturetrade-offs
  • Machine LearningMediumModel answer
    Validating a Smile Classifier in a Photo Library App

    Design a plan to prove a smile detection feature in a photo app works, covering labels, metrics, hard cases, fairness, pipeline tests, rollout and monitoring.

    Machine Learningmodel-evaluationground-truthfairnessprecision-recall
  • System DesignMediumModel answer
    Demystifying Relational Database Transactions and Isolation

    Understand the core mechanics of database transactions, the ACID guarantees, ANSI isolation levels, concurrency anomalies, and underlying MVCC implementation details.

    System Designdatabasesacidconcurrencytransactions
  • Machine LearningMediumModel answer
    Self-Information, Log Bases, and Perplexity in Language Models

    Define the information content of a token, explain how the log base sets its unit, link it to cross-entropy and perplexity, and spot common mistakes when reading or comparing these numbers.

    Machine Learninginformation-theorylanguage-modelingcross-entropyperplexity
  • Data Structure DesignHardModel answer
    Design a Tree-Based Storage Simulator with Auto-Renaming

    Build an in-memory file store that auto-creates parent folders, renames clashing files with the lowest free numeric tag, and lists folder contents in ASCII order.

    Data Structure Designdesigntreehash-setstrings
  • System DesignMediumModel answer
    Optimizing Airport Wi-Fi Monetization and Guest Connectivity

    Redesign the product strategy for a venue-based internet service offering limited free access followed by paid tiers to increase revenue and passenger satisfaction.

    System Designproduct-designpricing-strategyfunnel-optimizationuser-experience
  • SQL & DataMediumModel answer
    Quarterly Revenue Query and Largest-File Shell Script

    Write a SQL query that totals 2023 sales by quarter, and a robust bash script that finds the largest file under a directory, handling odd filenames and error cases.

    SQL & Datasqlaggregationgroup-bybash
  • BehavioralMediumModel answer
    Four Behavioral Stories: Conflict, Ownership, Learning, Pressure

    Prepare structured STAR stories for four common behavioral prompts: a disagreement, owning a deadline-driven project, learning a new area quickly, and staying clear under rapid questioning.

    BehavioralbehavioralSTARleadershipconflict-resolution
  • BehavioralEasyModel answer
    Three Stories: Feedback, Sudden Change, and Disagreement

    Prepare three behavioral stories about coaching or receiving feedback, adapting to a mid-project shift, and resolving a disagreement, each with trade-offs, communication and measurable results.

    BehavioralbehavioralSTARfeedbackconflict-resolution
  • System DesignMediumModel answer
    Architecting a Streaming LLM Chat Backend at Scale

    Design a backend that streams model-generated tokens to many concurrent users, covering the API, GPU inference fleet, KV-cache memory management, autoscaling and multi-turn session state.

    System Designllm-servingkv-cachecontinuous-batchingstreaming
  • SQL & DataMediumModel answer
    Rolling ETA median, DiD and CUPED uplift on ride-request data

    Build a gap-free daily city series with a 7-day rolling median ETA and conversion in PostgreSQL, then estimate uplift with city-level DiD and a CUPED-adjusted, cluster-robust estimate in Python.

    SQL & Datapostgresqlwindow-functionsdate-spinedifference-in-differences
  • Data Structure DesignMediumModel answer
    Pluggable Payment Dispatch with Spring Bean Maps

    Design an extensible payment dispatcher in Spring where a Map of strategy beans is injected automatically and new payment methods need no changes to the service.

    Data Structure Designjavaspringstrategy-patternsolid
  • BehavioralMediumModel answer
    Diagnosing a Sluggish Web UI and Handling a Live Defect

    Explain how you would find and fix the cause of a slow web frontend, then how you would triage, contain, root-cause, communicate and safely ship a fix for a production bug.

    Behavioraldebuggingperformanceincident-responsefrontend
  • Statistics & ExperimentsMediumModel answer
    Investigating a Sustained Order Decline in a Delivery Market

    Walk through how to validate, decompose, and explain a two-week fall in completed orders in one metro, then propose a fix and a way to test it in a two-sided marketplace.

    Statistics & Experimentsproduct-analyticsroot-cause-analysisfunnel-analysiscausal-inference
  • System DesignMediumModel answer
    Crash-Safe Parallel Downloader for Versioned App Updates

    Design an update downloader that fetches a large versioned release in parallel byte ranges, resumes after crashes without redoing verified work, and publishes only a fully verified result.

    System Designsystem-designresumable-downloadsbyte-rangeintegrity-verification
  • System DesignHardModel answer
    Building a Voice Assistant Knowledge Pipeline for Festivals and Wildlife

    Design an end-to-end knowledge pipeline for a voice assistant answering holiday and animal questions, fix mis-routed queries, and build a framework for debugging failures.

    System Designdata-pipelineknowledge-graphentity-linkingintent-classification
  • Statistics & ExperimentsMediumModel answer
    Diagnosing Revenue Decline in a Revenue-Share Merchant Loan

    Design metrics for a merchant cash-advance style lending product, then diagnose a quarterly revenue drop and separate product, risk, pricing, mix, and macro causes.

    Statistics & Experimentsproduct-analyticsmetric-designroot-cause-analysiscausal-inference
  • Machine LearningMediumModel answer
    Truncated Sampling from Logits with a Cumulative Probability Cutoff

    Write a NumPy function that turns logits into probabilities, keeps the smallest top-ranked set whose mass reaches a threshold p, renormalizes, and draws one token index.

    Machine Learningnumpysamplingsoftmaxllm-decoding
  • SQL & DataMediumModel answer
    User Spend Tiers in Pandas and Daily Platform Conversion in SQL

    Build a per-user revenue and distinct-purchase table with tiers in Pandas, then write SQL for daily purchase-to-click conversion by platform over the last 30 days.

    SQL & Datapandasgroupbysqlconditional-aggregation
  • System DesignMediumModel answer
    Smart Parcel Cubby Network: Reservations and Offline Kiosks

    Design a backend for networked parcel cubbies in three sizes, preventing double booking of the last cubby and staying consistent when kiosks lose connectivity.

    System Designsystem-designconcurrencyreservationsidempotency