KatInterview

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

Interview Practice Problems

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

6086
Problems
2256
Auto-graded
15
Topics
275
Added today

Showing 3961–3990 of 6086 results

  • BehavioralMediumModel answer
    Walk Through a Project, Then Pitch Your Fit for the Role

    Present a technical project with real depth and ownership, then connect your background to a specific company and role using only verified facts.

    Behavioralproject walkthroughmotivationtechnical depthownership
  • SQL & DataEasyModel answer
    Keeping LEFT JOIN Intact While Picking One Shipment per Order

    Explain why moving a shipment predicate from ON to WHERE turns a LEFT JOIN into an INNER JOIN, then write a query that keeps every qualifying order and attaches only its latest expedited shipment.

    SQL & Datasqljoinswindow-functionsdata-modeling
  • Machine LearningHardModel answer
    ML System Design: Intersection Maneuver Intent Prediction

    Design an ML pipeline that classifies each vehicle at an intersection as turning left, going straight, or turning right, given a short trajectory history and optional map context.

    Machine Learningautonomous-drivingsequence-modelingsystem-design
  • Machine LearningMediumModel answer
    Build and Compare Credit Risk Models: Logistic vs Tree Ensemble

    Develop both a linear baseline and a tree-based classifier for predicting loan defaults, covering feature engineering, validation, calibration, and deployment.

    Machine Learningclassificationimbalanced-datamodel-calibrationscikit-learn
  • Machine LearningHardModel answer
    Build a Real-Time ML Prediction Service

    Design an ML inference API that serves predictions in milliseconds, handling multitenancy, model rollouts, monitoring, and graceful degradation.

    Machine Learningml-systemsinferencelatencyproduction-ml
  • BehavioralMediumModel answer
    Building Ethics and Governance Into a Model Lifecycle

    Walk through how you embed fairness, transparency, and independent oversight into every stage of model development and deployment.

    Behavioralmodel governancefairnessML ethicsregulatory compliance
  • System DesignHardModel answer
    Design a Multiplayer Game Ranking System

    Build a backend that tracks player scores, displays global and friend rankings, shows a player's position with nearby competitors, and supports multiple time periods.

    System Designleaderboardhigh-throughputcachingreal-time
  • System DesignHardModel answer
    Design a real-time group messaging platform

    Design a scalable chat platform with channels and DMs supporting millions of users, sub-200ms delivery, message ordering, presence, and cross-device history sync.

    System Designreal-time-messagingwebsocketsscalabilitypub-sub
  • System DesignMediumModel answer
    Fault-Tolerant Selenium Text Scraper for Dynamic Pages

    Write a Python function that waits for two CSS-selected elements to become visible on a JS-rendered page and returns their text, with None for any that time out.

    System Designseleniumbrowser-automationexplicit-waitspython
  • System DesignHardModel answer
    Designing an Order-Routing Platform Over Async Exchange APIs

    Design a crypto order-routing service that fronts unreliable third-party exchange APIs with async fills, exactly-once effects, spiky load, and a durable ledger.

    System Designsystem-designdistributed-systemsidempotencystate-machine
  • BehavioralMediumModel answer
    Articulating Career Vision and Team Alignment

    Demonstrate how your professional aspirations connect to the role and organization while providing behavioral evidence of collaboration and values-driven work.

    Behavioralcareer-goalscultural-fitcollaborationbehavioral
  • Stacks & QueuesEasyAuto-graded
    Balanced Delimiter Validation with a Stack

    Decide whether a bracket-only string is properly nested and matched, using a LIFO stack of pending openers.

    Stacks & Queuesstackstringsparsing
  • BehavioralEasyModel answer
    Leading Under Pressure: Ownership, Growth, and Release Judgment

    Practice four behavioral prompts covering project leadership, personal growth, team inclusion, and a pre-release bug decision with no time to fix it.

    Behavioralleadershipdecision-makingteamworkrelease-management
  • System DesignMediumModel answer
    Design an AI Feature for a Ride-Sharing Platform

    Pick a rider or driver pain point, propose an AI-powered solution, and define how you'd measure whether it actually works.

    System Designproduct designAI/MLmarketplacemetrics
  • System DesignHardModel answer
    Design a Timeline-Anchored Live Reaction Stream

    Design a system that attaches viewer comments to specific moments on a video timeline, staying synchronized across live watching, replay, seeking, and reconnection.

    System Designreal-timestreamingdistributed-systemsfanout
  • Arrays & HashingMediumAuto-graded
    Longest Strictly Increasing Contiguous Run

    Tests whether a candidate can scan an array in a single linear pass to find the length of the longest strictly increasing contiguous run.

    Arrays & Hashingarrayssliding-windowgreedy
  • System DesignMediumModel answer
    Design a 1:1 Chat System for a Buyer-Seller Marketplace

    Design a real-time direct messaging platform supporting message ordering, delivery receipts, offline notifications, and multi-device sync at marketplace scale.

    System Designwebsocketsmessagingdistributed-systemsreal-time
  • Machine LearningHardModel answer
    KL Divergence: From Definition to LLM Training

    Define KL divergence, explain its asymmetry and support requirements, and walk through how it appears in language model training and alignment.

    Machine Learningkl-divergencelanguage-modelsrlhfinformation-theory
  • Trees & GraphsMediumAuto-graded
    Column-Ordered Tree Values From a Level-Order Array

    Bucket level-order tree nodes by column, then sort each column by depth and value to produce the grouped output.

    Trees & Graphsbinary-treebreadth-first-searchsortinghash-map
  • System DesignHardModel answer
    Designing a Data Integrity System for Multi-Store Order Data

    Design a validation and reconciliation pipeline that enforces order-book correctness across a set of loosely coupled databases with different freshness guarantees.

    System Designfinancial systemsdata validationreconciliationevent-driven
  • System DesignHardModel answer
    Estimating Document Read Time in a Collaborative Writing Tool

    Design a read-time estimation feature for a cloud document editor: model, validation strategy, system architecture, and success metrics.

    System Designproduct-designestimationmachine-learningmetrics
  • BehavioralHardModel answer
    Handling Ambiguity, Stakeholder Conflict, and Urgent Pivots

    Demonstrate ownership under uncertainty, prioritization when an emergency disrupts planned work, influencing without authority, and translating lessons into scalable systems.

    Behavioralleadershipprioritizationconflict-resolutioncross-functional
  • Data Structure DesignMediumModel answer
    Build a Collapsible JSON Tree Renderer in React

    Create a React component that parses a JSON string and displays it as an interactive, expandable tree structure.

    Data Structure Designreactrecursioncomponent-designstate-management
  • StringsMediumAuto-graded
    Reconstruct Digit Sequence from a Jumbled Letter Pool

    Tests whether a candidate can decode digit counts from a scrambled multiset of English number-word letters using systematic letter-frequency elimination.

    Stringsstringshash-mapgreedy-intervals
  • BehavioralMediumModel answer
    Engineering Manager Story: Team Impact, Quality, and People Growth

    Walk through your management career with concrete examples of team impact, holding the engineering bar, handling underperformance, and growing people into larger roles.

    Behavioralengineering-managerleadershipperformance-managementteam-building
  • BehavioralMediumModel answer
    Three Core Stories: Collaboration, Disagreement, and Mistake

    Prepare three distinct experiences—contributing to a team, navigating a disagreement, and recovering from a mistake—told with specificity and honest reflection.

    Behavioralbehavioralcommunicationteamworkleadership
  • Arrays & HashingMediumAuto-graded
    Find Gaps in Traffic Segment Assignments

    Tests set-based membership filtering over a bounded integer range, with duplicate and out-of-bounds input handling.

    Arrays & Hashingsetsfilteringranges
  • Arrays & HashingMediumAuto-graded
    Check for Subarray Summing to Target

    Tests the ability to use prefix sums and a hash set to detect whether any contiguous slice of an array sums to a given value.

    Arrays & Hashingprefix-sumhash-setsubarray
  • Machine LearningMediumModel answer
    Binary Classification Loss: Derivation and Gradient Computation

    Derive the cross-entropy objective for binary logistic regression from first principles and compute its gradients with respect to parameters.

    Machine Learninglogistic-regressionmaximum-likelihoodgradientsregularization
  • Arrays & HashingMediumAuto-graded
    Locate Symbol-Structure Templates in a Number Grid

    Tests whether a candidate can slide a letter-template over an integer grid and detect every position where symbols and values form a valid one-to-one correspondence.

    Arrays & Hashinghash-mappattern-matchingmatrixisomorphism