Amazon - LeetCode 9/28/22, 8:43 PM
(/problems/find-
LeetCode is hiring! Apply NOW.
0k-closest-
New (/contest/)
(/) Explore(/explore/) Problems(/problemset/all/) Interview Contest Discuss(/discuss/) (https://leetcode.com/jobs/)
Store
elements/)
! Amazon
Problems Discuss
Notice
We've improved our algorithm that calculates company tags and their frequencies to be more
accurate and current.
This page updates weekly on Saturday.
You can filter the results by different time periods.
You have solved 148 / 668 problems.
Show problem tags Select time period: 6 months
# Title Acceptance Difficulty Frequency "
2272 Substring With Largest Variance 37.2% Hard
(/problems/substring-with-largest-variance)
2281 Sum of Total Strength of Wizards 27.7% Hard
(/problems/sum-of-total-strength-of-
wizards)
828 Count Unique Characters of All Substrings 51.4% Hard
of a Given String (/problems/count-unique-
characters-of-all-substrings-of-a-given-
string)
# 1152 Analyze User Website Visit Pattern 43.5% Medium
(/problems/analyze-user-website-visit-
pattern) $
# 937 Reorder Data in Log Files 56.4% Medium
(/problems/reorder-data-in-log-files)
472 Concatenated Words 45.2% Hard
(/problems/concatenated-words)
# 2214 Minimum Health to Beat Game 57.8% Medium
(/problems/minimum-health-to-beat-game)
$
# 2104 Sum of Subarray Ranges (/problems/sum- 60.2% Medium
of-subarray-ranges)
# 146 LRU Cache (/problems/lru-cache) 40.5% Medium
# 200 Number of Islands (/problems/number-of- 56.0% Medium
islands)
2193 Minimum Number of Moves to Make 48.9% Hard
Palindrome (/problems/minimum-number-
of-moves-to-make-palindrome)
# 973 K Closest Points to Origin (/problems/k- 65.9% Medium
closest-points-to-origin)
# 1268 Search Suggestions System 66.7% Medium
(/problems/search-suggestions-system)
2355 Maximum Number of Books You Can Take 47.8% Hard
(/problems/maximum-number-of-books-
you-can-take)
https://leetcode.com/company/amazon/ Page 1 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
you-can-take) $
2102 Sequentially Ordinal Rank Tracker 66.1% Hard
(/problems/sequentially-ordinal-rank-
tracker)
2262 Total Appeal of A String (/problems/total- 58.0% Hard
appeal-of-a-string)
273 Integer to English Words 29.8% Hard
(/problems/integer-to-english-words)
# 127 Word Ladder (/problems/word-ladder) 36.5% Hard
719 Find K-th Smallest Pair Distance 36.2% Hard
(/problems/find-k-th-smallest-pair-
distance)
# 2055 Plates Between Candles (/problems/plates- 44.9% Medium
between-candles)
# 2221 Find Triangular Sum of an Array 79.2% Medium
(/problems/find-triangular-sum-of-an-array)
588 Design In-Memory File System 48.7% Hard
(/problems/design-in-memory-file-system)
$
# 253 Meeting Rooms II (/problems/meeting- 50.3% Medium
rooms-ii) $
2222 Number of Ways to Select Buildings 50.3% Medium
(/problems/number-of-ways-to-select-
buildings)
42 Trapping Rain Water (/problems/trapping- 58.6% Hard
rain-water)
# 23 Merge k Sorted Lists (/problems/merge-k- 48.2% Hard
sorted-lists)
1597 Build Binary Expression Tree From Infix 62.0% Hard
Expression (/problems/build-binary-
expression-tree-from-infix-expression) $
2268 Minimum Number of Keypresses 75.1% Medium
(/problems/minimum-number-of-
keypresses) $
2386 Find the K-Sum of an Array (/problems/find- 35.4% Hard
the-k-sum-of-an-array)
1044 Longest Duplicate Substring 30.7% Hard
(/problems/longest-duplicate-substring)
# 545 Boundary of Binary Tree 44.2% Medium
(/problems/boundary-of-binary-tree) $
1710 Maximum Units on a Truck 74.1% Easy
(/problems/maximum-units-on-a-truck)
# 994 Rotting Oranges (/problems/rotting- 52.4% Medium
oranges)
# 210 Course Schedule II (/problems/course- 47.8% Medium
schedule-ii)
# 207 Course Schedule (/problems/course- 45.3% Medium
schedule)
# 348 Design Tic-Tac-Toe (/problems/design-tic- 57.5% Medium
tac-toe) $
https://leetcode.com/company/amazon/ Page 2 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
# 1567 Maximum Length of Subarray With Positive 43.6% Medium
Product (/problems/maximum-length-of-
subarray-with-positive-product)
2130 Maximum Twin Sum of a Linked List 81.8% Medium
(/problems/maximum-twin-sum-of-a-
linked-list)
239 Sliding Window Maximum 46.6% Hard
(/problems/sliding-window-maximum)
# 767 Reorganize String (/problems/reorganize- 52.7% Medium
string)
1628 Design an Expression Tree With Evaluate 82.5%
Function (/problems/design-an-expression- Medium
tree-with-evaluate-function) $
# 1603 Design Parking System (/problems/design- 88.0% Easy
parking-system)
140 Word Break II (/problems/word-break-ii) 44.1% Hard
1730 Shortest Path to Get Food 54.0% Medium
(/problems/shortest-path-to-get-food) $
# 863 All Nodes Distance K in Binary Tree 62.0% Medium
(/problems/all-nodes-distance-k-in-binary-
tree)
# 49 Group Anagrams (/problems/group- 65.8% Medium
anagrams)
# 138 Copy List with Random Pointer 50.2% Medium
(/problems/copy-list-with-random-pointer)
295 Find Median from Data Stream 51.0% Hard
(/problems/find-median-from-data-stream)
2294 Partition Array Such That Maximum 72.3% Medium
Difference Is K (/problems/partition-array-
such-that-maximum-difference-is-k)
909 Snakes and Ladders (/problems/snakes- 40.8% Medium
and-ladders)
# 17 Letter Combinations of a Phone Number 55.4% Medium
(/problems/letter-combinations-of-a-
phone-number)
# 12 Integer to Roman (/problems/integer-to- 60.4% Medium
roman)
# 1864 Minimum Number of Swaps to Make the 41.6% Medium
Binary String Alternating
(/problems/minimum-number-of-swaps-to-
make-the-binary-string-alternating)
# 1 Two Sum (/problems/two-sum) 49.1% Easy
135 Candy (/problems/candy) 40.6% Hard
907 Sum of Subarray Minimums 34.3% Medium
(/problems/sum-of-subarray-minimums)
2357 Make Array Zero by Subtracting Equal 72.3% Easy
Amounts (/problems/make-array-zero-by-
subtracting-equal-amounts)
# 297 Serialize and Deserialize Binary Tree 54.8% Hard
(/problems/serialize-and-deserialize-binary-
tree)
https://leetcode.com/company/amazon/ Page 3 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
tree)
212 Word Search II (/problems/word-search-ii) 37.1% Hard
818 Race Car (/problems/race-car) 43.6% Hard
827 Making A Large Island (/problems/making- 44.7% Hard
a-large-island)
399 Evaluate Division (/problems/evaluate- 59.4% Medium
division)
1705 Maximum Number of Eaten Apples 37.6% Medium
(/problems/maximum-number-of-eaten-
apples)
139 Word Break (/problems/word-break) 45.3% Medium
632 Smallest Range Covering Elements from K 60.2% Hard
Lists (/problems/smallest-range-covering-
elements-from-k-lists)
735 Asteroid Collision (/problems/asteroid- 44.3% Medium
collision)
1438 Longest Continuous Subarray With Absolute 47.9% Medium
Diff Less Than or Equal to Limit
(/problems/longest-continuous-subarray-
with-absolute-diff-less-than-or-equal-to-
limit)
2398 Maximum Number of Robots Within Budget 31.2% Hard
(/problems/maximum-number-of-robots-
within-budget)
2340 Minimum Adjacent Swaps to Make a Valid 76.8% Medium
Array (/problems/minimum-adjacent-swaps-
to-make-a-valid-array) $
227 Basic Calculator II (/problems/basic- 42.1% Medium
calculator-ii)
# 4 Median of Two Sorted Arrays 35.0% Hard
(/problems/median-of-two-sorted-arrays)
236 Lowest Common Ancestor of a Binary Tree 57.7% Medium
(/problems/lowest-common-ancestor-of-a-
binary-tree)
2163 Minimum Difference in Sums After Removal 46.5% Hard
of Elements (/problems/minimum-
difference-in-sums-after-removal-of-
elements)
103 Binary Tree Zigzag Level Order Traversal 54.9% Medium
(/problems/binary-tree-zigzag-level-order-
traversal)
1291 Sequential Digits (/problems/sequential- 61.2% Medium
digits)
# 56 Merge Intervals (/problems/merge-intervals) 45.8% Medium
871 Minimum Number of Refueling Stops 39.9% Hard
(/problems/minimum-number-of-refueling-
stops)
1203 Sort Items by Groups Respecting 50.3% Hard
Dependencies (/problems/sort-items-by-
groups-respecting-dependencies)
# 121 Best Time to Buy and Sell Stock 54.5% Easy
(/problems/best-time-to-buy-and-sell-
https://leetcode.com/company/amazon/ Page 4 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
(/problems/best-time-to-buy-and-sell-
stock)
347 Top K Frequent Elements (/problems/top-k- 64.9% Medium
frequent-elements)
# 79 Word Search (/problems/word-search) 39.9% Medium
556 Next Greater Element III (/problems/next- 34.0% Medium
greater-element-iii)
1167 Minimum Cost to Connect Sticks 67.6% Medium
(/problems/minimum-cost-to-connect-
sticks) $
1834 Single-Threaded CPU (/problems/single- 41.9% Medium
threaded-cpu)
2115 Find All Possible Recipes from Given 47.9% Medium
Supplies (/problems/find-all-possible-
recipes-from-given-supplies)
1642 Furthest Building You Can Reach 48.3% Medium
(/problems/furthest-building-you-can-
reach)
# 53 Maximum Subarray (/problems/maximum- 50.0% Medium
subarray)
496 Next Greater Element I (/problems/next- 71.2% Easy
greater-element-i) %
289 Game of Life (/problems/game-of-life) 66.5% Medium
126 Word Ladder II (/problems/word-ladder-ii) 27.6% Hard
981 Time Based Key-Value Store 52.3% Medium
(/problems/time-based-key-value-store)
380 Insert Delete GetRandom O(1) 51.9% Medium
(/problems/insert-delete-getrandom-o1)
1166 Design File System (/problems/design-file- 61.8% Medium
system) $
# 13 Roman to Integer (/problems/roman-to- 58.3% Easy
integer)
# 3 Longest Substring Without Repeating 33.7% Medium
Characters (/problems/longest-substring-
without-repeating-characters)
# 2100 Find Good Days to Rob the Bank 49.1% Medium
(/problems/find-good-days-to-rob-the-
bank)
875 Koko Eating Bananas (/problems/koko- 52.6% Medium
eating-bananas)
420 Strong Password Checker 14.3% Hard
(/problems/strong-password-checker)
99 Recover Binary Search Tree 50.1% Medium
(/problems/recover-binary-search-tree)
322 Coin Change (/problems/coin-change) 41.3% Medium
489 Robot Room Cleaner (/problems/robot- 76.5% Hard
room-cleaner) $
# 76 Minimum Window Substring 39.9% Hard
(/problems/minimum-window-substring)
2376 Count Special Integers (/problems/count- 35.6% Hard
https://leetcode.com/company/amazon/ Page 5 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
2376 Count Special Integers (/problems/count- 35.6% Hard
special-integers)
1091 Shortest Path in Binary Matrix 44.5% Medium
(/problems/shortest-path-in-binary-matrix)
2195 Append K Integers With Minimal Sum 24.7% Medium
(/problems/append-k-integers-with-
minimal-sum)
1429 First Unique Number (/problems/first- 52.6% Medium
unique-number) $
547 Number of Provinces (/problems/number- 63.2% Medium
of-provinces)
979 Distribute Coins in Binary Tree 72.0% Medium
(/problems/distribute-coins-in-binary-tree)
634 Find the Derangement of An Array 41.8% Medium
(/problems/find-the-derangement-of-an-
array) $
2234 Maximum Total Beauty of the Gardens 27.9% Hard
(/problems/maximum-total-beauty-of-the-
gardens)
1011 Capacity To Ship Packages Within D Days 64.4% Medium
(/problems/capacity-to-ship-packages-
within-d-days)
# 22 Generate Parentheses (/problems/generate- 71.6% Medium
parentheses)
# 20 Valid Parentheses (/problems/valid- 40.7% Easy
parentheses) %
694 Number of Distinct Islands 60.5% Medium
(/problems/number-of-distinct-islands) $
540 Single Element in a Sorted Array 58.5% Medium
(/problems/single-element-in-a-sorted-
array)
670 Maximum Swap (/problems/maximum- 47.8% Medium
swap)
55 Jump Game (/problems/jump-game) 38.4% Medium
772 Basic Calculator III (/problems/basic- 48.4% Hard
calculator-iii) $
1209 Remove All Adjacent Duplicates in String II 56.0% Medium
(/problems/remove-all-adjacent-duplicates-
in-string-ii)
# 5 Longest Palindromic Substring 32.4% Medium
(/problems/longest-palindromic-substring)
926 Flip String to Monotone Increasing 59.6% Medium
(/problems/flip-string-to-monotone-
increasing)
1038 Binary Search Tree to Greater Sum Tree 85.3% Medium
(/problems/binary-search-tree-to-greater-
sum-tree)
36 Valid Sudoku (/problems/valid-sudoku) 56.6% Medium
# 618 Students Report By Geography 64.2% Hard
(/problems/students-report-by-geography)
$
560 Subarray Sum Equals K 44.1% Medium
https://leetcode.com/company/amazon/ Page 6 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
560 Subarray Sum Equals K 44.1% Medium
(/problems/subarray-sum-equals-k)
373 Find K Pairs with Smallest Sums 38.4% Medium
(/problems/find-k-pairs-with-smallest-
sums)
1372 Longest ZigZag Path in a Binary Tree 59.6% Medium
(/problems/longest-zigzag-path-in-a-
binary-tree)
1856 Maximum Subarray Min-Product 37.7% Medium
(/problems/maximum-subarray-min-
product)
503 Next Greater Element II (/problems/next- 63.0% Medium
greater-element-ii)
706 Design HashMap (/problems/design- 65.1% Easy
hashmap)
688 Knight Probability in Chessboard 52.0% Medium
(/problems/knight-probability-in-
chessboard)
287 Find the Duplicate Number (/problems/find- 59.1% Medium
the-duplicate-number) %
1293 Shortest Path in a Grid with Obstacles 43.6% Hard
Elimination (/problems/shortest-path-in-a-
grid-with-obstacles-elimination)
2110 Number of Smooth Descent Periods of a 57.2% Medium
Stock (/problems/number-of-smooth-
descent-periods-of-a-stock)
337 House Robber III (/problems/house-robber- 53.8% Medium
iii)
# 198 House Robber (/problems/house-robber) 48.5% Medium
# 269 Alien Dictionary (/problems/alien-dictionary) 35.2% Hard
$
84 Largest Rectangle in Histogram 42.0% Hard
(/problems/largest-rectangle-in-histogram)
# 987 Vertical Order Traversal of a Binary Tree 44.5% Hard
(/problems/vertical-order-traversal-of-a-
binary-tree)
2219 Maximum Sum Score of Array 60.7% Medium
(/problems/maximum-sum-score-of-array)
$
41 First Missing Positive (/problems/first- 36.5% Hard
missing-positive)
32 Longest Valid Parentheses 32.6% Hard
(/problems/longest-valid-parentheses)
823 Binary Trees With Factors 50.1% Medium
(/problems/binary-trees-with-factors)
1151 Minimum Swaps to Group All 1's Together 60.8% Medium
(/problems/minimum-swaps-to-group-all-
1s-together) $
1360 Number of Days Between Two Dates 47.4% Easy
(/problems/number-of-days-between-two-
dates)
# 2 Add Two Numbers (/problems/add-two- 39.6% Medium
https://leetcode.com/company/amazon/ Page 7 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
# 2 Add Two Numbers (/problems/add-two- 39.6% Medium
numbers)
188 Best Time to Buy and Sell Stock IV 37.6% Hard
(/problems/best-time-to-buy-and-sell-
stock-iv)
31 Next Permutation (/problems/next- 37.0% Medium
permutation)
2288 Apply Discount to Prices (/problems/apply- 27.1% Medium
discount-to-prices)
1335 Minimum Difficulty of a Job Schedule 55.8% Hard
(/problems/minimum-difficulty-of-a-job-
schedule)
1197 Minimum Knight Moves 39.8% Medium
(/problems/minimum-knight-moves) $
224 Basic Calculator (/problems/basic- 41.1% Hard
calculator)
695 Max Area of Island (/problems/max-area-of- 71.6% Medium
island)
1525 Number of Good Ways to Split a String 69.5% Medium
(/problems/number-of-good-ways-to-split-
a-string)
25 Reverse Nodes in k-Group 53.2% Hard
(/problems/reverse-nodes-in-k-group)
642 Design Search Autocomplete System 48.7% Hard
(/problems/design-search-autocomplete-
system) $
150 Evaluate Reverse Polish Notation 44.0% Medium
(/problems/evaluate-reverse-polish-
notation)
1723 Find Minimum Time to Finish All Jobs 42.8% Hard
(/problems/find-minimum-time-to-finish-all-
jobs)
304 Range Sum Query 2D - Immutable 51.9% Medium
(/problems/range-sum-query-2d-
immutable)
2070 Most Beautiful Item for Each Query 49.4% Medium
(/problems/most-beautiful-item-for-each-
query)
# 215 Kth Largest Element in an Array 65.6% Medium
(/problems/kth-largest-element-in-an-
array)
658 Find K Closest Elements (/problems/find-k- 45.3% Medium
closest-elements)
# 238 Product of Array Except Self 64.6% Medium
(/problems/product-of-array-except-self)
155 Min Stack (/problems/min-stack) % 51.6% Medium
149 Max Points on a Line (/problems/max- 21.6% Hard
points-on-a-line)
# 15 3Sum (/problems/3sum) 32.1% Medium
1326 Minimum Number of Taps to Open to Water 47.8% Hard
a Garden (/problems/minimum-number-of-
taps-to-open-to-water-a-garden)
https://leetcode.com/company/amazon/ Page 8 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
taps-to-open-to-water-a-garden)
1041 Robot Bounded In Circle (/problems/robot- 55.3% Medium
bounded-in-circle)
841 Keys and Rooms (/problems/keys-and- 70.0% Medium
rooms)
460 LFU Cache (/problems/lfu-cache) 40.3% Hard
787 Cheapest Flights Within K Stops 35.8% Medium
(/problems/cheapest-flights-within-k-stops)
878 Nth Magical Number (/problems/nth- 35.8% Hard
magical-number)
962 Maximum Width Ramp 48.8% Medium
(/problems/maximum-width-ramp)
# 11 Container With Most Water 54.3% Medium
(/problems/container-with-most-water)
1110 Delete Nodes And Return Forest 69.4% Medium
(/problems/delete-nodes-and-return-forest)
1405 Longest Happy String (/problems/longest- 57.3% Medium
happy-string)
1423 Maximum Points You Can Obtain from Cards 52.3% Medium
(/problems/maximum-points-you-can-
obtain-from-cards)
# 34 Find First and Last Position of Element in 41.4% Medium
Sorted Array (/problems/find-first-and-last-
position-of-element-in-sorted-array)
564 Find the Closest Palindrome 21.9% Hard
(/problems/find-the-closest-palindrome)
781 Rabbits in Forest (/problems/rabbits-in- 55.3% Medium
forest)
387 First Unique Character in a String 58.7% Easy
(/problems/first-unique-character-in-a-
string)
1275 Find Winner on a Tic Tac Toe Game 54.3% Easy
(/problems/find-winner-on-a-tic-tac-toe-
game)
581 Shortest Unsorted Continuous Subarray 36.2% Medium
(/problems/shortest-unsorted-continuous-
subarray)
# 62 Unique Paths (/problems/unique-paths) 62.1% Medium
2244 Minimum Rounds to Complete All Tasks 56.9% Medium
(/problems/minimum-rounds-to-complete-
all-tasks)
692 Top K Frequent Words (/problems/top-k- 55.1% Medium
frequent-words)
249 Group Shifted Strings (/problems/group- 64.2% Medium
shifted-strings) $
277 Find the Celebrity (/problems/find-the- 46.8% Medium
celebrity) $
1207 Unique Number of Occurrences 70.9% Easy
(/problems/unique-number-of-occurrences)
493 Reverse Pairs (/problems/reverse-pairs) 30.7% Hard
https://leetcode.com/company/amazon/ Page 9 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
538 Convert BST to Greater Tree 67.2% Medium
(/problems/convert-bst-to-greater-tree)
366 Find Leaves of Binary Tree (/problems/find- 80.0% Medium
leaves-of-binary-tree) $
128 Longest Consecutive Sequence 49.0% Medium
(/problems/longest-consecutive-sequence)
199 Binary Tree Right Side View 61.1% Medium
(/problems/binary-tree-right-side-view)
410 Split Array Largest Sum (/problems/split- 53.1% Hard
array-largest-sum)
1344 Angle Between Hands of a Clock 63.4% Medium
(/problems/angle-between-hands-of-a-
clock)
949 Largest Time for Given Digits 35.3% Medium
(/problems/largest-time-for-given-digits)
# 1972 First and Last Call On the Same Day 54.5% Hard
(/problems/first-and-last-call-on-the-same-
day) $
? 152 Maximum Product Subarray 34.9% Medium
(/problems/maximum-product-subarray)
895 Maximum Frequency Stack 66.8% Hard
(/problems/maximum-frequency-stack)
# 983 Minimum Cost For Tickets 64.4% Medium
(/problems/minimum-cost-for-tickets)
417 Pacific Atlantic Water Flow 53.8% Medium
(/problems/pacific-atlantic-water-flow)
# 33 Search in Rotated Sorted Array 38.5% Medium
(/problems/search-in-rotated-sorted-array)
286 Walls and Gates (/problems/walls-and- 60.1% Medium
gates) $
785 Is Graph Bipartite? (/problems/is-graph- 52.5% Medium
bipartite)
2256 Minimum Average Difference 35.8% Medium
(/problems/minimum-average-difference)
1383 Maximum Performance of a Team 49.0% Hard
(/problems/maximum-performance-of-a-
team)
63 Unique Paths II (/problems/unique-paths-ii) 39.0% Medium
1016 Binary String With Substrings Representing 57.6% Medium
1 To N (/problems/binary-string-with-
substrings-representing-1-to-n)
# 323 Number of Connected Components in an 61.9% Medium
Undirected Graph (/problems/number-of-
connected-components-in-an-undirected-
graph) $
773 Sliding Puzzle (/problems/sliding-puzzle) 63.7% Hard
733 Flood Fill (/problems/flood-fill) 60.1% Easy
993 Cousins in Binary Tree (/problems/cousins- 54.1% Easy
in-binary-tree)
https://leetcode.com/company/amazon/ Page 10 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
134 Gas Station (/problems/gas-station) 45.0% Medium
1258 Synonymous Sentences 56.5% Medium
(/problems/synonymous-sentences) $
542 01 Matrix (/problems/01-matrix) 44.1% Medium
543 Diameter of Binary Tree 55.8% Easy
(/problems/diameter-of-binary-tree)
475 Heaters (/problems/heaters) 36.0% Medium
935 Knight Dialer (/problems/knight-dialer) 49.8% Medium
394 Decode String (/problems/decode-string) 57.3% Medium
# 74 Search a 2D Matrix (/problems/search-a- 46.6% Medium
2d-matrix)
531 Lonely Pixel I (/problems/lonely-pixel-i) $ 60.8% Medium
1740 Find Distance in a Binary Tree 68.8% Medium
(/problems/find-distance-in-a-binary-tree)
$
968 Binary Tree Cameras (/problems/binary- 46.8% Hard
tree-cameras)
# 242 Valid Anagram (/problems/valid-anagram) 62.6% Easy
%
93 Restore IP Addresses (/problems/restore-ip- 43.2% Medium
addresses)
# 243 Shortest Word Distance 64.9% Easy
(/problems/shortest-word-distance) $
114 Flatten Binary Tree to Linked List 60.9% Medium
(/problems/flatten-binary-tree-to-linked-
list)
696 Count Binary Substrings (/problems/count- 65.4% Easy
binary-substrings)
2350 Shortest Impossible Sequence of Rolls 68.0% Hard
(/problems/shortest-impossible-sequence-
of-rolls)
362 Design Hit Counter (/problems/design-hit- 68.3% Medium
counter) $
# 329 Longest Increasing Path in a Matrix 52.0% Hard
(/problems/longest-increasing-path-in-a-
matrix)
721 Accounts Merge (/problems/accounts- 56.3% Medium
merge)
2134 Minimum Swaps to Group All 1's Together II 49.9% Medium
(/problems/minimum-swaps-to-group-all-
1s-together-ii)
518 Coin Change II (/problems/coin-change-ii) 59.6% Medium
45 Jump Game II (/problems/jump-game-ii) 38.4% Medium
51 N-Queens (/problems/n-queens) 62.5% Hard
# 59 Spiral Matrix II (/problems/spiral-matrix-ii) 66.3% Medium
352 Data Stream as Disjoint Intervals 51.4% Hard
(/problems/data-stream-as-disjoint-
intervals)
https://leetcode.com/company/amazon/ Page 11 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
1663 Smallest String With A Given Numeric Value 67.0% Medium
(/problems/smallest-string-with-a-given-
numeric-value)
98 Validate Binary Search Tree 31.6% Medium
(/problems/validate-binary-search-tree)
2096 Step-By-Step Directions From a Binary Tree 48.9% Medium
Node to Another (/problems/step-by-step-
directions-from-a-binary-tree-node-to-
another)
91 Decode Ways (/problems/decode-ways) 31.3% Medium
# 48 Rotate Image (/problems/rotate-image) 69.6% Medium
123 Best Time to Buy and Sell Stock III 44.7% Hard
(/problems/best-time-to-buy-and-sell-
stock-iii)
673 Number of Longest Increasing 42.0% Medium
Subsequence (/problems/number-of-
longest-increasing-subsequence)
1094 Car Pooling (/problems/car-pooling) 57.4% Medium
1726 Tuple with Same Product (/problems/tuple- 60.7% Medium
with-same-product)
449 Serialize and Deserialize BST 56.7% Medium
(/problems/serialize-and-deserialize-bst)
363 Max Sum of Rectangle No Larger Than K 44.1% Hard
(/problems/max-sum-of-rectangle-no-
larger-than-k)
462 Minimum Moves to Equal Array Elements II 60.1% Medium
(/problems/minimum-moves-to-equal-
array-elements-ii)
1509 Minimum Difference Between Largest and 54.7% Medium
Smallest Value in Three Moves
(/problems/minimum-difference-between-
largest-and-smallest-value-in-three-moves)
1679 Max Number of K-Sum Pairs 57.4% Medium
(/problems/max-number-of-k-sum-pairs)
# 122 Best Time to Buy and Sell Stock II 63.1% Medium
(/problems/best-time-to-buy-and-sell-
stock-ii)
903 Valid Permutations for DI Sequence 57.8% Hard
(/problems/valid-permutations-for-di-
sequence)
1497 Check If Array Pairs Are Divisible by k 39.9% Medium
(/problems/check-if-array-pairs-are-
divisible-by-k)
815 Bus Routes (/problems/bus-routes) 45.7% Hard
92 Reverse Linked List II (/problems/reverse- 45.3% Medium
linked-list-ii)
# 445 Add Two Numbers II (/problems/add-two- 59.3% Medium
numbers-ii)
240 Search a 2D Matrix II (/problems/search-a- 50.4% Medium
2d-matrix-ii)
85 Maximal Rectangle (/problems/maximal- 43.9% Hard
rectangle)
https://leetcode.com/company/amazon/ Page 12 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
rectangle)
70 Climbing Stairs (/problems/climbing-stairs) 51.7% Easy
726 Number of Atoms (/problems/number-of- 52.1% Hard
atoms)
1414 Find the Minimum Number of Fibonacci 65.4% Medium
Numbers Whose Sum Is K (/problems/find-
the-minimum-number-of-fibonacci-
numbers-whose-sum-is-k)
18 4Sum (/problems/4sum) 36.6% Medium
2035 Partition Array Into Two Arrays to Minimize 18.0% Hard
Sum Difference (/problems/partition-array-
into-two-arrays-to-minimize-sum-
difference)
1192 Critical Connections in a Network 54.5% Hard
(/problems/critical-connections-in-a-
network)
# 120 Triangle (/problems/triangle) 53.7% Medium
465 Optimal Account Balancing 49.3% Hard
(/problems/optimal-account-balancing) $
# 429 N-ary Tree Level Order Traversal 70.5% Medium
(/problems/n-ary-tree-level-order-traversal)
378 Kth Smallest Element in a Sorted Matrix 61.5% Medium
(/problems/kth-smallest-element-in-a-
sorted-matrix)
72 Edit Distance (/problems/edit-distance) 52.4% Hard
318 Maximum Product of Word Lengths 60.2% Medium
(/problems/maximum-product-of-word-
lengths)
255 Verify Preorder Sequence in Binary Search 48.0% Medium
Tree (/problems/verify-preorder-sequence-
in-binary-search-tree) $
438 Find All Anagrams in a String 48.9% Medium
(/problems/find-all-anagrams-in-a-string)
%
279 Perfect Squares (/problems/perfect- 52.2% Medium
squares)
934 Shortest Bridge (/problems/shortest-bridge) 53.8% Medium
16 3Sum Closest (/problems/3sum-closest) 46.1% Medium
2139 Minimum Moves to Reach Target Score 48.4% Medium
(/problems/minimum-moves-to-reach-
target-score)
165 Compare Version Numbers 35.3% Medium
(/problems/compare-version-numbers)
403 Frog Jump (/problems/frog-jump) 43.1% Hard
117 Populating Next Right Pointers in Each Node 49.5% Medium
II (/problems/populating-next-right-
pointers-in-each-node-ii)
681 Next Closest Time (/problems/next-closest- 46.4% Medium
time) $
1944 Number of Visible People in a Queue 69.9% Hard
https://leetcode.com/company/amazon/ Page 13 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
1944 Number of Visible People in a Queue 69.9% Hard
(/problems/number-of-visible-people-in-a-
queue)
# 78 Subsets (/problems/subsets) 73.5% Medium
665 Non-decreasing Array (/problems/non- 24.1% Medium
decreasing-array)
2327 Number of People Aware of a Secret 44.3% Medium
(/problems/number-of-people-aware-of-a-
secret)
234 Palindrome Linked List 49.2% Easy
(/problems/palindrome-linked-list)
739 Daily Temperatures (/problems/daily- 67.0% Medium
temperatures)
# 14 Longest Common Prefix 40.6% Easy
(/problems/longest-common-prefix)
1032 Stream of Characters (/problems/stream-of- 51.5% Hard
characters)
1191 K-Concatenation Maximum Sum 24.0% Medium
(/problems/k-concatenation-maximum-
sum)
894 All Possible Full Binary Trees (/problems/all- 80.0% Medium
possible-full-binary-trees)
118 Pascal's Triangle (/problems/pascals- 68.6% Easy
triangle)
792 Number of Matching Subsequences 52.0% Medium
(/problems/number-of-matching-
subsequences)
443 String Compression (/problems/string- 48.4% Medium
compression)
1962 Remove Stones to Minimize the Total 58.6% Medium
(/problems/remove-stones-to-minimize-
the-total)
2302 Count Subarrays With Score Less Than K 51.6% Hard
(/problems/count-subarrays-with-score-
less-than-k)
1216 Valid Palindrome III (/problems/valid- 50.1% Hard
palindrome-iii) $
1882 Process Tasks Using Servers 39.4% Medium
(/problems/process-tasks-using-servers)
621 Task Scheduler (/problems/task-scheduler) 55.5% Medium
# 262 Trips and Users (/problems/trips-and-users) 38.4% Hard
795 Number of Subarrays with Bounded 52.6% Medium
Maximum (/problems/number-of-subarrays-
with-bounded-maximum)
179 Largest Number (/problems/largest- 33.8% Medium
number)
# 143 Reorder List (/problems/reorder-list) 50.6% Medium
301 Remove Invalid Parentheses 47.0% Hard
(/problems/remove-invalid-parentheses)
# 7 Reverse Integer (/problems/reverse-integer) 27.1% Medium
https://leetcode.com/company/amazon/ Page 14 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
402 Remove K Digits (/problems/remove-k- 30.5% Medium
digits)
# 1244 Design A Leaderboard (/problems/design-a- 68.7% Medium
leaderboard) $
383 Ransom Note (/problems/ransom-note) % 57.7% Easy
698 Partition to K Equal Sum Subsets 41.3% Medium
(/problems/partition-to-k-equal-sum-
subsets)
1376 Time Needed to Inform All Employees 58.4% Medium
(/problems/time-needed-to-inform-all-
employees)
947 Most Stones Removed with Same Row or 56.9% Medium
Column (/problems/most-stones-removed-
with-same-row-or-column)
# 221 Maximal Square (/problems/maximal- 44.4% Medium
square)
# 603 Consecutive Available Seats 68.2% Easy
(/problems/consecutive-available-seats)
$
# 424 Longest Repeating Character Replacement 51.3% Medium
(/problems/longest-repeating-character-
replacement)
456 132 Pattern (/problems/132-pattern) 32.4% Medium
1488 Avoid Flood in The City (/problems/avoid- 26.0% Medium
flood-in-the-city)
131 Palindrome Partitioning 62.1% Medium
(/problems/palindrome-partitioning)
826 Most Profit Assigning Work 44.0% Medium
(/problems/most-profit-assigning-work)
116 Populating Next Right Pointers in Each Node 59.1% Medium
(/problems/populating-next-right-pointers-
in-each-node)
636 Exclusive Time of Functions 60.9% Medium
(/problems/exclusive-time-of-functions)
576 Out of Boundary Paths (/problems/out-of- 44.3% Medium
boundary-paths)
754 Reach a Number (/problems/reach-a- 42.4% Medium
number)
953 Verifying an Alien Dictionary 52.6% Easy
(/problems/verifying-an-alien-dictionary)
# 46 Permutations (/problems/permutations) 74.4% Medium
857 Minimum Cost to Hire K Workers 52.0% Hard
(/problems/minimum-cost-to-hire-k-
workers)
1042 Flower Planting With No Adjacent 50.3% Medium
(/problems/flower-planting-with-no-
adjacent)
442 Find All Duplicates in an Array 73.3% Medium
(/problems/find-all-duplicates-in-an-array)
%
https://leetcode.com/company/amazon/ Page 15 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
716 Max Stack (/problems/max-stack) $ 45.2% Hard
458 Poor Pigs (/problems/poor-pigs) 65.5% Hard
582 Kill Process (/problems/kill-process) $ 67.9% Medium
1039 Minimum Score Triangulation of Polygon 54.3% Medium
(/problems/minimum-score-triangulation-
of-polygon)
# 740 Delete and Earn (/problems/delete-and- 57.4% Medium
earn)
256 Paint House (/problems/paint-house) $ 60.4% Medium
779 K-th Symbol in Grammar (/problems/k-th- 40.6% Medium
symbol-in-grammar)
1641 Count Sorted Vowel Strings 77.4% Medium
(/problems/count-sorted-vowel-strings)
# 75 Sort Colors (/problems/sort-colors) 56.9% Medium
528 Random Pick with Weight 46.2% Medium
(/problems/random-pick-with-weight)
39 Combination Sum (/problems/combination- 67.3% Medium
sum)
353 Design Snake Game (/problems/design- 38.9% Medium
snake-game) $
886 Possible Bipartition (/problems/possible- 48.3% Medium
bipartition)
1609 Even Odd Tree (/problems/even-odd-tree) 53.6% Medium
# 1143 Longest Common Subsequence 58.8% Medium
(/problems/longest-common-subsequence)
901 Online Stock Span (/problems/online-stock- 63.8% Medium
span)
432 All O`one Data Structure (/problems/all- 36.6% Hard
oone-data-structure)
790 Domino and Tromino Tiling 48.3% Medium
(/problems/domino-and-tromino-tiling)
208 Implement Trie (Prefix Tree) 60.5% Medium
(/problems/implement-trie-prefix-tree)
# 124 Binary Tree Maximum Path Sum 38.3% Hard
(/problems/binary-tree-maximum-path-
sum)
# 8 String to Integer (atoi) (/problems/string-to- 16.6% Medium
integer-atoi)
265 Paint House II (/problems/paint-house-ii) 52.1% Hard
$
1461 Check If a String Contains All Binary Codes 56.9% Medium
of Size K (/problems/check-if-a-string-
contains-all-binary-codes-of-size-k)
2109 Adding Spaces to a String 56.2% Medium
(/problems/adding-spaces-to-a-string)
516 Longest Palindromic Subsequence 60.5% Medium
(/problems/longest-palindromic-
subsequence)
https://leetcode.com/company/amazon/ Page 16 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
1220 Count Vowels Permutation 60.7% Hard
(/problems/count-vowels-permutation)
1345 Jump Game IV (/problems/jump-game-iv) 44.1% Hard
189 Rotate Array (/problems/rotate-array) 39.1% Medium
# 211 Design Add and Search Words Data 43.4% Medium
Structure (/problems/design-add-and-
search-words-data-structure)
346 Moving Average from Data Stream 77.0% Easy
(/problems/moving-average-from-data-
stream) $
705 Design HashSet (/problems/design- 66.0% Easy
hashset)
918 Maximum Sum Circular Subarray 38.0% Medium
(/problems/maximum-sum-circular-
subarray)
324 Wiggle Sort II (/problems/wiggle-sort-ii) 32.9% Medium
# 217 Contains Duplicate (/problems/contains- 61.2% Easy
duplicate) %
# 102 Binary Tree Level Order Traversal 63.0% Medium
(/problems/binary-tree-level-order-
traversal)
299 Bulls and Cows (/problems/bulls-and-cows) 48.4% Medium
849 Maximize Distance to Closest Person 47.6% Medium
(/problems/maximize-distance-to-closest-
person)
480 Sliding Window Median (/problems/sliding- 41.3% Hard
window-median)
1547 Minimum Cost to Cut a Stick 56.6% Hard
(/problems/minimum-cost-to-cut-a-stick)
# 21 Merge Two Sorted Lists (/problems/merge- 61.6% Easy
two-sorted-lists)
157 Read N Characters Given Read4 40.7% Easy
(/problems/read-n-characters-given-read4)
$
1689 Partitioning Into Minimum Number Of Deci- 89.8% Medium
Binary Numbers (/problems/partitioning-
into-minimum-number-of-deci-binary-
numbers)
450 Delete Node in a BST (/problems/delete- 49.8% Medium
node-in-a-bst)
1130 Minimum Cost Tree From Leaf Values 68.5% Medium
(/problems/minimum-cost-tree-from-leaf-
values)
1354 Construct Target Array With Multiple Sums 36.3% Hard
(/problems/construct-target-array-with-
multiple-sums)
1648 Sell Diminishing-Valued Colored Balls 30.6% Medium
(/problems/sell-diminishing-valued-colored-
balls)
652 Find Duplicate Subtrees (/problems/find- 56.4% Medium
duplicate-subtrees)
https://leetcode.com/company/amazon/ Page 17 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
duplicate-subtrees)
316 Remove Duplicate Letters 44.4% Medium
(/problems/remove-duplicate-letters)
867 Transpose Matrix (/problems/transpose- 63.4% Easy
matrix)
71 Simplify Path (/problems/simplify-path) 39.2% Medium
437 Path Sum III (/problems/path-sum-iii) 49.0% Medium
81 Search in Rotated Sorted Array II 35.7% Medium
(/problems/search-in-rotated-sorted-array-
ii)
1329 Sort the Matrix Diagonally (/problems/sort- 83.7% Medium
the-matrix-diagonally)
2336 Smallest Number in Infinite Set 71.5% Medium
(/problems/smallest-number-in-infinite-set)
60 Permutation Sequence 43.5% Hard
(/problems/permutation-sequence)
1081 Smallest Subsequence of Distinct 57.5% Medium
Characters (/problems/smallest-
subsequence-of-distinct-characters)
1539 Kth Missing Positive Number 55.8% Easy
(/problems/kth-missing-positive-number)
904 Fruit Into Baskets (/problems/fruit-into- 42.6% Medium
baskets)
315 Count of Smaller Numbers After Self 42.9% Hard
(/problems/count-of-smaller-numbers-
after-self)
169 Majority Element (/problems/majority- 63.7% Easy
element)
1472 Design Browser History (/problems/design- 75.9% Medium
browser-history)
1047 Remove All Adjacent Duplicates In String 70.6% Easy
(/problems/remove-all-adjacent-duplicates-
in-string) %
# 10 Regular Expression Matching 28.3% Hard
(/problems/regular-expression-matching)
690 Employee Importance 65.0% Medium
(/problems/employee-importance)
# 1454 Active Users (/problems/active-users) $ 38.4% Medium
73 Set Matrix Zeroes (/problems/set-matrix- 49.8% Medium
zeroes)
6 Zigzag Conversion (/problems/zigzag- 42.8% Medium
conversion)
173 Binary Search Tree Iterator 68.8% Medium
(/problems/binary-search-tree-iterator)
167 Two Sum II - Input Array Is Sorted 60.0% Medium
(/problems/two-sum-ii-input-array-is-
sorted) %
675 Cut Off Trees for Golf Event (/problems/cut- 34.4% Hard
off-trees-for-golf-event)
715 Range Module (/problems/range-module) 44.5% Hard
https://leetcode.com/company/amazon/ Page 18 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
715 Range Module (/problems/range-module) 44.5% Hard
428 Serialize and Deserialize N-ary Tree 65.2% Hard
(/problems/serialize-and-deserialize-n-ary-
tree) $
847 Shortest Path Visiting All Nodes 61.3% Hard
(/problems/shortest-path-visiting-all-
nodes)
923 3Sum With Multiplicity (/problems/3sum- 45.5% Medium
with-multiplicity)
50 Pow(x, n) (/problems/powx-n) 32.7% Medium
# 177 Nth Highest Salary (/problems/nth-highest- 37.2% Medium
salary)
349 Intersection of Two Arrays 70.1% Easy
(/problems/intersection-of-two-arrays) %
# 185 Department Top Three Salaries 49.6% Hard
(/problems/department-top-three-salaries)
662 Maximum Width of Binary Tree 40.5% Medium
(/problems/maximum-width-of-binary-tree)
752 Open the Lock (/problems/open-the-lock) 55.5% Medium
332 Reconstruct Itinerary 40.8% Hard
(/problems/reconstruct-itinerary)
1146 Snapshot Array (/problems/snapshot-array) 37.3% Medium
1249 Minimum Remove to Make Valid 65.6% Medium
Parentheses (/problems/minimum-remove-
to-make-valid-parentheses)
108 Convert Sorted Array to Binary Search Tree 68.8% Easy
(/problems/convert-sorted-array-to-binary-
search-tree)
# 226 Invert Binary Tree (/problems/invert-binary- 73.0% Easy
tree)
407 Trapping Rain Water II (/problems/trapping- 47.4% Hard
rain-water-ii)
# 1164 Product Price at a Given Date 68.4% Medium
(/problems/product-price-at-a-given-date)
% $
1465 Maximum Area of a Piece of Cake After 40.8% Medium
Horizontal and Vertical Cuts
(/problems/maximum-area-of-a-piece-of-
cake-after-horizontal-and-vertical-cuts)
305 Number of Islands II (/problems/number-of- 39.5% Hard
islands-ii) $
1010 Pairs of Songs With Total Durations Divisible 53.1% Medium
by 60 (/problems/pairs-of-songs-with-total-
durations-divisible-by-60)
# 572 Subtree of Another Tree 45.9% Easy
(/problems/subtree-of-another-tree)
307 Range Sum Query - Mutable 40.7% Medium
(/problems/range-sum-query-mutable)
377 Combination Sum IV 52.0% Medium
(/problems/combination-sum-iv)
796 Rotate String (/problems/rotate-string) 53.8% Easy
https://leetcode.com/company/amazon/ Page 19 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
796 Rotate String (/problems/rotate-string) 53.8% Easy
54 Spiral Matrix (/problems/spiral-matrix) 43.4% Medium
38 Count and Say (/problems/count-and-say) 49.7% Medium
2007 Find Original Array From Doubled Array 41.0% Medium
(/problems/find-original-array-from-
doubled-array)
# 230 Kth Smallest Element in a BST 69.1% Medium
(/problems/kth-smallest-element-in-a-bst)
37 Sudoku Solver (/problems/sudoku-solver) 56.4% Hard
778 Swim in Rising Water (/problems/swim-in- 59.5% Hard
rising-water)
583 Delete Operation for Two Strings 59.1% Medium
(/problems/delete-operation-for-two-
strings)
395 Longest Substring with At Least K 44.8% Medium
Repeating Characters (/problems/longest-
substring-with-at-least-k-repeating-
characters)
341 Flatten Nested List Iterator 61.4% Medium
(/problems/flatten-nested-list-iterator)
107 Binary Tree Level Order Traversal II 60.1% Medium
(/problems/binary-tree-level-order-
traversal-ii)
889 Construct Binary Tree from Preorder and 70.7% Medium
Postorder Traversal (/problems/construct-
binary-tree-from-preorder-and-postorder-
traversal)
852 Peak Index in a Mountain Array 69.6% Medium
(/problems/peak-index-in-a-mountain-
array) %
136 Single Number (/problems/single-number) 70.0% Easy
64 Minimum Path Sum (/problems/minimum- 60.5% Medium
path-sum)
354 Russian Doll Envelopes (/problems/russian- 38.4% Hard
doll-envelopes)
# 490 The Maze (/problems/the-maze) $ 55.3% Medium
159 Longest Substring with At Most Two Distinct 53.5% Medium
Characters (/problems/longest-substring-
with-at-most-two-distinct-characters) $
1229 Meeting Scheduler (/problems/meeting- 55.4% Medium
scheduler) $
300 Longest Increasing Subsequence 51.5% Medium
(/problems/longest-increasing-
subsequence)
47 Permutations II (/problems/permutations-ii) 56.5% Medium
298 Binary Tree Longest Consecutive Sequence 52.4% Medium
(/problems/binary-tree-longest-
consecutive-sequence) $
1463 Cherry Pickup II (/problems/cherry-pickup- 70.3% Hard
ii)
# 176 Second Highest Salary (/problems/second- 36.3% Medium
https://leetcode.com/company/amazon/ Page 20 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
# 176 Second Highest Salary (/problems/second- 36.3% Medium
highest-salary)
# 1650 Lowest Common Ancestor of a Binary Tree 77.3% Medium
III (/problems/lowest-common-ancestor-of-
a-binary-tree-iii) $
333 Largest BST Subtree (/problems/largest- 42.2% Medium
bst-subtree) $
933 Number of Recent Calls (/problems/number- 73.2% Easy
of-recent-calls) %
763 Partition Labels (/problems/partition-labels) 79.8% Medium
1060 Missing Element in Sorted Array 54.6%
(/problems/missing-element-in-sorted- Medium
array) $
1026 Maximum Difference Between Node and 73.4% Medium
Ancestor (/problems/maximum-difference-
between-node-and-ancestor)
1338 Reduce Array Size to The Half 69.9% Medium
(/problems/reduce-array-size-to-the-half)
1863 Sum of All Subset XOR Totals 78.8% Easy
(/problems/sum-of-all-subset-xor-totals)
2385 Amount of Time for Binary Tree to Be 56.1% Medium
Infected (/problems/amount-of-time-for-
binary-tree-to-be-infected)
367 Valid Perfect Square (/problems/valid- 43.2% Easy
perfect-square) %
193 Valid Phone Numbers (/problems/valid- 25.9% Easy
phone-numbers)
# 180 Consecutive Numbers 46.6% Medium
(/problems/consecutive-numbers)
268 Missing Number (/problems/missing- 61.3% Easy
number) %
406 Queue Reconstruction by Height 72.7% Medium
(/problems/queue-reconstruction-by-
height)
646 Maximum Length of Pair Chain 56.3% Medium
(/problems/maximum-length-of-pair-chain)
1367 Linked List in Binary Tree (/problems/linked- 43.4% Medium
list-in-binary-tree)
# 653 Two Sum IV - Input is a BST 59.4% Easy
(/problems/two-sum-iv-input-is-a-bst)
648 Replace Words (/problems/replace-words) 62.6% Medium
729 My Calendar I (/problems/my-calendar-i) 57.2% Medium
1235 Maximum Profit in Job Scheduling 51.0% Hard
(/problems/maximum-profit-in-job-
scheduling)
# 162 Find Peak Element (/problems/find-peak- 46.2% Medium
element)
191 Number of 1 Bits (/problems/number-of-1- 64.3% Easy
bits)
611 Valid Triangle Number (/problems/valid- 50.2% Medium
https://leetcode.com/company/amazon/ Page 21 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
611 Valid Triangle Number (/problems/valid- 50.2% Medium
triangle-number)
132 Palindrome Partitioning II 33.6% Hard
(/problems/palindrome-partitioning-ii)
381 Insert Delete GetRandom O(1) - Duplicates 35.7% Hard
allowed (/problems/insert-delete-
getrandom-o1-duplicates-allowed)
473 Matchsticks to Square 40.5% Medium
(/problems/matchsticks-to-square)
# 235 Lowest Common Ancestor of a Binary 59.9% Medium
Search Tree (/problems/lowest-common-
ancestor-of-a-binary-search-tree)
336 Palindrome Pairs (/problems/palindrome- 35.3% Hard
pairs)
390 Elimination Game (/problems/elimination- 46.6% Medium
game)
1325 Delete Leaves With a Given Value 74.8% Medium
(/problems/delete-leaves-with-a-given-
value)
67 Add Binary (/problems/add-binary) 51.2% Easy
130 Surrounded Regions 35.7% Medium
(/problems/surrounded-regions)
2169 Count Operations to Obtain Zero 75.6% Easy
(/problems/count-operations-to-obtain-
zero)
328 Odd Even Linked List (/problems/odd-even- 60.1% Medium
linked-list)
529 Minesweeper (/problems/minesweeper) 65.4% Medium
# 601 Human Traffic of Stadium 50.6% Hard
(/problems/human-traffic-of-stadium)
647 Palindromic Substrings 66.2% Medium
(/problems/palindromic-substrings)
397 Integer Replacement (/problems/integer- 35.0% Medium
replacement)
609 Find Duplicate File in System 67.8% Medium
(/problems/find-duplicate-file-in-system)
974 Subarray Sums Divisible by K 53.5% Medium
(/problems/subarray-sums-divisible-by-k)
# 153 Find Minimum in Rotated Sorted Array 48.4% Medium
(/problems/find-minimum-in-rotated-
sorted-array)
421 Maximum XOR of Two Numbers in an Array 54.6% Medium
(/problems/maximum-xor-of-two-numbers-
in-an-array)
# 678 Valid Parenthesis String (/problems/valid- 33.8% Medium
parenthesis-string)
205 Isomorphic Strings (/problems/isomorphic- 42.5% Easy
strings)
? 359 Logger Rate Limiter (/problems/logger-rate- 75.5% Easy
limiter) $
836 Rectangle Overlap (/problems/rectangle- 43.3% Easy
https://leetcode.com/company/amazon/ Page 22 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
836 Rectangle Overlap (/problems/rectangle- 43.3% Easy
overlap)
1048 Longest String Chain (/problems/longest- 59.2% Medium
string-chain)
202 Happy Number (/problems/happy-number) 54.2% Easy
1854 Maximum Population Year 59.7% Easy
(/problems/maximum-population-year)
# 101 Symmetric Tree (/problems/symmetric-tree) 52.7% Easy
232 Implement Queue using Stacks 60.8% Easy
(/problems/implement-queue-using-stacks)
%
24 Swap Nodes in Pairs (/problems/swap- 60.1% Medium
nodes-in-pairs)
216 Combination Sum III 66.9% Medium
(/problems/combination-sum-iii)
2289 Steps to Make Array Non-decreasing 21.4% Medium
(/problems/steps-to-make-array-non-
decreasing)
# 105 Construct Binary Tree from Preorder and 60.5% Medium
Inorder Traversal (/problems/construct-
binary-tree-from-preorder-and-inorder-
traversal)
468 Validate IP Address (/problems/validate-ip- 26.5% Medium
address)
# 244 Shortest Word Distance II 60.6% Medium
(/problems/shortest-word-distance-ii) $
921 Minimum Add to Make Parentheses Valid 76.4% Medium
(/problems/minimum-add-to-make-
parentheses-valid)
29 Divide Two Integers (/problems/divide-two- 17.4% Medium
integers)
931 Minimum Falling Path Sum 68.4% Medium
(/problems/minimum-falling-path-sum)
270 Closest Binary Search Tree Value 54.5% Easy
(/problems/closest-binary-search-tree-
value) $
1464 Maximum Product of Two Elements in an 79.2% Easy
Array (/problems/maximum-product-of-
two-elements-in-an-array)
113 Path Sum II (/problems/path-sum-ii) 56.4% Medium
1436 Destination City (/problems/destination- 77.7% Easy
city)
201 Bitwise AND of Numbers Range 42.2% Medium
(/problems/bitwise-and-of-numbers-range)
1373 Maximum Sum BST in Binary Tree 39.1% Hard
(/problems/maximum-sum-bst-in-binary-
tree)
225 Implement Stack using Queues 57.2% Easy
(/problems/implement-stack-using-queues)
%
61 Rotate List (/problems/rotate-list) 35.6% Medium
https://leetcode.com/company/amazon/ Page 23 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
453 Minimum Moves to Equal Array Elements 55.4% Medium
(/problems/minimum-moves-to-equal-
array-elements)
2406 Divide Intervals Into Minimum Number of 44.4% Medium
Groups (/problems/divide-intervals-into-
minimum-number-of-groups)
992 Subarrays with K Different Integers 54.1% Hard
(/problems/subarrays-with-k-different-
integers)
204 Count Primes (/problems/count-primes) 33.1% Medium
1179 Reformat Department Table 82.6% Easy
(/problems/reformat-department-table)
44 Wildcard Matching (/problems/wildcard- 26.8% Hard
matching)
# 206 Reverse Linked List (/problems/reverse- 72.1% Easy
linked-list)
1004 Max Consecutive Ones III (/problems/max- 63.5% Medium
consecutive-ones-iii) %
# 704 Binary Search (/problems/binary-search) 55.1% Easy
%
2099 Find Subsequence of Length K With the 42.6% Easy
Largest Sum (/problems/find-subsequence-
of-length-k-with-the-largest-sum)
1696 Jump Game VI (/problems/jump-game-vi) 46.4% Medium
509 Fibonacci Number (/problems/fibonacci- 69.1% Easy
number)
112 Path Sum (/problems/path-sum) 46.6% Easy
539 Minimum Time Difference 56.3% Medium
(/problems/minimum-time-difference)
94 Binary Tree Inorder Traversal 72.8% Easy
(/problems/binary-tree-inorder-traversal)
142 Linked List Cycle II (/problems/linked-list- 46.0% Medium
cycle-ii)
862 Shortest Subarray with Sum at Least K 26.1% Hard
(/problems/shortest-subarray-with-sum-at-
least-k)
1385 Find the Distance Value Between Two 65.3% Easy
Arrays (/problems/find-the-distance-value-
between-two-arrays)
# 9 Palindrome Number (/problems/palindrome- 52.8% Easy
number)
# 88 Merge Sorted Array (/problems/merge- 45.6% Easy
sorted-array)
804 Unique Morse Code Words 82.6% Easy
(/problems/unique-morse-code-words)
137 Single Number II (/problems/single-number- 57.6% Medium
ii)
506 Relative Ranks (/problems/relative-ranks) 58.6% Easy
414 Third Maximum Number (/problems/third- 32.4% Easy
https://leetcode.com/company/amazon/ Page 24 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
414 Third Maximum Number (/problems/third- 32.4% Easy
maximum-number)
977 Squares of a Sorted Array 71.9% Easy
(/problems/squares-of-a-sorted-array) %
1365 How Many Numbers Are Smaller Than the 86.6% Easy
Current Number (/problems/how-many-
numbers-are-smaller-than-the-current-
number)
669 Trim a Binary Search Tree (/problems/trim- 66.4% Medium
a-binary-search-tree)
814 Binary Tree Pruning (/problems/binary-tree- 72.6% Medium
pruning)
680 Valid Palindrome II (/problems/valid- 39.4% Easy
palindrome-ii)
416 Partition Equal Subset Sum 46.7% Medium
(/problems/partition-equal-subset-sum)
219 Contains Duplicate II (/problems/contains- 40.9% Easy
duplicate-ii) %
606 Construct String from Binary Tree 63.5% Easy
(/problems/construct-string-from-binary-
tree)
# 435 Non-overlapping Intervals (/problems/non- 49.6% Medium
overlapping-intervals)
523 Continuous Subarray Sum 27.6% Medium
(/problems/continuous-subarray-sum)
# 713 Subarray Product Less Than K 44.9% Medium
(/problems/subarray-product-less-than-k)
40 Combination Sum II 53.2% Medium
(/problems/combination-sum-ii)
# 746 Min Cost Climbing Stairs (/problems/min- 62.1% Easy
cost-climbing-stairs)
657 Robot Return to Origin (/problems/robot- 75.2% Easy
return-to-origin)
1631 Path With Minimum Effort (/problems/path- 55.2% Medium
with-minimum-effort)
1512 Number of Good Pairs (/problems/number- 88.1% Easy
of-good-pairs)
# 197 Rising Temperature (/problems/rising- 44.3% Easy
temperature)
474 Ones and Zeroes (/problems/ones-and- 46.7% Medium
zeroes)
1570 Dot Product of Two Sparse Vectors 90.3% Medium
(/problems/dot-product-of-two-sparse-
vectors) $
# 626 Exchange Seats (/problems/exchange- 70.5% Medium
seats)
340 Longest Substring with At Most K Distinct 47.7% Medium
Characters (/problems/longest-substring-
with-at-most-k-distinct-characters) $
222 Count Complete Tree Nodes 57.2% Medium
(/problems/count-complete-tree-nodes)
https://leetcode.com/company/amazon/ Page 25 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
(/problems/count-complete-tree-nodes)
# 339 Nested List Weight Sum (/problems/nested- 81.9% Medium
list-weight-sum) $
# 1581 Customer Who Visited but Did Not Make 89.4% Easy
Any Transactions (/problems/customer-
who-visited-but-did-not-make-any-
transactions)
# 104 Maximum Depth of Binary Tree 73.0% Easy
(/problems/maximum-depth-of-binary-tree)
430 Flatten a Multilevel Doubly Linked List 59.3% Medium
(/problems/flatten-a-multilevel-doubly-
linked-list)
57 Insert Interval (/problems/insert-interval) 37.9% Medium
# 100 Same Tree (/problems/same-tree) 56.2% Easy
802 Find Eventual Safe States (/problems/find- 54.5% Medium
eventual-safe-states)
1876 Substrings of Size Three with Distinct 70.1% Easy
Characters (/problems/substrings-of-size-
three-with-distinct-characters)
1306 Jump Game III (/problems/jump-game-iii) 63.0% Medium
743 Network Delay Time (/problems/network- 51.3% Medium
delay-time)
724 Find Pivot Index (/problems/find-pivot- 53.2% Easy
index)
# 344 Reverse String (/problems/reverse-string) 76.0% Easy
%
96 Unique Binary Search Trees 59.1% Medium
(/problems/unique-binary-search-trees)
1680 Concatenation of Consecutive Binary 57.0% Medium
Numbers (/problems/concatenation-of-
consecutive-binary-numbers)
819 Most Common Word (/problems/most- 45.0% Easy
common-word)
513 Find Bottom Left Tree Value 66.2% Medium
(/problems/find-bottom-left-tree-value)
# 595 Big Countries (/problems/big-countries) 74.1% Easy
1254 Number of Closed Islands 64.2% Medium
(/problems/number-of-closed-islands)
392 Is Subsequence (/problems/is- 49.6% Easy
subsequence)
409 Longest Palindrome (/problems/longest- 54.6% Easy
palindrome)
530 Minimum Absolute Difference in BST 56.7% Easy
(/problems/minimum-absolute-difference-
in-bst)
684 Redundant Connection 61.9% Medium
(/problems/redundant-connection)
65 Valid Number (/problems/valid-number) 18.5% Hard
160 Intersection of Two Linked Lists 52.9% Easy
https://leetcode.com/company/amazon/ Page 26 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
160 Intersection of Two Linked Lists 52.9% Easy
(/problems/intersection-of-two-linked-lists)
# 905 Sort Array By Parity (/problems/sort-array- 75.7% Easy
by-parity) %
567 Permutation in String 43.9% Medium
(/problems/permutation-in-string)
95 Unique Binary Search Trees II 51.2% Medium
(/problems/unique-binary-search-trees-ii)
1020 Number of Enclaves (/problems/number-of- 64.6% Medium
enclaves)
2235 Add Two Integers (/problems/add-two- 90.5% Easy
integers)
109 Convert Sorted List to Binary Search Tree 57.1% Medium
(/problems/convert-sorted-list-to-binary-
search-tree)
703 Kth Largest Element in a Stream 55.5% Easy
(/problems/kth-largest-element-in-a-
stream)
# 283 Move Zeroes (/problems/move-zeroes) % 61.2% Easy
784 Letter Case Permutation (/problems/letter- 73.3% Medium
case-permutation)
# 1302 Deepest Leaves Sum (/problems/deepest- 87.0% Medium
leaves-sum)
# 451 Sort Characters By Frequency 68.4% Medium
(/problems/sort-characters-by-frequency)
237 Delete Node in a Linked List 73.8% Medium
(/problems/delete-node-in-a-linked-list)
# 257 Binary Tree Paths (/problems/binary-tree- 60.3% Easy
paths)
# 912 Sort an Array (/problems/sort-an-array) 60.4% Medium
2405 Optimal Partition of String 73.8% Medium
(/problems/optimal-partition-of-string)
494 Target Sum (/problems/target-sum) 45.5% Medium
415 Add Strings (/problems/add-strings) 52.5% Easy
82 Remove Duplicates from Sorted List II 45.3% Medium
(/problems/remove-duplicates-from-sorted-
list-ii)
# 26 Remove Duplicates from Sorted Array 50.1% Easy
(/problems/remove-duplicates-from-sorted-
array) %
525 Contiguous Array (/problems/contiguous- 46.8% Medium
array)
# 412 Fizz Buzz (/problems/fizz-buzz) 68.4% Easy
133 Clone Graph (/problems/clone-graph) 50.2% Medium
# 125 Valid Palindrome (/problems/valid- 43.3% Easy
palindrome) %
# 19 Remove Nth Node From End of List 39.8% Medium
(/problems/remove-nth-node-from-end-of-
list)
https://leetcode.com/company/amazon/ Page 27 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
389 Find the Difference (/problems/find-the- 60.4% Easy
difference) %
# 511 Game Play Analysis I (/problems/game-play- 79.0% Easy
analysis-i) %
35 Search Insert Position (/problems/search- 42.0% Easy
insert-position) %
441 Arranging Coins (/problems/arranging- 46.0% Easy
coins) %
30 Substring with Concatenation of All Words 30.8% Hard
(/problems/substring-with-concatenation-
of-all-words)
66 Plus One (/problems/plus-one) 43.3% Easy
278 First Bad Version (/problems/first-bad- 42.8% Easy
version) %
1523 Count Odd Numbers in an Interval Range 46.4% Easy
(/problems/count-odd-numbers-in-an-
interval-range)
119 Pascal's Triangle II (/problems/pascals- 59.4% Easy
triangle-ii)
1614 Maximum Nesting Depth of the Parentheses 82.7% Easy
(/problems/maximum-nesting-depth-of-
the-parentheses)
1721 Swapping Nodes in a Linked List 67.9% Medium
(/problems/swapping-nodes-in-a-linked-
list)
314 Binary Tree Vertical Order Traversal 52.0% Medium
(/problems/binary-tree-vertical-order-
traversal) $
1299 Replace Elements with Greatest Element on 74.6% Easy
Right Side (/problems/replace-elements-
with-greatest-element-on-right-side)
106 Construct Binary Tree from Inorder and 57.2% Medium
Postorder Traversal (/problems/construct-
binary-tree-from-inorder-and-postorder-
traversal)
448 Find All Numbers Disappeared in an Array 59.5% Easy
(/problems/find-all-numbers-disappeared-
in-an-array) %
# 141 Linked List Cycle (/problems/linked-list- 46.7% Easy
cycle)
231 Power of Two (/problems/power-of-two) 45.6% Easy
310 Minimum Height Trees 38.5% Medium
(/problems/minimum-height-trees)
# 28 Find the Index of the First Occurrence in a 37.3% Medium
String (/problems/find-the-index-of-the-
first-occurrence-in-a-string)
1672 Richest Customer Wealth 88.5% Easy
(/problems/richest-customer-wealth)
83 Remove Duplicates from Sorted List 49.8% Easy
(/problems/remove-duplicates-from-sorted-
list)
151 Reverse Words in a String 30.0% Medium
https://leetcode.com/company/amazon/ Page 28 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
151 Reverse Words in a String 30.0% Medium
(/problems/reverse-words-in-a-string)
# 1050 Actors and Directors Who Cooperated At 72.6% Easy
Least Three Times (/problems/actors-and-
directors-who-cooperated-at-least-three-
times)
628 Maximum Product of Three Numbers 46.5% Easy
(/problems/maximum-product-of-three-
numbers)
27 Remove Element (/problems/remove- 51.9% Easy
element) %
# 90 Subsets II (/problems/subsets-ii) 55.0% Medium
# 184 Department Highest Salary 49.2% Medium
(/problems/department-highest-salary)
# 196 Delete Duplicate Emails (/problems/delete- 57.8% Easy
duplicate-emails) %
129 Sum Root to Leaf Numbers (/problems/sum- 58.4% Medium
root-to-leaf-numbers)
# 252 Meeting Rooms (/problems/meeting-rooms) 57.0% Easy
$
258 Add Digits (/problems/add-digits) 63.3% Easy
1431 Kids With the Greatest Number of Candies 87.5% Easy
(/problems/kids-with-the-greatest-number-
of-candies)
309 Best Time to Buy and Sell Stock with 54.2% Medium
Cooldown (/problems/best-time-to-buy-
and-sell-stock-with-cooldown)
43 Multiply Strings (/problems/multiply-strings) 38.6% Medium
# 209 Minimum Size Subarray Sum 44.3% Medium
(/problems/minimum-size-subarray-sum)
557 Reverse Words in a String III 81.4% Easy
(/problems/reverse-words-in-a-string-iii)
1448 Count Good Nodes in Binary Tree 74.6% Medium
(/problems/count-good-nodes-in-binary-
tree)
1108 Defanging an IP Address 89.3% Easy
(/problems/defanging-an-ip-address)
876 Middle of the Linked List (/problems/middle- 73.6% Easy
of-the-linked-list)
69 Sqrt(x) (/problems/sqrtx) % 37.0% Easy
1046 Last Stone Weight (/problems/last-stone- 64.7% Easy
weight)
229 Majority Element II (/problems/majority- 43.8% Medium
element-ii)
797 All Paths From Source to Target 81.4% Medium
(/problems/all-paths-from-source-to-
target)
771 Jewels and Stones (/problems/jewels-and- 88.0% Easy
stones)
# 1757 Recyclable and Low Fat Products 94.0% Easy
(/problems/recyclable-and-low-fat-
https://leetcode.com/company/amazon/ Page 29 of 30
Amazon - LeetCode 9/28/22, 8:43 PM
(/problems/recyclable-and-low-fat-
products)
1470 Shuffle the Array (/problems/shuffle-the- 88.5% Easy
array)
700 Search in a Binary Search Tree 77.0% Easy
(/problems/search-in-a-binary-search-tree)
190 Reverse Bits (/problems/reverse-bits) 51.6% Easy
# 181 Employees Earning More Than Their 68.2% Easy
Managers (/problems/employees-earning-
more-than-their-managers)
58 Length of Last Word (/problems/length-of- 40.0% Easy
last-word)
# 110 Balanced Binary Tree (/problems/balanced- 48.0% Easy
binary-tree)
# 111 Minimum Depth of Binary Tree 43.4% Easy
(/problems/minimum-depth-of-binary-tree)
213 House Robber II (/problems/house-robber- 40.6% Medium
ii)
# 203 Remove Linked List Elements 44.5% Easy
(/problems/remove-linked-list-elements)
350 Intersection of Two Arrays II 55.5% Easy
(/problems/intersection-of-two-arrays-ii)
%
# 175 Combine Two Tables (/problems/combine- 72.5% Easy
two-tables)
# 183 Customers Who Never Order 67.3% Easy
(/problems/customers-who-never-order)
622 Design Circular Queue (/problems/design- 51.8% Medium
circular-queue)
1480 Running Sum of 1d Array 90.0% Easy
(/problems/running-sum-of-1d-array)
# 838 Push Dominoes (/problems/push-dominoes) 57.0% Medium
Copyright © 2022 LeetCode
Help Center (/support) Jobs (/jobs) Bug Bounty (/bugbounty) Online Interview (/interview/) Students (/student) Terms (/terms) Privacy Policy (/privacy)
United States (/region)
https://leetcode.com/company/amazon/ Page 30 of 30