Recent interview Questions for Amazon
Prepare better for apple
if you want to save time even more SUBSCRIBE to get questions from most frequently asked to least
- Binary Tree Maximum Path Sum
- Subsets II
- Customer Placing the Largest Number of Orders
- Rotate Image
- Path Sum II
- Find the Duplicate Number
- Nth Digit
- Sum of Square Numbers
- Count Sorted Vowel Strings
- Palindromic Substrings
- Shuffle the Array
- LRU Cache
- Binary Tree Postorder Traversal
- Find K Closest Elements
- Partition List
- Contains Duplicate III
- Interleaving String
- Inorder Successor in BST
- K-th Symbol in Grammar
- Random Pick with Weight
- Find All Numbers Disappeared in an Array
- Minimum Add to Make Parentheses Valid
- Binary Trees With Factors
- Gas Station
- 3Sum Smaller
- Vertical Order Traversal of a Binary Tree
- Excel Sheet Column Title
- 4Sum
- Check if a Parentheses String Can Be Valid
- Maximum Number of Events That Can Be Attended
- Word Subsets
- Jump Game II
- Root Equals Sum of Children
- Populating Next Right Pointers in Each Node
- Number of Islands
- Count Primes
- Longest Arithmetic Subsequence
- Build Array from Permutation
- Maximum Score Of Spliced Array
- Customers Who Never Order
- Sum of Subarray Minimums
- Find the Smallest Divisor Given a Threshold
- Daily Temperatures
- Non-overlapping Intervals
- Remove Duplicate Letters
- Sqrt(x)
- Boundary of Binary Tree
- Maximum Subarray
- 3Sum
- Remove Digit From Number to Maximize Result
- Minimize the Maximum Difference of Pairs
- Count Items Matching a Rule
- Trapping Rain Water
- Set Matrix Zeroes
- Valid Triangle Number
- Delete Node in a BST
- Maximum Number of Vowels in a Substring of Given Length
- Power of Four
- The Earliest and Latest Rounds Where Players Compete
- Best Time to Buy and Sell Stock with Transaction Fee
- Fibonacci Number
- Relative Sort Array
- Path with Maximum Gold
- Reverse Nodes in k-Group
- Move Zeroes
- Equal Row and Column Pairs
- Single Number III
- Reverse Linked List II
- Range Frequency Queries
- Validate Stack Sequences
- Partition Equal Subset Sum
- Container With Most Water
- Fizz Buzz
- Bitwise AND of Numbers Range
- First Unique Character in a String
- Rabbits in Forest
- Maximum Product Difference Between Two Pairs
- Check If Two String Arrays are Equivalent
- Best Time to Buy and Sell Stock IV
- Max Stack
- Diameter of Binary Tree
- Longest Increasing Subsequence
- Contiguous Array
- Merge Two Sorted Lists
- Combinations
- H-Index
- Copy List with Random Pointer
- Trapping Rain Water II
- Best Time to Buy and Sell Stock
- Grumpy Bookstore Owner
- Search in a Binary Search Tree
- Squares of a Sorted Array
- Permutations II
- Reverse Words in a String III
- Longest Common Prefix
- Rotting Oranges
- Minimum Number of Swaps to Make the String Balanced
- Lowest Common Ancestor of a Binary Tree III
- Text Justification
- Distinct Subsequences
- Soup Servings
- Reverse Integer
- Video Stitching
- Not Boring Movies
- Maximum Size Subarray Sum Equals k
- Managers with at Least 5 Direct Reports
- Maximum Product Subarray
- First Bad Version
- Minimum Number of Operations to Make Array Continuous
- Car Pooling
- Valid Anagram
- String to Integer (atoi)
- Find the Highest Altitude
- Longest String Chain
- First Missing Positive
- Max Consecutive Ones III
- Find in Mountain Array
- Find Bottom Left Tree Value
- Palindrome Partitioning II
- Decode Ways
- Accounts Merge
- Dungeon Game
- Build a Matrix With Conditions
- Reverse Vowels of a String
- Find the Town Judge
- Binary Tree Zigzag Level Order Traversal
- Number of 1 Bits
- Binary Search Tree Iterator
- Best Team With No Conflicts
- Count All Valid Pickup and Delivery Options
- Find Peak Element
- Shuffle an Array
- Median of Two Sorted Arrays
- Degree of an Array
- Bag of Tokens
- Course Schedule
- Sum of Total Strength of Wizards
- Cherry Pickup II
- Two Furthest Houses With Different Colors
- Most Frequent Subtree Sum
- Paint House III
- Partition Labels
- Group Anagrams
- Word Pattern
- Wildcard Matching
- Exclusive Time of Functions
- Convert Sorted Array to Binary Search Tree
- Shortest Path Visiting All Nodes
- Satisfiability of Equality Equations
- Data Stream as Disjoint Intervals
- Add Strings
- Longest Subarray of 1's After Deleting One Element
- Sort List
- Odd Even Linked List
- Basic Calculator
- Maximum Score from Performing Multiplication Operations
- Can Place Flowers
- Linked List Cycle II
- Max Points on a Line
- Sequential Digits
- Majority Element
- Largest Divisible Subset
- Design HashSet
- Island Perimeter
- Word Break II
- Number of Subarrays with Bounded Maximum
- Gray Code
- Partition Array Into Two Arrays to Minimize Sum Difference
- Integer Break
- 01 Matrix
- Kids With the Greatest Number of Candies
- Add Digits
- Design Browser History
- Remove All Adjacent Duplicates In String
- Roman to Integer
- Letter Combinations of a Phone Number
- Is Subsequence
- Employee Importance
- Number of Beautiful Integers in the Range
- Maximum Profit in Job Scheduling
- Palindrome Linked List
- Implement Trie (Prefix Tree)
- Unique Binary Search Trees
- Minimum Number of Moves to Make Palindrome
- Power of Two
- Clone Graph
- Swapping Nodes in a Linked List
- Palindrome Number
- Flatten Nested List Iterator
- Combination Sum II
- Insert Interval
- Serialize and Deserialize Binary Tree
- Validate Binary Search Tree
- Boats to Save People
- Invert Binary Tree
- Find the Index of the First Occurrence in a String
- Valid Palindrome II
- Complement of Base 10 Integer
- Sudoku Solver
- Prime Arrangements
- Maximum Depth of N-ary Tree
- How Many Numbers Are Smaller Than the Current Number
- Find Median from Data Stream
- Restore IP Addresses
- Max Consecutive Ones
- Largest Rectangle in Histogram
- Swap Nodes in Pairs
- Minimum Number of Removals to Make Mountain Array
- Reducing Dishes
- Sort Characters By Frequency
- Minimum Area Rectangle
- Verifying an Alien Dictionary
- Closest Dessert Cost
- Binary Tree Level Order Traversal
- Richest Customer Wealth
- Repeated Substring Pattern
- Top K Frequent Words
- Count and Say
- Lexicographically Smallest Equivalent String
- Product of the Last K Numbers
- Edit Distance
- Intersection of Two Arrays II
- Search in Rotated Sorted Array II
- Design Circular Queue
- Search in Rotated Sorted Array
- Find and Replace Pattern
- Counter
- Reshape the Matrix
- Minimum Height Trees
- Intersection of Two Arrays
- Kth Smallest Element in a BST
- Recover Binary Search Tree
- Maximum Length of Pair Chain
- Subsets
- Sum of Two Integers
- Smallest Range Covering Elements from K Lists
- Longest Increasing Path in a Matrix
- Read N Characters Given read4 II - Call Multiple Times
- Minimum Window Substring
- Valid Sudoku
- Power of Three
- Rearrange Products Table
- Lowest Common Ancestor of a Binary Tree
- Running Sum of 1d Array
- Symmetric Tree
- Climbing Stairs
- Regular Expression Matching
- Add Two Integers
- Cheapest Flights Within K Stops
- Next Greater Node In Linked List
- Wiggle Subsequence
- Design Twitter
- Spiral Matrix II
- Matrix Diagonal Sum
- Ransom Note
- Fruit Into Baskets
- Remove Duplicates from Sorted List II
- Find All Duplicates in an Array
- Number of Pairs of Strings With Concatenation Equal to Target
- Second Highest Salary
- Merge Strings Alternately
- Best Time to Buy and Sell Stock II
- Search a 2D Matrix II
- Time Based Key-Value Store
- Split Array into Consecutive Subsequences
- Number of Provinces
- Sum of Subarray Ranges
- Happy Number
- Smallest Even Multiple
- Split Array Largest Sum
- Single Number II
- Sort Colors
- Partition to K Equal Sum Subsets
- Divide Two Integers
- Reverse String II
- Uncrossed Lines
- Partitioning Into Minimum Number Of Deci-Binary Numbers
- Word Search
- Best Time to Buy and Sell Stock III
- Transpose Matrix
- Shortest Path in a Grid with Obstacles Elimination
- Longest Substring Without Repeating Characters
- Dot Product of Two Sparse Vectors
- Find Minimum in Rotated Sorted Array
- Check Completeness of a Binary Tree
- Join Two Arrays by ID
- Capacity To Ship Packages Within D Days
- N-Queens
- Delete Node in a Linked List
- Same Tree
- Reverse Linked List
- Binary Tree Paths
- Design Add and Search Words Data Structure
- Insert Delete GetRandom O(1) - Duplicates allowed
- Find the Celebrity
- Valid Phone Numbers
- Number of Digit One
- Integer to Roman
- Permutation in String
- Group the People Given the Group Size They Belong To
- Word Ladder
- Maximum Frequency Stack
- Backspace String Compare
- Kth Largest Element in an Array
- Basic Calculator II
- Rotate String
- The Number of Seniors and Juniors to Join the Company
- Employee Free Time
- Big Countries
- Maximum Units on a Truck
- Largest Perimeter Triangle
- Remove Duplicates from Sorted List
- Meeting Scheduler
- Last Stone Weight
- Next Permutation
- LFU Cache
- Flood Fill
- Min Stack
- Evaluate Division
- Perfect Squares
- Serialize and Deserialize N-ary Tree
- Word Break
- Maximum XOR of Two Numbers in an Array
- Angle Between Hands of a Clock
- Binary Tree Pruning
- Peeking Iterator
- Pascal's Triangle
- Add Two Numbers
- Check if Numbers Are Ascending in a Sentence
- Custom Sort String
- Koko Eating Bananas
- Minimum Cost to Cut a Stick
- Check If It Is a Straight Line
- Sort the People
- Generate Parentheses
- Pacific Atlantic Water Flow
- Minimum Number of Refueling Stops
- Game of Life
- Matchsticks to Square
- Contains Duplicate II
- Subtree of Another Tree
- Valid Parentheses
- Intersection of Two Linked Lists
- Remove All Occurrences of a Substring
- Strong Password Checker
- Combination Sum IV
- The Skyline Problem
- Remove One Element to Make the Array Strictly Increasing
- Find Duplicate File in System
- Swap Salary
- Single Number
- Minimum Size Subarray Sum
- 24 Game
- The Dining Philosophers
- Count of Smaller Numbers After Self
- String Compression
- Contains Duplicate
- Maximum Nesting Depth of Two Valid Parentheses Strings
- Meeting Rooms
- Concatenation of Array
- Sort Array by Increasing Frequency
- Find Lucky Integer in an Array
- 132 Pattern
- Find Customer Referee
- Sort an Array
- Single Element in a Sorted Array
- Simplify Path
- Binary Tree Preorder Traversal
- Number of Dice Rolls With Target Sum
- Maximum Value at a Given Index in a Bounded Array
- Subarray Sum Equals K
- Word Search II
- Kth Largest Element in a Stream
- Search a 2D Matrix
- Find if Path Exists in Graph
- Redundant Connection
- Surrounded Regions
- Reorder List
- Find Winner on a Tic Tac Toe Game
- Course Schedule II
- Reordered Power of 2
- Longest Common Subsequence
- Longest Valid Parentheses
- Implement Queue using Stacks
- Find All Anagrams in a String
- Greatest Common Divisor of Strings
- Jump Game III
- Min Cost to Connect All Points
- Range Sum of BST
- Decode String
- Reverse Pairs
- Balanced Binary Tree
- K-diff Pairs in an Array
- Snapshot Array
- Sum Root to Leaf Numbers
- Delete Duplicate Emails
- Convert Sorted List to Binary Search Tree
- Longest Consecutive Sequence
- Minimum Cost For Tickets
- Integer to English Words
- Maximum Level Sum of a Binary Tree
- Array Nesting
- Unique Binary Search Trees II
- Unique Number of Occurrences
- Battleships in a Board
- Valid Parenthesis String
- Minimum Operations to Reduce X to Zero
- Find Minimum in Rotated Sorted Array II
- Delete Operation for Two Strings
- Construct Binary Tree from Preorder and Inorder Traversal
- Maximum Average Subarray I
- Moving Average from Data Stream
- Two Sum
- Fair Distribution of Cookies
- Valid Perfect Square
- Coin Change II
- Find Good Days to Rob the Bank
- Unique Paths II
- Search Suggestions System
- Apply Transform Over Each Element in Array
- Insert Delete GetRandom O(1)
- Dota2 Senate
- UTF-8 Validation
- Design Search Autocomplete System
- Maximum Product of Three Numbers
- Binary Tree Inorder Traversal
- Smallest Rotation with Highest Score
- Design Tic-Tac-Toe
- Remove Comments
- Remove All Adjacent Duplicates in String II
- Validate IP Address
- Pairs of Songs With Total Durations Divisible by 60
- Rectangle Overlap
- Remove Nth Node From End of List
- Next Greater Element III
- Print FooBar Alternately
- Final Value of Variable After Performing Operations
- Largest Number
- Valid Palindrome
- Kth Missing Positive Number
- Department Highest Salary
- All Nodes Distance K in Binary Tree
- Snakes and Ladders
- Search Insert Position
- Combination Sum
- Find Pivot Index
- Flipping an Image
- Maximum Score of a Good Subarray
- Binary Tree Right Side View
- Top K Frequent Elements
- Triangle Judgement
- Remove Duplicates from Sorted Array II
- Spiral Matrix III
- N-th Tribonacci Number
- Implement Stack using Queues
- Guess Number Higher or Lower
- Painting the Walls
- House Robber
- Spiral Matrix
- Peak Index in a Mountain Array
- Logger Rate Limiter
- Longest Palindrome
- Rotate Array
- Count Complete Tree Nodes
- Classes More Than 5 Students
- Middle of the Linked List
- Permutations
- Add Binary
- Assign Cookies
- Jump Game
- Longest Repeating Character Replacement
- All Possible Full Binary Trees
- Frequency of the Most Frequent Element
- Burst Balloons
- Design Hit Counter
- Target Sum
- Word Ladder II
- Product of Array Except Self
- Minimum Score Triangulation of Polygon
- Defanging an IP Address
- Maximum Length of Repeated Subarray
- Sparse Matrix Multiplication
- Russian Doll Envelopes
- Minimum Time Visiting All Points
- Find the Pivot Integer
- Calculate Special Bonus
- Palindrome Pairs
- Alien Dictionary
- Optimal Account Balancing
- Add Two Numbers II
- K Closest Points to Origin
- Biggest Single Number
- Is Graph Bipartite?
- Scramble String
- Lowest Common Ancestor of a Binary Search Tree
- Maximum Earnings From Taxi
- Pascal's Triangle II
- Merge Sorted Array
- Merge Intervals
- Customer Who Visited but Did Not Make Any Transactions
- Maximal Square
- Isomorphic Strings
- Sliding Window Maximum
- Maximum Number of Words Found in Sentences
- Minimum Falling Path Sum II
- Pow(x, n)
- Zigzag Conversion
- Pizza With 3n Slices
- K Inverse Pairs Array
- Palindrome Partitioning
- Coin Change
- Rectangle Area
- Longest Substring with At Least K Repeating Characters
- Minimum Number of Arrows to Burst Balloons
- Delete and Earn
- Max Number of K-Sum Pairs
- Jump Game VI
- Longest Palindromic Substring
- Min Cost Climbing Stairs
- Remove Linked List Elements
- Asteroid Collision
- Number of Good Pairs
- Furthest Building You Can Reach
- 3Sum Closest
- Merge Two Binary Trees
- Plus One
- Merge k Sorted Lists
- Number of Atoms
- Maximal Rectangle
- Linked List Cycle
- Baseball Game
- Valid Number
- Ones and Zeroes
- Meeting Rooms II
- Finding 3-Digit Even Numbers
- Letter Case Permutation
- Substring with Concatenation of All Words
- Reverse String
- Find Common Characters
- Number of Good Leaf Nodes Pairs
- Number Complement
- The K Weakest Rows in a Matrix
- Find the Difference
- Remove Invalid Parentheses
- Triangle
- Count Odd Numbers in an Interval Range
- Maximum Rows Covered by Columns
- Longest Duplicate Substring
- Consecutive Numbers
- Number of Squareful Arrays
- Number of Steps to Reduce a Number to Zero
- Maximum Width of Binary Tree
- Stone Game IV
- Deepest Leaves Sum
- Find Target Indices After Sorting Array
- Rank Scores
- Maximum Depth of Binary Tree
- Flatten Binary Tree to Linked List
- Car Fleet
- Consecutive Characters
- Remove Duplicates from Sorted Array
- Reverse Bits
- Next Greater Element I
- Predict the Winner
- Next Greater Element II
- Remove Element
- Minimum Path Sum
- Swim in Rising Water
- Super Egg Drop
- Maximize Distance to Closest Person
- Majority Element II
- Reformat Date
- Create Hello World Function
- Score of Parentheses
- Average Time of Process per Machine
- Goal Parser Interpretation
- Find First and Last Position of Element in Sorted Array
- Length of Last Word
- Minimum Genetic Mutation
- Number of Distinct Islands
- My Calendar I
- Balance a Binary Search Tree
- Task Scheduler
- Missing Number
- Basic Calculator III
- Longest Palindromic Subsequence
- Two Sum IV - Input is a BST
- Design HashMap
- Excel Sheet Column Number
- Subtract the Product and Sum of Digits of an Integer
- Count Different Palindromic Subsequences
- Reverse Words in a String
- Count Numbers with Unique Digits
- Last Day Where You Can Still Cross
- Reverse Words in a String II
- Subarrays with K Different Integers
- Distribute Coins in Binary Tree
- Combine Two Tables
- Two Sum II - Input Array Is Sorted
- Binary Search
- Max Area of Island
- Rotate List
- Shortest Path in Binary Matrix
- Time Needed to Inform All Employees
- Unique Paths
- Recyclable and Low Fat Products
- Reorganize String
- Escape a Large Maze
- Maximal Network Rank
- Continuous Subarray Sum
- Find K Pairs with Smallest Sums
- Compare Version Numbers