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 61–90 of 781 results
- AmazonHardSoftware EngineerFewest Severity Inversions When Interleaving Two Patch Queues
Merge two severity-labeled patch queues into one install order that keeps each queue's internal order, and return the minimum number of severity inversions over every valid merge. Tests DP over two sequences and efficient counting with letters as priorities.
Coding & AlgorithmsOnline Assessmentdynamic-programmingstringsinversions - AmazonHardSoftware EngineerFind Longest Activatable Server Streak
This problem tests your ability to use the sliding window technique to find the longest contiguous subarray that satisfies a specific count-based constraint.
Coding & AlgorithmsOnline AssessmentSliding WindowTwo PointersArray - AmazonHardSoftware EngineerFind a Maximum-Sum Window in a Sparse Array
This problem tests the ability to optimize sliding window calculations for extremely large arrays by leveraging compressed data structures (run-length encoding) rather than materializing the full array.
Coding & AlgorithmsOnline AssessmentSliding WindowArraysOptimization - AmazonMediumSoftware EngineerFind a valid dependency order
This question evaluates understanding of directed graphs, dependency resolution and cycle detection, and the ability to reason about valid ordering constraints within a graph representation.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind longest segment with dominant ends
This question evaluates algorithmic problem-solving with arrays and complexity-aware design, testing skills in efficient subarray identification, boundary reasoning, and performance analysis within the Coding & Algorithms domain.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind longest segment with endpoints > interior
This question evaluates algorithmic design and array-processing skills, specifically reasoning about subarray endpoint vs interior relationships, range comparisons, and designing solutions with subquadratic time and space complexity.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind minimum days to deliver all orders
This question evaluates algorithm design and combinatorial optimization skills, focusing on scheduling and load-balancing under per-center capacity constraints and frequency-based counting.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind minimum time for irrecoverable password
This question evaluates string-processing skills, combinatorial counting of substrings, simulation of time-based state changes, and algorithmic complexity analysis.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind minimum total range-increment to sort
This problem tests your ability to determine the minimum total operations required to make an array non-decreasing by incrementing contiguous subarrays, requiring insights into difference arrays or monotonic properties.
Coding & AlgorithmsOnline AssessmentGreedyArraysDifference Array - AmazonMediumSoftware EngineerFind the K Most Frequent Values
Find any valid set of the k most frequent distinct integers, handling boundary ties with frequency counting, bounded heaps, or frequency buckets.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerFind the Largest Rating Threshold Supported by K Instances
Find the largest k for which at least k instance ratings are at least k, handling threshold equality and the zero-answer case.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerFind the Maximum Island Area
Find the largest four-neighbor island area in a binary matrix, including the component-size challenges of row-by-row streaming.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerFix a Broken Podcast Episode Search Against Five Behavior Rules
Fix a broken podcast episode search function so it matches substrings case-insensitively, supports searching by title, host, or both, sorts results correctly, and excludes unpublished episodes.
Software Engineering FundamentalsOnline Assessmentdebuggingtestingsearch - AmazonHardSoftware EngineerFix a Buggy Spring Boot Movie Search Against Five Search Rules
From an Amazon online assessment: fix a buggy Spring Boot movie search backend so that search is partial-match and case-insensitive, can target titles, stars or all fields, sorts by popularity with further keys, and returns only published movies. It tests debugging layered code, query logic and test-first verification.
Software Engineering FundamentalsOnline Assessment - AmazonMediumSoftware EngineerFix the Password Reset Workflow
Implement and debug a stateful password reset manager that handles token generation, time-to-live (TTL) expiry, brute-force attempt limits, and single-use token invalidation.
Software Engineering FundamentalsOnline AssessmentAuthenticationState MachineSecurity - AmazonMediumSoftware EngineerGroup Anagrams Without Sorted Character Signatures
Group anagrams without sorting each word's characters, preserving repeated words and reasoning about frequency signatures and overflow-prone encodings.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerImplement Review Content Moderation
This problem tests your ability to design a content moderation service that efficiently checks for prohibited words and maintains a running count of violations per user using a stateful metadata store.
Software Engineering FundamentalsOnline AssessmentHash MapsData StructuresState Management - AmazonMediumSoftware EngineerImplement basic calculator
This question evaluates skill in parsing and evaluating arithmetic expressions with integer operands and the operators +, -, *, and /, focusing on operator precedence and evaluation order within the Coding & Algorithms domain.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerInventory Allocation by Bid Priority
Implement a tiered inventory allocation system that distributes limited stock among buyer bids based on price tiers and round-robin priority rules.
Coding & AlgorithmsOnline AssessmentSimulationSortingGreedy - AmazonMediumSoftware EngineerMax total of k consecutive bags over disjoint valued segments, modulo 1e9+7
Disjoint segments [l, r, v] give every bag from position l to r the value v, and all other bags in an endless row are empty. Find the largest total over k consecutive bags, returned modulo 1,000,000,007, when k and positions reach 10^9, testing window sums over sparse ranges that cut through segments.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerMaximize capacity with primary-backup pairing
This problem tests your ability to optimize resource pairing using greedy strategies or sorting to maximize total capacity under specific pair-wise constraints.
Coding & AlgorithmsOnline AssessmentGreedySortingOptimization - AmazonMediumSoftware EngineerMaximize credits with limited skips
This question evaluates algorithm design and optimization skills in resource allocation under constraints, focusing on decision-making to maximize credits when turn-taking and limited skips affect processing.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMaximize memory capacity with primary-backup servers
This question evaluates algorithmic reasoning in constrained pairings and resource allocation, focusing on maximizing aggregate memory under pairwise feasibility constraints while managing large input sizes.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMaximize protected population and bitwise AND
This problem tests your ability to optimize resource allocation using greedy approaches with priority queues and bitwise bit-manipulation techniques to satisfy mathematical constraints.
Coding & AlgorithmsOnline AssessmentGreedyBit ManipulationPriority Queue - AmazonMediumSoftware EngineerMaximize protected population with one-step guard shifts
This question evaluates the ability to reason about constrained local moves and optimize a numerical objective over an array, testing skills in array manipulation, combinatorial optimization, and interpretation of binary state representations.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMaximize total bandwidth of data channel pairs
This question evaluates a candidate's ability to design efficient algorithms for combinatorial optimization and selection under constraints, testing understanding of array manipulation, ordered pair counting, and aggregation of bandwidth sums.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerMaximize weighted subsequence pairs with wildcards
This question evaluates combinatorial counting, string manipulation, and optimization under constraints, along with handling large-number results via modular arithmetic.
Coding & AlgorithmsOnline Assessment - AmazonHardSoftware EngineerMerge Two Job Queues With the Fewest Urgency Inversions
Interleave two digit sequences, keeping each one's order, so that the merged sequence has as few inversions as possible. Tests charging each inversion to its earlier element, which turns the problem into an O(mn) grid DP.
Coding & AlgorithmsOnline Assessmentdynamic-programmingstringsinversions - AmazonHardSoftware EngineerMinimize Branch Merge Conflicts
This question evaluates understanding of combinatorial optimization, set operations, and order-dependent state management, requiring reasoning about how commit file modifications accumulate across branch merges.
Coding & AlgorithmsOnline Assessment - AmazonMediumSoftware EngineerMinimize Circular Redistribution Cost
This problem tests your ability to handle circular array indexing and perform efficient redistributions using modulo arithmetic and prefix sum concepts.
Coding & AlgorithmsOnline AssessmentArraysModuloOptimization