Amazon - LeetCode
Amazon - LeetCode
Amazon
Notice
We've improved our algorithm that calculates company tags and their frequencies to be more accurate
and current.
451 Sort Characters By Frequenc… Hash Table (/tag/hash-table) Heap (/tag/heap) 62.6%
314 Binary Tree Vertical Order Tra… Depth-first Search (/tag/depth-first-search) 44.6%
Breadth-first Search (/tag/breadth-first-search)
https://leetcode.com/company/amazon/ 1/26
6/24/2020 Amazon - LeetCode
Divide and Conquer (/tag/divide-and-conquer)
# Title Tags Acceptance
Heap (/tag/heap)
String (/tag/string)
692 Top K Frequent Words (/probl… Hash Table (/tag/hash-table) Heap (/tag/heap) 51.1%
Trie (/tag/trie)
121 Best Time to Buy and Sell Sto… Array (/tag/array) 50.2%
106 Construct Binary Tree from In… Array (/tag/array) Tree (/tag/tree) 44.9%
Backtracking (/tag/backtracking)
https://leetcode.com/company/amazon/ 3/26
6/24/2020 Amazon - LeetCode
#
187 Title
Repeated DNA Sequences (/… Tags
Hash Table (/tag/hash-table) Acceptance
38.6%
String (/tag/string)
Graph (/tag/graph)
Graph (/tag/graph)
https://leetcode.com/company/amazon/ 4/26
6/24/2020 Amazon - LeetCode
#
273 Title to English Words (/pro…
Integer Tags
Math (/tag/math) String (/tag/string) Acceptance
26.7%
167 Two Sum II - Input array is so… Array (/tag/array) Two Pointers (/tag/two-pointers) 53.6%
Binary Search (/tag/binary-search)
2 Add Two Numbers (/problems… Linked List (/tag/linked-list) Math (/tag/math) 33.5%
Stack (/tag/stack)
103 Binary Tree Zigzag Level Ord… Stack (/tag/stack) Tree (/tag/tree) 46.7%
Breadth-first Search (/tag/breadth-first-search)
297 Serialize and Deserialize Bina… Tree (/tag/tree) Design (/tag/design) 46.8%
347 Top K Frequent Elements (/pr… Hash Table (/tag/hash-table) Heap (/tag/heap) 60.2%
215 Kth Largest Element in an Arr… Divide and Conquer (/tag/divide-and-conquer) 54.5%
Heap (/tag/heap)
101 S ti T
https://leetcode.com/company/amazon/
(/ bl / 46 5% 5/26
6/24/2020 Amazon - LeetCode
101 Symmetric Tree (/problems/s… Tree (/tag/tree) 46.5%
# Title Tags Acceptance
Depth-first Search (/tag/depth-first-search)
535 Encode and Decode TinyURL… Hash Table (/tag/hash-table) Math (/tag/math) 79.5%
232 Implement Queue using Stac… Stack (/tag/stack) Design (/tag/design) 48.8%
Backtracking (/tag/backtracking)
String (/tag/string)
202 Happy Number (/problems/ha… Hash Table (/tag/hash-table) Math (/tag/math) 50.1%
387 First Unique Character in a St… Hash Table (/tag/hash-table) String (/tag/string) 53.2%
339 Nested List Weight Sum (/pro… Depth-first Search (/tag/depth-first-search) 73.3%
42 Trapping Rain Water (/proble… Array (/tag/array) Two Pointers (/tag/two-pointers) 48.3%
Stack (/tag/stack)
Trie (/tag/trie)
Memoization (/tag/memoization)
145 Binary Tree Postorder Traver… Stack (/tag/stack) Tree (/tag/tree) 54.2%
739 Daily Temperatures (/problem… Hash Table (/tag/hash-table) Stack (/tag/stack) 62.9%
341 Flatten Nested List Iterator (/p… Stack (/tag/stack) Design (/tag/design) 52.4%
295 Find Median from Data Strea… Heap (/tag/heap) Design (/tag/design) 43.4%
208 Implement Trie (Prefix Tree) (… Design (/tag/design) Trie (/tag/trie) 48.2%
188 Best Time to Buy and Sell Sto… Dynamic Programming (/tag/dynamic-programming) 27.8%
242 Valid Anagram (/problems/vali… Hash Table (/tag/hash-table) Sort (/tag/sort) 56.4%
417 Pacific Atlantic Water Flow (/p… Depth-first Search (/tag/depth-first-search) 40.6%
209 Minimum Size Subarray Sum … Array (/tag/array) Two Pointers (/tag/two-pointers) 37.7%
Binary Search (/tag/binary-search)
560 Subarray Sum Equals K (/pro… Array (/tag/array) Hash Table (/tag/hash-table) 43.8%
11 Container With Most Water (/… Array (/tag/array) Two Pointers (/tag/two-pointers) 50.3%
88 Merge Sorted Array (/problem… Array (/tag/array) Two Pointers (/tag/two-pointers) 39.1%
218 The Skyline Problem (/proble… Divide and Conquer (/tag/divide-and-conquer) 34.1%
Heap (/tag/heap)
Tree (/tag/tree)
94 Bi T I
https://leetcode.com/company/amazon/
d T l 62 6% 11/26
6/24/2020 Amazon - LeetCode
94 Binary Tree Inorder Traversal … Hash Table (/tag/hash-table) Stack (/tag/stack) 62.6%
# Title Tags Acceptance
Tree (/tag/tree)
416 Partition Equal Subset Sum (/… Dynamic Programming (/tag/dynamic-programming) 43.3%
122 Best Time to Buy and Sell Sto… Array (/tag/array) Greedy (/tag/greedy) 56.4%
Backtracking (/tag/backtracking)
26 Remove Duplicates from Sort… Array (/tag/array) Two Pointers (/tag/two-pointers) 44.7%
628 M i P d
https://leetcode.com/company/amazon/
t f Th N 46 9% 12/26
6/24/2020 Amazon - LeetCode
628 Maximum Product of Three N… Array (/tag/array) Math (/tag/math) 46.9%
# Title Tags Acceptance
176 Second Highest Salary (/probl… 31.2%
410 Split Array Largest Sum (/pro… Binary Search (/tag/binary-search) 44.3%
Dynamic Programming (/tag/dynamic-programming)
283 Move Zeroes (/problems/mov… Array (/tag/array) Two Pointers (/tag/two-pointers) 57.6%
204 Count Primes (/problems/cou… Hash Table (/tag/hash-table) Math (/tag/math) 31.3%
Graph (/tag/graph)
287 Find the Duplicate Number (/… Array (/tag/array) Two Pointers (/tag/two-pointers) 54.0%
Binary Search (/tag/binary-search)
380 I t D l t G tR
https://leetcode.com/company/amazon/
d O(1 47 2% 13/26
6/24/2020 Amazon - LeetCode
380 Insert Delete GetRandom O(1… Array (/tag/array) Hash Table (/tag/hash-table) 47.2%
# Title Tags Acceptance
Design (/tag/design)
128 Longest Consecutive Sequen… Array (/tag/array) Union Find (/tag/union-find) 44.7%
String (/tag/string)
105 Construct Binary Tree from Pr… Array (/tag/array) Tree (/tag/tree) 47.9%
Depth-first Search (/tag/depth-first-search)
173 Binary Search Tree Iterator (/… Stack (/tag/stack) Tree (/tag/tree) 55.6%
Design (/tag/design)
Sort (/tag/sort)
Graph (/tag/graph)
675 Cut Off Trees for Golf Event (/… Breadth-first Search (/tag/breadth-first-search) 34.4%
https://leetcode.com/company/amazon/ 15/26
6/24/2020 Amazon - LeetCode
771
# Jewels
Title and Stones (/problem… Hash Table (/tag/hash-table)
Tags 86.1%
Acceptance
772 Basic Calculator III (/problem… String (/tag/string) Stack (/tag/stack) 40.9%
Graph (/tag/graph)
622 Design Circular Queue (/probl… Design (/tag/design) Queue (/tag/queue) 43.3%
Heap (/tag/heap)
Backtracking (/tag/backtracking)
Greedy (/tag/greedy)
217 Contains Duplicate (/problem… Array (/tag/array) Hash Table (/tag/hash-table) 55.7%
307 Range Sum Query - Mutable … Binary Indexed Tree (/tag/binary-indexed-tree) 33.8%
Segment Tree (/tag/segment-tree)
336 Palindrome Pairs (/problems/… Hash Table (/tag/hash-table) String (/tag/string) 33.5%
Trie (/tag/trie)
6 Zi Z C
https://leetcode.com/company/amazon/
i (/ bl 35 8% 17/26
6/24/2020 Amazon - LeetCode
6 ZigZag Conversion (/problem… String (/tag/string) 35.8%
# Title Tags Acceptance
161 One Edit Distance (/problems… String (/tag/string) 32.2%
148 Sort List (/problems/sort-list) Linked List (/tag/linked-list) Sort (/tag/sort) 41.4%
219 Contains Duplicate II (/proble… Array (/tag/array) Hash Table (/tag/hash-table) 37.4%
353 Design Snake Game (/proble… Design (/tag/design) Queue (/tag/queue) 33.6%
Graph (/tag/graph)
296 Best Meeting Point (/problem… Math (/tag/math) Sort (/tag/sort) 57.2%
317 Shortest Distance from All Bui… Breadth-first Search (/tag/breadth-first-search) 41.1%
https://leetcode.com/company/amazon/ 18/26
6/24/2020 Amazon - LeetCode
# Title Tags Acceptance
249 Group Shifted Strings (/proble… Hash Table (/tag/hash-table) String (/tag/string) 54.0%
775 Global and Local Inversions (/… Array (/tag/array) Math (/tag/math) 41.8%
708 Insert into a Sorted Circular Li… Linked List (/tag/linked-list) 31.4%
876 Middle of the Linked List (/pro… Linked List (/tag/linked-list) 68.2%
706 Design HashMap (/problems/… Hash Table (/tag/hash-table) Design (/tag/design) 60.7%
931 Minimum Falling Path Sum (/… Dynamic Programming (/tag/dynamic-programming) 62.0%
399 Evaluate Division (/problems/… Union Find (/tag/union-find) Graph (/tag/graph) 51.0%
366 Fi d L
https://leetcode.com/company/amazon/
f Bi T (/ 70 2% 20/26
6/24/2020 Amazon - LeetCode
366 Find Leaves of Binary Tree (/… Tree (/tag/tree) 70.2%
# Title
Tags Acceptance
Depth-first Search (/tag/depth-first-search)
528 Random Pick with Weight (/pr… Binary Search (/tag/binary-search) 43.8%
Random (/tag/random)
957 Prison Cells After N Days (/pr… Hash Table (/tag/hash-table) 39.6%
759 Employee Free Time (/proble… Heap (/tag/heap) Greedy (/tag/greedy) 65.4%
895 Maximum Frequency Stack (/… Hash Table (/tag/hash-table) Stack (/tag/stack) 60.5%
973 K Closest Points to Origin (/pr… Divide and Conquer (/tag/divide-and-conquer) 63.4%
Heap (/tag/heap) Sort (/tag/sort)
977 Squares of a Sorted Array (/p… Array (/tag/array) Two Pointers (/tag/two-pointers) 72.3%
983 Minimum Cost For Tickets (/p… Dynamic Programming (/tag/dynamic-programming) 59.8%
987 Vertical Order Traversal of a … Hash Table (/tag/hash-table) Tree (/tag/tree) 35.1%
1004 Max Consecutive Ones III (/pr… Two Pointers (/tag/two-pointers) 58.2%
Sliding Window (/tag/sliding-window)
1019 Next Greater Node In Linked … Linked List (/tag/linked-list) Stack (/tag/stack) 57.2%
359 Logger Rate Limiter (/problem… Hash Table (/tag/hash-table) Design (/tag/design) 70.0%
1152 Analyze User Website Visit P… Array (/tag/array) Hash Table (/tag/hash-table) 43.5%
Sort (/tag/sort)
1038 Binary Search Tree to Greate… Binary Search Tree (/tag/binary-search-tree) 80.4%
https://leetcode.com/company/amazon/ 22/26
6/24/2020 Amazon - LeetCode
#
1044 Title
Longest Duplicate Substring (… Tags
Hash Table (/tag/hash-table) Acceptance
32.0%
Binary Search (/tag/binary-search)
726 Number of Atoms (/problems/… Hash Table (/tag/hash-table) Stack (/tag/stack) 48.2%
Recursion (/tag/recursion)
Tree (/tag/tree)
1214 Two Sum BSTs (/problems/tw… Binary Search Tree (/tag/binary-search-tree) 67.5%
1002 Find Common Characters (/pr… Array (/tag/array) Hash Table (/tag/hash-table) 67.5%
938 Range Sum of BST (/problem… Tree (/tag/tree) Recursion (/tag/recursion) 80.8%
1299 R l El
https://leetcode.com/company/amazon/
t ith G t 76 2% 23/26
6/24/2020 Amazon - LeetCode
1299 Replace Elements with Great… Array (/tag/array) 76.2%
# Title Tags Acceptance
456 132 Pattern (/problems/132-p… Stack (/tag/stack) 28.9%
1046 Last Stone Weight (/problems… Heap (/tag/heap) Greedy (/tag/greedy) 62.1%
1155 Number of Dice Rolls With Ta… Dynamic Programming (/tag/dynamic-programming) 49.2%
1382 Balance a Binary Search Tre… Binary Search Tree (/tag/binary-search-tree) 74.1%
1429 First Unique Number (/proble… Hash Table (/tag/hash-table) Design (/tag/design) 46.5%
https://leetcode.com/company/amazon/ 24/26
6/24/2020 Amazon - LeetCode
#
1153 String Transforms Into Anoth…
Title Tags
Graph (/tag/graph) Acceptance
35.8%
1130 Minimum Cost Tree From Lea… Dynamic Programming (/tag/dynamic-programming) 65.6%
Stack (/tag/stack) Tree (/tag/tree)
1266 Minimum Time Visiting All Poi… Array (/tag/array) Geometry (/tag/geometry) 79.4%
1247 Minimum Swaps to Make Stri… String (/tag/string) Greedy (/tag/greedy) 59.6%
1233 Remove Sub-Folders from th… Array (/tag/array) String (/tag/string) 58.2%
1267 Count Servers that Communi… Array (/tag/array) Graph (/tag/graph) 57.7%
1365 How Many Numbers Are Sma… Array (/tag/array) Hash Table (/tag/hash-table) 85.2%
921 Minimum Add to Make Parent… Stack (/tag/stack) Greedy (/tag/greedy) 73.1%
https://leetcode.com/company/amazon/ 26/26