practice a little every day, paws crossed ♡
Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 91–120 of 781 results
- AmazonMediumSoftware EngineerMinimize Global Replacements to Make Values Contiguous
Determine the minimum number of global value replacements needed so that every remaining value in an array forms a single contiguous block.
Coding & AlgorithmsOnline Assessmentintervalsgreedyhash-table - AmazonMediumSoftware EngineerMinimize Grid Inconvenience by Adding One Delivery Center
Add at most one delivery center to minimize the maximum Chebyshev distance from ordinary grid cells to their nearest center.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMinimize operations to reduce price difference
This question evaluates algorithm design and array-manipulation skills, focusing on reasoning about constrained transfers of value, invariants, and the minimization of operation counts under a fixed per-operation bound.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMinimize time for two handlers
This problem tests your ability to use dynamic programming or greedy strategies with state tracking to minimize the total completion time of tasks assigned to two distinct handlers.
Coding & AlgorithmsOnline AssessmentDynamic ProgrammingOptimizationGreedy - AmazonMediumSoftware EngineerMinimum Path Length Through a Grid With One Allowed Cell Conversion
This problem tests your ability to adapt BFS to a state-space graph where an additional dimension represents the remaining capacity to modify the grid, requiring efficient state tracking to find the shortest path.
Coding & AlgorithmsOnline AssessmentBFSGraphShortest Path - AmazonHardSoftware EngineerMinimum Priority Conflicts When Interleaving Two Lowercase Strings
From an Amazon online assessment: merge two lowercase strings into one while keeping each string's internal order, where smaller letters have higher priority and every lower-priority letter placed before a higher-priority one counts as a conflict. Return the minimum possible number of conflicts over all valid merges.
Coding & AlgorithmsOnline Assessment - AmazonMediumData ScientistPrioritize Tasks and Respond to Coworker Concerns
This interview question evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer for Prioritize Tasks and Respond to Coworker Concerns states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Behavioral & LeadershipOnline Assessment - AmazonHardData ScientistQuantify build-vs-buy training decision
This question evaluates proficiency in quantitative decision analysis, causal inference for experimentation, KPI definition, and risk‑adjusted financial modeling within the Analytics & Experimentation domain, assessing skills relevant for a Data Scientist making operational trade‑offs.
Analytics & ExperimentationOnline Assessment - AmazonMediumSoftware EngineerRate Engineering Work Simulation Responses
This situational judgment exercise evaluates your ability to balance technical quality, customer impact, ownership, and stakeholder communication when resolving high-stakes engineering dilemmas under tight deadlines.
Behavioral & LeadershipOnline Assessmentsituational-judgmentleadership-principlesamazon-oa - AmazonMediumProduct ManagerRecovering a Lost Deliverable
Practice a PM incident scenario about recovering lost documentation for a regulated train station build. The solution covers diagnosis, backup recovery, document recreation, stakeholder communication, schedule rebaseline, critical path management, and prevention controls.
Product / Decision MakingOnline Assessment - AmazonMediumSoftware EngineerRepair a Django Post-Creation Endpoint and Its React Contract
Implement and repair a Django REST Framework view and serializer for post creation to satisfy frontend React contract requirements, ensure atomic tag associations, and enforce authenticated author assignment.
Software Engineering FundamentalsOnline AssessmentDjangoREST APIDatabase Transactions - AmazonMediumSoftware EngineerSimulate one disc-flipping board game move across all eight directions
Simulate one move of a two-player disc-flipping board game: place a piece, flip every run of opponent pieces enclosed by the player's own pieces in all eight directions, and return the board unchanged when the move is illegal. It tests careful grid traversal, precise legality rules and avoiding partial updates.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerSolve jumps and anagram-similarity problems
This two-part question evaluates algorithmic problem-solving skills: Task A focuses on combinatorial optimization and cost-based sequencing under quadratic jump costs, while Task B assesses string multiset reasoning and character-frequency manipulation to determine anagram similarity.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerSolve median extremes and segment flips
Solve median extremes and segment flips evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerSolve string partition and equal-sum package problems
Solve string partition and equal-sum package problems evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding & AlgorithmsOnline Assessment - AmazonHardData ScientistSolve subset-count and kth-factor problems
This question evaluates algorithm design and analysis skills, including selection under sum constraints with negatives and zeros, streaming and query-preprocessing strategies for repeated budgets, and number-theoretic factor enumeration for large N, all within the Coding & Algorithms domain.
Coding & AlgorithmsOnline Assessment - AmericanMediumSoftware EngineerCover the Most Points with an Axis-Aligned Rectangle of Bounded Perimeter
Maximize point coverage with an axis-aligned rectangle under a perimeter budget, including boundary points and repeated coordinates.
Coding & AlgorithmsOnline Assessment - AmericanMediumSoftware EngineerSpread Nine Stones Across a Three-by-Three Grid with Minimum Moves
Calculate the minimum number of orthogonal moves needed to distribute stones so that every cell in a 3x3 grid contains exactly one stone.
Coding & AlgorithmsOnline AssessmentBacktrackingRecursionMatrix - AmericanMediumSoftware EngineerStructure a Pizza-Ordering System with Four Discount Policies
Design an extensible object-oriented order pricing system for a pizzeria that models pizzas, applies four distinct discount policies with specific composition rules, and returns an itemized, explainable receipt.
Software Engineering FundamentalsOnline AssessmentObject-Oriented DesignDesign PatternsData Structures - AnthropicHardMachine Learning EngineerDebug a NumPy Extremely Randomized Trees Classifier
Anthropic Fellows debugging-OA practice: find the eight crash and accuracy bugs in a from-scratch NumPy Extra-Trees classifier until it matches scikit-learn.
Machine LearningOnline AssessmentAnthropic FellowsAI Safety Fellowshipdebugging - AnthropicHardMachine Learning EngineerExtend an LLM Inference Server with a Prefix KV Cache
Anthropic Fellows OA practice: add exact-match, prefix and shared-prefix KV caching with an LRU token budget to an existing LLM inference server, keeping greedy outputs identical.
ML System DesignOnline AssessmentAnthropic FellowsAI Safety Fellowshipllm-inference - AnthropicHardMachine Learning EngineerImplement a Simplified DNS Resolver
Implement an in-memory DNS resolver supporting A and CNAME record lookups, domain name normalization, TTL expiration, and CNAME alias chain cycle detection.
Coding & AlgorithmsOnline AssessmentHash TableGraphDesign - AnthropicMediumSoftware EngineerImplement an in-memory DB with TTL backup/restore
Implement an in-memory nested key-value store supporting field-level time-to-live (TTL) expiration and snapshot backup/restore operations.
Coding & AlgorithmsOnline Assessmentdata-structuresdesignhash-map - AppleMediumSoftware EngineerMerge Two Strings Using the Longest Edge Overlap
Compare both suffix-to-prefix concatenation orders, merge the longest edge overlap, and favor the original string order when overlap lengths tie.
Coding & AlgorithmsOnline Assessment - AqrMediumData ScientistAutopilot a Thruster Drone Through Randomized Canyon Walls
Write a per-tick controller that fires a drone's thruster so it clears wall openings on unseen, randomized canyons. Tests modeling deterministic physics, depth-limited lookahead search, and choosing a horizon that generalizes.
Software Engineering FundamentalsOnline Assessmentsimulationsearchgame-ai - AqrMediumData ScientistAutopilot for a Flappy Bird-Style Game Across Maps with Varying Pipe Gaps
Build an autopilot for a Flappy Bird-style game that decides on every step whether the bird should flap so it flies through pipe gaps whose heights vary across unseen maps. Tests modeling the game's physics, planning ahead under a time budget, collision handling, and generalizing beyond a single map.
Software Engineering FundamentalsOnline Assessment - AqrMediumData ScientistAutopilot for a Submarine Navigating Shifting Reef Gaps
Write a controller that decides, on every tick, whether a mini-submarine should blow ballast to rise through reef-pair gaps of varying heights on unseen maps, using a short deterministic lookahead search.
Software Engineering FundamentalsOnline Assessmentsimulationsearchgame-ai - AtlassianMediumData ScientistImplement sliding-window rate limiter with dual thresholds
This question evaluates a candidate's skill in implementing efficient online sliding-window rate limiting, covering stream processing, time-based window management, per-key state maintenance, algorithmic complexity analysis, and formal correctness reasoning.
Coding & AlgorithmsOnline Assessment - AtlassianMediumData ScientistMinimize max L1 radius with k centers in 1D
This question evaluates algorithmic problem-solving skills and understanding of clustering and optimization concepts, specifically the 1D k-center (minimax L1) problem, greedy feasibility tests, binary-search-on-answer techniques, numerical stability with large coordinates, and time/space complexity analysis relevant for a Data Scientist role.
Machine LearningOnline Assessment - Bank of AmericaMediumData ScientistAnswer behavioral prompts for quant internship
Answer behavioral prompts for quant internship evaluates behavioral evidence, ownership, communication, trade-offs, and measurable outcomes in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Behavioral & LeadershipOnline Assessment