KatInterview

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

Interview Practice Problems

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

6048
Problems
2239
Auto-graded
15
Topics
272
Added today

Showing 1351–1380 of 6048 results

  • Statistics & ExperimentsMediumModel answer
    Game Plan for a 30-Question Speed Probability Test

    Design a concrete strategy for a strictly timed probability and statistics quiz: pacing, question ordering, guessing policy, answer checks, and which techniques to master.

    Statistics & Experimentsprobabilitytime-managementmental-mathtest-strategy
  • Greedy & IntervalsEasyAuto-graded
    Partition Array Under Segment Capacity Limit

    Determine the minimum number of contiguous segments needed to split an array such that no segment's total sum exceeds a specified capacity limit.

    Greedy & Intervalsarraysgreedy
  • SQL & DataEasyAuto-graded
    Find Nth Highest Distinct Salary

    Find the Nth highest unique value in a list of integers, returning None if N is out of valid bounds.

    SQL & Dataarrayssortingsql
  • BehavioralMediumModel answer
    Walk Through Your Hardest Engineering Project End to End

    Tell the story of the most demanding project you have shipped, showing what made it hard, what you personally decided and built, the tradeoffs involved, and how you know it worked.

    Behavioralbehavioralproject-deep-diveownershiptradeoffs
  • Arrays & HashingMediumAuto-graded
    Find Unique Integer Triplets Summing to Target

    Finds all unique value triplets in an integer array that sum to a specified target using sorting, two-pointer scanning, and pruning.

    Arrays & Hashingarraystwo-pointerssortingdeduplication
  • BehavioralMediumModel answer
    Describe a Complex Engineering Problem You Solved and What You Learned

    Learn how to answer behavioral questions about technical challenges by structuring your response around trade-offs, analytical methods, metrics, and actionable reflections.

    Behavioralbehavioralproblem-solvingincident-responsesystem-reliability
  • BehavioralMediumModel answer
    Answering "Why Move On, and Why This Team?" in a Screen

    Craft a concise, honest answer on why you're open to a new role now and why this opportunity fits, backed by research and with sensible open questions.

    Behavioralbehavioralmotivationrecruiter-screencareer-narrative
  • Heaps, Sorting & SearchMediumAuto-graded
    Longest Equal Cable Segment From Spools

    Find the largest integer segment length such that cutting every spool into equal segments yields at least k segments, using binary search on a monotonic feasibility check.

    Heaps, Sorting & Searchbinary-searchbinary-search-on-answermonotonic-predicatearrays
  • System DesignMediumModel answer
    Processes vs Threads: Trade-offs and When to Use Each

    Explain how OS processes and threads differ in isolation, scheduling, switching cost, communication, failure and security, and justify which to choose for real production services.

    System Designoperating-systemsconcurrencyprocessesthreads
  • Data Structure DesignMediumModel answer
    Build a Shutdown-Aware Producer/Consumer Queue in C++

    Design a generic, thread-safe C++ queue where consumers block when it is empty and a shutdown call releases every waiting thread once the remaining items are drained.

    Data Structure Designcppconcurrencymutexcondition-variable
  • Heaps, Sorting & SearchMediumModel answer
    Exact Mode, Median and Balanced Sort Over Ten Message-Passing Nodes

    Integers live on ten machines that can only exchange messages. Write per-node programs for the exact mode, the median and a balanced global sort while sending as little data as possible.

    Heaps, Sorting & Searchdistributed-systemsmapreducesample-sortselection
  • Trees & GraphsEasyAuto-graded
    Nearest Node in a Binary Search Tree

    Find the value in a Binary Search Tree represented as a level-order array that has the smallest absolute difference to a target number.

    Trees & Graphstrees-graphsbinary-search-treesearch
  • System DesignEasyModel answer
    Build a Scheduled Hourly Feed of Public Weather Observations

    Design a pipeline that polls a public weather provider for thousands of locations each hour, stores normalized history without duplicates, and serves fresh data reliably.

    System Designsystem-designdata-ingestionschedulingrate-limiting
  • System DesignMediumModel answer
    Triaging a CPU Saturation Incident on a Customer-Facing API

    Talk through how you would scope, diagnose, mitigate and follow up when a revenue-critical public API suddenly runs near 100% CPU, and justify your choice among rollback, scaling, throttling and queues.

    System Designincident-responsetroubleshootingprofilingcapacity
  • Statistics & ExperimentsHardModel answer
    Growing Active Users of a Team Messaging Product via Experiments

    Design a growth plan for a workplace chat tool with weak adoption: pick metrics, form hypotheses, plan a sequence of A/B tests, and set pre-agreed ship criteria.

    Statistics & Experimentsab-testinggrowth-metricsnetwork-effectsexperiment-design
  • System DesignHardModel answer
    Build a Read-Optimized Geo-Replicated Key-Value Database

    Design a multi-region key-value database tuned for heavy reads, covering storage engine, sharding, replication, consistency, failure handling, hotspots and capacity planning.

    System Designdistributed-systemskey-value-storereplicationconsistency
  • Data Structure DesignMediumModel answer
    Expiring Store, Reversible Actions, and Org Chart Walk

    Three short design-and-code tasks: a key-value store with per-entry lifetimes and background pruning, an action history with undo/redo, and a depth-first walk over a hierarchy.

    Data Structure Designcachettlmin-heapundo-redo
  • Data Structure DesignMediumModel answer
    Photo Slideshow with Ranked Comment Threads and Safe Voting

    Design a slideshow widget plus per-photo comment threads with idempotent voting and fast top-k ranking, scaling to 10^5 photos and 10^6 comments.

    Data Structure Designdata-structure-designsorted-indexidempotencypagination
  • BehavioralMediumModel answer
    Four Workplace Tension Stories: Manager, Ambiguity, Coaching, Peers

    Prepare structured stories for four behavioral prompts: disagreeing with a manager, handling vague requirements, coaching a colleague, and working with a hard-to-collaborate-with peer.

    Behavioralbehavioralstar-methodconflict-resolutionmentoring
  • System DesignMediumModel answer
    Design a Real-Time Event Venue Booking Platform Architecture

    Design a high-level architecture for an event venue reservation platform, focusing on double-booking prevention, concurrency control, and interval-based storage.

    System Designsystem-designconcurrencydatabase-designdistributed-systems
  • BehavioralMediumModel answer
    Demonstrating Responsible AI Usage and Code Verification in Engineering

    Describe how you effectively integrate AI tools into your software development workflow while maintaining code quality through rigorous validation and human oversight.

    Behavioralai-toolscode-qualitysoftware-engineering-practicesbehavioral
  • Trees & GraphsMediumAuto-graded
    Fewest Moves Through a Walled Maze

    Compute the minimum number of 4-directional moves between two open cells of a binary maze, or -1 if unreachable; tests breadth-first search on an implicit grid graph.

    Trees & Graphsbfsgridshortest-pathgraph
  • StringsMediumAuto-graded
    Order Distinct Letters-Only Tokens by Popularity

    Extract case-insensitive ASCII-letter tokens from text, count them, and list the distinct words by descending count with alphabetical tie-breaks.

    Stringshash-mapstring-parsingsortingfrequency-count
  • Data Structure DesignEasyModel answer
    Python Tuples, Dict Internals, and Error Handling in a Record Store

    Answer three fundamentals questions: tuple rebinding and shallow immutability, how a hash table handles insert, lookup, update and delete, and where to raise and catch errors in a record class.

    Data Structure Designpythonimmutabilitytupleshash-table
  • System DesignMediumModel answer
    Microservice Security Architecture: Identity, Secrets, and Response

    Design an enterprise microservice security blueprint covering mTLS workload identity, dynamic secret management, zero-downtime rotation, and immediate secret compromise containment.

    System Designsecuritymtlsvaultsecrets-management
  • Math & Bit ManipulationEasyAuto-graded
    Calculate Credit Card Portfolio Metrics and Partnership Break-Even

    Computes the annual net contribution per card, overall portfolio profit, and the minimum number of new accounts needed to cover a marketing campaign.

    Math & Bit Manipulationmathfinancial-modelingarithmetic
  • Heaps, Sorting & SearchMediumAuto-graded
    Route Jobs to Workers with Account Stickiness

    Simulate FIFO dispatch of tasks to workers with a preference for each account's last worker, using heaps and a lookup table to track free and busy workers.

    Heaps, Sorting & Searchheapsimulationschedulinghash-map
  • Math & Bit ManipulationMediumModel answer
    Eight Number Puzzles: Spot the Rule, Predict the Next Value

    Work out the hidden rule behind eight short numeric and fractional sequences, state the next term for each, and justify it against every given term.

    Math & Bit Manipulationsequencespattern-recognitionrecurrence-relationsmental-math
  • Data Structure DesignMediumAuto-graded
    Earliest Non-Repeating ID in a Live Feed Replay

    Replay a sequence of operations on a stream of integer IDs and report, at each query, the earliest-arriving ID seen exactly once, using a hash map plus an ordered queue.

    Data Structure Designhash-mapqueuedesignstreaming
  • BehavioralMediumModel answer
    Tackling a Problem That Beat You, Your Team, and Your AI Tools

    Behavioral prompt: tell the story of a hard technical problem that peers and AI assistants couldn't crack, and show the method you used to make progress anyway.

    Behavioralbehavioraldebuggingproblem-solvingreliability