Amazon
Problems tagged as asked at Amazon, grouped by pattern.
0/360
Solved
0%
Complete
Array
Two SumStart here
Remove Duplicates from Sorted Array
Remove Element
Plus One
Merge Sorted Array
Best Time to Buy and Sell Stock
Majority Element
Contains Duplicate
Summary Ranges
Max Consecutive Ones
Distribute Elements Into Two Arrays I
Find the Largest Almost Missing Integer
Unique 3-Digit Even Numbers
Next Permutation
Remove Duplicates from Sorted Array II
Best Time to Buy and Sell Stock II
Longest Consecutive Sequence
Rotate Array
Majority Element II
Product of Array Except Self
Find All Duplicates in an Array
First Missing Positive
Hash Table
Two Pointers
Sliding Window
Longest Substring Without Repeating Characters
Minimum Size Subarray Sum
Longest Repeating Character Replacement
Permutation in String
Fruit Into Baskets
Max Consecutive Ones III
Shortest and Lexicographically Smallest Beautiful String
Substring with Concatenation of All Words
Minimum Window Substring
Contains Duplicate III
Sliding Window Maximum
Stack
Valid Parentheses
Next Greater Element I
Simplify Path
Evaluate Reverse Polish Notation
Min Stack
Basic Calculator II
Decode String
Next Greater Element II
Daily Temperatures
Car Fleet
Online Stock Span
Minimum Remove to Make Valid Parentheses
Largest Rectangle in Histogram
Basic Calculator
Basic Calculator III
Next Greater Element IV
String
Longest Common Prefix
Find the Index of the First Occurrence in a String
Length of Last Word
Rotate String
Longest Palindromic Substring
Zigzag Conversion
String to Integer (atoi)
Count and Say
Reverse Words in a String
Compare Version Numbers
Palindromic Substrings
Valid Number
Text Justification
Shortest Palindrome
Binary Search
Search Insert Position
Sqrt(x)
Binary Search
Search in Rotated Sorted Array
Find First and Last Position of Element in Sorted Array
Search a 2D Matrix
Search in Rotated Sorted Array II
Find Minimum in Rotated Sorted Array
Find Peak Element
H-Index II
Single Element in a Sorted Array
Koko Eating Bananas
Capacity to Ship Packages Within D Days
Median of Two Sorted Arrays
Find Minimum in Rotated Sorted Array II
Split Array Largest Sum
Kth Smallest Number in Multiplication Table
Distribute Elements Into Two Arrays II
Kth Smallest Amount With Single Denomination Combination
Linked List
Merge Two Sorted Lists
Remove Duplicates from Sorted List
Linked List Cycle
Intersection of Two Linked Lists
Reverse Linked List
Palindrome Linked List
Middle of the Linked List
Add Two Numbers
Remove Nth Node From End of List
Rotate List
Remove Duplicates from Sorted List II
Partition List
Reverse Linked List II
Copy List with Random Pointer
Linked List Cycle II
Reorder List
Sort List
Delete Node in a Linked List
Add Two Numbers II
Find the Minimum and Maximum Number of Nodes Between Critical Points
Merge k Sorted Lists
Reverse Nodes in k-Group
Tree
Binary Tree Inorder Traversal
Same Tree
Symmetric Tree
Maximum Depth of Binary Tree
Balanced Binary Tree
Path Sum
Binary Tree Preorder Traversal
Binary Tree Postorder Traversal
Count Complete Tree Nodes
Invert Binary Tree
Diameter of Binary Tree
Subtree of Another Tree
Average of Levels in Binary Tree
Validate Binary Search Tree
Binary Tree Level Order Traversal
Binary Tree Zigzag Level Order Traversal
Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal
Flatten Binary Tree to Linked List
Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each Node II
Sum Root to Leaf Numbers
Binary Tree Right Side View
Kth Smallest Element in a BST
Lowest Common Ancestor of a Binary Tree
House Robber III
Path Sum III
All Nodes Distance K in Binary Tree
Count Good Nodes in Binary Tree
Count Nodes Equal to Average of Subtree
Binary Tree Maximum Path Sum
Serialize and Deserialize Binary Tree
Serialize and Deserialize N-ary Tree
Graph
Surrounded Regions
Clone Graph
Number of Islands
Course Schedule
Course Schedule II
Graph Valid Tree
Number of Connected Components in an Undirected Graph
Evaluate Division
Redundant Connection
Accounts Merge
Network Delay Time
Is Graph Bipartite?
Cheapest Flights Within K Stops
Course Schedule IV
Min Cost to Connect All Points
Word Ladder
Alien Dictionary
Reconstruct Itinerary
BFS
Heap
Kth Largest Element in a Stream
Last Stone Weight
Kth Largest Element in an Array
Find K Pairs with Smallest Sums
Task Scheduler
Top K Frequent Words
K Closest Points to Origin
Find Median from Data Stream
IPO
Swim in Rising Water
Minimum Interval to Include Each Query
Meeting Rooms III
Dynamic Programming
Climbing Stairs
Pascal's Triangle
Pascal's Triangle II
Counting Bits
Min Cost Climbing Stairs
Maximum Subarray
Unique Paths
Unique Paths II
Minimum Path Sum
Edit Distance
Decode Ways
Interleaving String
Triangle
Word Break
Maximum Product Subarray
House Robber
House Robber II
Maximal Square
Longest Increasing Subsequence
Best Time to Buy and Sell Stock with Cooldown
Coin Change
Combination Sum IV
Partition Equal Subset Sum
Target Sum
Coin Change II
Best Time to Buy and Sell Stock with Transaction Fee
Stone Game
Maximum Sum Circular Subarray
Last Stone Weight II
Stone Game II
Longest Common Subsequence
Number of Sets of K Non-Overlapping Line Segments
Stone Game VII
Jump Game VI
Jump Game VII
Regular Expression Matching
Distinct Subsequences
Best Time to Buy and Sell Stock III
Palindrome Partitioning II
Best Time to Buy and Sell Stock IV
Burst Balloons
Longest Increasing Path in a Matrix
Distinct Subsequences II
Maximum Profit in Job Scheduling
Stone Game III
Jump Game V
Stone Game IV
Palindrome Partitioning IV
Stone Game VIII
Maximum Number of Non-overlapping Palindrome Substrings
Greedy
Jump Game II
Jump Game
Gas Station
Minimum Number of Arrows to Burst Balloons
Valid Parenthesis String
Partition Labels
Hand of Straights
Cinema Seat Allocation
Stone Game VI
Merge Triplets to Form Target Triplet
Removing Minimum and Maximum From Array
Candy
Course Schedule III
Minimum Initial Energy to Finish Tasks
Intervals
Backtracking
Letter Combinations of a Phone Number
Generate Parentheses
Combination Sum
Combination Sum II
Permutations
Permutations II
Combinations
Subsets
Word Search
Subsets II
Path Sum II
Palindrome Partitioning
Combination Sum III
Word Pattern II
Sudoku Solver
N-Queens
N-Queens II
Word Break II
Unique Paths III
Matrix
Flood Fill
Valid Sudoku
Rotate Image
Spiral Matrix
Spiral Matrix II
Set Matrix Zeroes
Game of Life
Pacific Atlantic Water Flow
Construct Quad Tree
Diagonal Traverse
Max Area of Island
Image Overlap
Check if There is a Valid Path in a Grid
Rotating the Box
Math
Palindrome Number
Roman to Integer
Add Binary
Missing Number
Add Strings
Rectangle Overlap
Reverse Integer
Integer to Roman
Multiply Strings
Pow(x, n)
Factorial Trailing Zeroes
Rotate Function
Next Greater Element III
Stone Game IX
Permutation Sequence
Max Points on a Line
Integer to English Words
Prefix Sum
Design
Implement Stack using Queues
Implement Queue using Stacks
Range Sum Query - Immutable
Moving Average from Data Stream
Logger Rate Limiter
LRU Cache
Binary Search Tree Iterator
Implement Trie (Prefix Tree)
Design Add and Search Words Data Structure
Range Sum Query 2D - Immutable
Range Sum Query - Mutable
Design Twitter
Design Hit Counter
Insert Delete GetRandom O(1)
My Calendar I
Time Based Key-Value Store
Detect Squares
Insert Delete GetRandom O(1) - Duplicates allowed
LFU Cache