← Amazon roles

Interview question tracker

Amazon Coding Interview Questions — Last 3 months

Practice 371 coding questions from Amazon company-tagged LeetCode lists in the source’s last 3 months reporting window. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 371

DoneQuestionLeetCode
Two SumSolve
LRU CacheSolve
3SumSolve
Add Two NumbersSolve
Best Time to Buy and Sell StockSolve
Container With Most WaterSolve
Koko Eating BananasSolve
Longest Common PrefixSolve
Longest Palindromic SubstringSolve
Longest Substring Without Repeating CharactersSolve
Minimum Time to Complete All DeliveriesSolve
Number of IslandsSolve
Trapping Rain WaterSolve
Avoid Flood in The CitySolve
Binary Tree Maximum Path SumSolve
Climbing StairsSolve
Combine Two TablesSolve
Copy List with Random PointerSolve
Find Peak ElementSolve
First Missing PositiveSolve
Group AnagramsSolve
Letter Combinations of a Phone NumberSolve
Longest Consecutive SequenceSolve
Majority ElementSolve
Maximum SubarraySolve
Median of Two Sorted ArraysSolve
Merge IntervalsSolve
Merge Two Sorted ListsSolve
N-QueensSolve
Next PermutationSolve
Palindrome NumberSolve
Remove Duplicates from Sorted ArraySolve
Reorganize StringSolve
Roman to IntegerSolve
Rotate ArraySolve
Search in Rotated Sorted ArraySolve
Single Element in a Sorted ArraySolve
Subarray Sum Equals KSolve
Top K Frequent ElementsSolve
Valid ParenthesesSolve
Word SearchSolve
Add BinarySolve
Balanced Binary TreeSolve
Binary Tree Level Order TraversalSolve
Coin ChangeSolve
Confirmation RateSolve
Contains DuplicateSolve
Course ScheduleSolve
Course Schedule IISolve
Create Hello World FunctionSolve
Daily TemperaturesSolve
Diameter of Binary TreeSolve
Edit DistanceSolve
Employees Earning More Than Their ManagersSolve
Evaluate DivisionSolve
Find First and Last Position of Element in Sorted ArraySolve
Find Median from Data StreamSolve
First Unique Character in a StringSolve
Flood FillSolve
Fruit Into BasketsSolve
Gas StationSolve
Generate ParenthesesSolve
House RobberSolve
Insert Delete GetRandom O(1)Solve
Kth Largest Element in an ArraySolve
Largest NumberSolve
Largest Rectangle in HistogramSolve
Lowest Common Ancestor of a Binary TreeSolve
Managers with at Least 5 Direct ReportsSolve
Maximum Depth of Binary TreeSolve
Meeting Rooms IISolve
Merge k Sorted ListsSolve
Merge Sorted ArraySolve
Min StackSolve
Minimum Window SubstringSolve
Next Greater Element ISolve
Next Greater Element IISolve
Pacific Atlantic Water FlowSolve
Partition Equal Subset SumSolve
Pascal's TriangleSolve
Populating Next Right Pointers in Each NodeSolve
Product of Array Except SelfSolve
Recyclable and Low Fat ProductsSolve
Regular Expression MatchingSolve
Remove ElementSolve
Reverse Linked ListSolve
Reverse Nodes in k-GroupSolve
Rotate ListSolve
Rotate StringSolve
Rotting OrangesSolve
Serialize and Deserialize Binary TreeSolve
Single NumberSolve
Sliding Window MaximumSolve
Spiral MatrixSolve
String CompressionSolve
SubsetsSolve
Trapping Rain Water IISolve
Valid SudokuSolve
Valid Triangle NumberSolve
Word LadderSolve
Word Search IISolve
4SumSolve
Add Two Numbers IISolve
All Nodes Distance K in Binary TreeSolve
All O`one Data StructureSolve
Analyze User Website Visit PatternSolve
Array PartitionSolve
Article Views ISolve
Assign CookiesSolve
Basic Calculator IISolve
Best Time to Buy and Sell Stock IISolve
Binary SearchSolve
Binary Tree Inorder TraversalSolve
Binary Tree Right Side ViewSolve
Binary Tree Zigzag Level Order TraversalSolve
Burst BalloonsSolve
CandySolve
Capacity To Ship Packages Within D DaysSolve
Cheapest Flights Within K StopsSolve
Consecutive NumbersSolve
Contiguous ArraySolve
Convert Integer to the Sum of Two No-Zero IntegersSolve
Count and SaySolve
Count Bowl SubarraysSolve
Count Elements With Maximum FrequencySolve
Count Number of Rectangles Containing Each PointSolve
Count Subarrays With Median KSolve
Critical Connections in a NetworkSolve
Decode StringSolve
Delete Duplicate EmailsSolve
Delete Node in a Linked ListSolve
Delete Nodes From Linked List Present in ArraySolve
Design Circular QueueSolve
Diagonal TraverseSolve
Distribute Coins in Binary TreeSolve
Dungeon GameSolve
Exclusive Time of FunctionsSolve
Find K Pairs with Smallest SumsSolve
Find the DifferenceSolve
Find the Duplicate NumberSolve
Find the Index of the First Occurrence in a StringSolve
Find the Minimum Amount of Time to Brew PotionsSolve
Find the Number of Ways to Place People ISolve
Find Triangular Sum of an ArraySolve
Find X-Sum of All K-Long Subarrays ISolve
Fizz BuzzSolve
Fraction to Recurring DecimalSolve
Frequency of the Most Frequent ElementSolve
Furthest Building You Can ReachSolve
Game of LifeSolve
Happy NumberSolve
House Robber IIISolve
Immediate Food Delivery IISolve
Integer to English WordsSolve
Intersection of Two ArraysSolve
Is SubsequenceSolve
Isomorphic StringsSolve
Jump GameSolve
Jump Game IISolve
Lexicographically Smallest Permutation Greater Than TargetSolve
LFU CacheSolve
Linked List CycleSolve
Longest Increasing SubsequenceSolve
Longest Repeating Character ReplacementSolve
Lowest Common Ancestor of a Binary Search TreeSolve
Majority Element IISolve
Make Array Elements Equal to ZeroSolve
Max Consecutive OnesSolve
Maximum Average Subarray ISolve
Maximum Number of Distinct Elements After OperationsSolve
Maximum Number of Operations to Move Ones to the EndSolve
Maximum Profit in Job SchedulingSolve
Maximum Total Damage With Spell CastingSolve
Maximum Units on a TruckSolve
Maximum Width of Binary TreeSolve
Merge Strings AlternatelySolve
Minimum Add to Make Parentheses ValidSolve
Minimum Number of People to TeachSolve
Minimum Operations to Make the Integer ZeroSolve
Missing NumberSolve
Most Stones Removed with Same Row or ColumnSolve
Move ZeroesSolve
Non-overlapping IntervalsSolve
Nth Highest SalarySolve
Number of People Aware of a SecretSolve
Odd Even Linked ListSolve
Online Stock SpanSolve
Palindrome Partitioning IISolve
Palindromic SubstringsSolve
Peak Index in a Mountain ArraySolve
Permutation in StringSolve
Permutations IISolve
Power of TwoSolve
Predict the WinnerSolve
Ransom NoteSolve
Recover Binary Search TreeSolve
Repeated Substring PatternSolve
Reverse IntegerSolve
Reverse Linked List IISolve
Rising TemperatureSolve
Rotate ImageSolve
Running Sum of 1d ArraySolve
Same TreeSolve
Search a 2D MatrixSolve
Search in Rotated Sorted Array IISolve
Search Insert PositionSolve
Second Highest SalarySolve
Set Matrix ZeroesSolve
Smallest Missing Non-negative Integer After OperationsSolve
Sort ColorsSolve
Split Array Largest SumSolve
Sqrt(x)Solve
String to Integer (atoi)Solve
Subarray Product Less Than KSolve
Subarrays with K Different IntegersSolve
Successful Pairs of Spells and PotionsSolve
Sudoku SolverSolve
Sum of Subarray MinimumsSolve
Sum of Subarray RangesSolve
Surrounded RegionsSolve
Swim in Rising WaterSolve
Taking Maximum Energy From the Mystic DungeonSolve
TriangleSolve
Two Sum II - Input Array Is SortedSolve
Valid AnagramSolve
3Sum ClosestSolve
Add StringsSolve
Best Time to Buy and Sell Stock VSolve
Big CountriesSolve
Binary Tree CamerasSolve
Boats to Save PeopleSolve
Bulb SwitcherSolve
Bus RoutesSolve
Car PoolingSolve
Check if Array Is Sorted and RotatedSolve
Clone GraphSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Contains Duplicate IISolve
Contains Duplicate IIISolve
Count Binary SubstringsSolve
Count Good NumbersSolve
Count the Number of Substrings With Dominant OnesSolve
Count Zero Request ServersSolve
Create a DataFrame from ListSolve
Degree of an ArraySolve
Delete and EarnSolve
Department Top Three SalariesSolve
Design Excel Sum FormulaSolve
Design Hit CounterSolve
Design Task ManagerSolve
Design Tic-Tac-ToeSolve
Design TwitterSolve
Distinct SubsequencesSolve
Divide Two IntegersSolve
Evaluate Reverse Polish NotationSolve
Even Odd TreeSolve
Fibonacci NumberSolve
Find Eventual Safe StatesSolve
Find in Mountain ArraySolve
Find K Closest ElementsSolve
Find N Unique Integers Sum up to ZeroSolve
Find the CelebritySolve
Find the K-Sum of an ArraySolve
Find the Maximum Achievable NumberSolve
Find the Minimum Area to Cover All Ones IISolve
First Bad VersionSolve
Flatten Binary Tree to Linked ListSolve
Game Play Analysis ISolve
House Robber IISolve
How Many Numbers Are Smaller Than the Current NumberSolve
Implement Stack using QueuesSolve
Increasing Triplet SubsequenceSolve
Insert Delete GetRandom O(1) - Duplicates allowedSolve
Insert IntervalSolve
Insertion Sort ListSolve
Invert Binary TreeSolve
Is Graph Bipartite?Solve
Jewels and StonesSolve
Kth Missing Positive NumberSolve
Largest Divisible SubsetSolve
Largest Triangle AreaSolve
Last Stone WeightSolve
Length of Longest V-Shaped Diagonal SegmentSolve
Lexicographically Smallest String After Applying OperationsSolve
Linked List Cycle IISolve
Longest Common SubsequenceSolve
Longest Harmonious SubsequenceSolve
Longest Palindromic SubsequenceSolve
Longest String ChainSolve
Longest Valid ParenthesesSolve
Max Consecutive Ones IIISolve
Maximal RectangleSolve
Maximal SquareSolve
Maximize the Minimum Powered CitySolve
Maximum 69 NumberSolve
Maximum Candies Allocated to K ChildrenSolve
Maximum Frequency of an Element After Performing Operations ISolve
Maximum Frequency StackSolve
Maximum Number of Events That Can Be AttendedSolve
Maximum Product SubarraySolve
Min Cost Climbing StairsSolve
Minimum Falling Path SumSolve
Minimum Height TreesSolve
Minimum Number of Days to Make m BouquetsSolve
Minimum Number of Groups to Create a Valid AssignmentSolve
Minimum Number of Increments on Subarrays to Form a Target ArraySolve
Minimum Number of Operations to Make All Array Elements Equal to 1Solve
Minimum Operations to Equalize Binary StringSolve
Minimum Sum of Four Digit Number After Splitting DigitsSolve
Most Beautiful Item for Each QuerySolve
N-th Tribonacci NumberSolve
Next Greater Node In Linked ListSolve
Number of Digit OneSolve
Number of Operations to Make Network ConnectedSolve
Number of Subsequences That Satisfy the Given Sum ConditionSolve
Open the LockSolve
Partition LabelsSolve
PermutationsSolve
Plates Between CandlesSolve
Plus OneSolve
Pow(x, n)Solve
Power Grid MaintenanceSolve
Product Price at a Given DateSolve
Product Sales Analysis IIISolve
Range Sum Query - ImmutableSolve
Rank ScoresSolve
Remove All Adjacent Duplicates in String IISolve
Remove Duplicates from Sorted Array IISolve
Remove Duplicates from Sorted ListSolve
Remove Linked List ElementsSolve
Reorder ListSolve
Replace Employee ID With The Unique IdentifierSolve
Restaurant GrowthSolve
Reverse StringSolve
Reverse Vowels of a StringSolve
Reverse Words in a StringSolve
Robot Bounded In CircleSolve
Russian Doll EnvelopesSolve
Score of a StringSolve
Scramble StringSolve
Search a 2D Matrix IISolve
Search Suggestions SystemSolve
Shortest Common SupersequenceSolve
Shortest PalindromeSolve
Simplify PathSolve
Single Number IISolve
SleepSolve
Sort Array By ParitySolve
Sort ListSolve
Spiral Matrix IISolve
Students and ExaminationsSolve
Subsets IISolve
Substring with Concatenation of All WordsSolve
Sum of Perfect Square AncestorsSolve
Swapping Nodes in a Linked ListSolve
Symmetric TreeSolve
Task SchedulerSolve
Text JustificationSolve
Time Based Key-Value StoreSolve
To Be Or Not To BeSolve
Transpose MatrixSolve
Two Sum IV - Input is a BSTSolve
Ugly NumberSolve
Unique Number of OccurrencesSolve
Unique PathsSolve
Valid Palindrome IISolve
Validate Binary Search TreeSolve
Vertical Order Traversal of a Binary TreeSolve
Vowel SpellcheckerSolve
Water Bottles IISolve
Zigzag ConversionSolve