Recent interview Questions for Amazon
Prepare better for amazon
if you want to save time even more SUBSCRIBE to get questions from most frequently asked to least
- Find the Index of the First Occurrence in a String
- How Many Numbers Are Smaller Than the Current Number
- Sum of Total Strength of Wizards
- Optimal Division
- Painting the Walls
- Pascal's Triangle II
- Sales Analysis III
- Interval List Intersections
- Check If a String Contains All Binary Codes of Size K
- Array Partition
- Course Schedule III
- Rotate List
- Longest Substring with At Least K Repeating Characters
- Equal Row and Column Pairs
- Find Cumulative Salary of an Employee
- Design Tic-Tac-Toe
- Find the Difference of Two Arrays
- Destination City
- Minimum Operations to Make the Array Increasing
- Dot Product of Two Sparse Vectors
- Minimum Moves to Equal Array Elements
- Third Maximum Number
- Capital Gain/Loss
- Longest Increasing Subsequence
- Number of Closed Islands
- Decode Ways
- Append Characters to String to Make Subsequence
- Remove Palindromic Subsequences
- Robot Room Cleaner
- N-ary Tree Level Order Traversal
- Is Graph Bipartite?
- Special Array With X Elements Greater Than or Equal X
- Satisfiability of Equality Equations
- Binary Tree Inorder Traversal
- Sum of Subarray Minimums
- Word Frequency
- Valid Sudoku
- Managers with at Least 5 Direct Reports
- Find Numbers with Even Number of Digits
- Palindrome Partitioning
- Count Number of Texts
- Unique Email Addresses
- Maximum Difference Between Increasing Elements
- Valid Mountain Array
- String Compression
- Duplicate Emails
- Most Frequent Subtree Sum
- Evaluate Reverse Polish Notation
- Perfect Number
- Order Two Columns Independently
- Push Dominoes
- Delete Nodes And Return Forest
- Backspace String Compare
- Missing Element in Sorted Array
- Transpose Matrix
- Design A Leaderboard
- Binary String With Substrings Representing 1 To N
- Minimum Size Subarray Sum
- Minimum Deletions to Make Character Frequencies Unique
- Sales by Day of the Week
- Insert Delete GetRandom O(1) - Duplicates allowed
- Richest Customer Wealth
- Minimum Number of Operations to Make Array Empty
- Rearrange Characters to Make Target String
- Maximum Star Sum of a Graph
- Group Shifted Strings
- Remove All Adjacent Duplicates In String
- Delete and Earn
- Stream of Characters
- Decoded String at Index
- Distribute Coins in Binary Tree
- Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- Gas Station
- Find Unique Binary String
- Solving Questions With Brainpower
- Find the K-Sum of an Array
- Lowest Common Ancestor of a Binary Search Tree
- Counting Bits
- Combination Sum
- Non-decreasing Subsequences
- Binary Tree Level Order Traversal
- Valid Phone Numbers
- Partition List
- Circular Array Loop
- Delete Operation for Two Strings
- Actors and Directors Who Cooperated At Least Three Times
- Add Two Numbers
- Find the Winner of the Circular Game
- Tuple with Same Product
- Max Consecutive Ones
- Delete Node in a Linked List
- Longest Happy Prefix
- Maximum Performance of a Team
- Check if a Parentheses String Can Be Valid
- Sum of Digits in the Minimum Number
- Count and Say
- All Elements in Two Binary Search Trees
- Clone Binary Tree With Random Pointer
- Find Distance in a Binary Tree
- Largest Odd Number in String
- Uncrossed Lines
- Product's Price for Each Store
- Maximum Number of Weeks for Which You Can Work
- Smallest Sufficient Team
- Edit Distance
- Kth Smallest Element in a Sorted Matrix
- Kth Largest Sum in a Binary Tree
- Koko Eating Bananas
- Pseudo-Palindromic Paths in a Binary Tree
- Wiggle Sort II
- Maximum Alternating Subarray Sum
- Strong Password Checker
- Find Interview Candidates
- Shortest Palindrome
- Longest Binary Subsequence Less Than or Equal to K
- Minesweeper
- Find the Maximum Achievable Number
- First Missing Positive
- Find the Minimum and Maximum Number of Nodes Between Critical Points
- Convert BST to Greater Tree
- Data Stream as Disjoint Intervals
- Find the City With the Smallest Number of Neighbors at a Threshold Distance
- Serialize and Deserialize Binary Tree
- Copy List with Random Pointer
- Minimum Money Required Before Transactions
- Kth Smallest Product of Two Sorted Arrays
- K-Concatenation Maximum Sum
- Verify Preorder Sequence in Binary Search Tree
- Sum of Square Numbers
- Distinct Subsequences
- Sort the Matrix Diagonally
- Longest Palindromic Substring
- Implement Queue using Stacks
- Merge Operations to Turn Array Into a Palindrome
- Department Top Three Salaries
- Minimum Operations to Make the Array K-Increasing
- The Maze III
- Permutation in String
- Sort Array by Increasing Frequency
- Capacity To Ship Packages Within D Days
- Valid Permutations for DI Sequence
- Sliding Window Median
- Remove All Occurrences of a Substring
- Course Schedule
- Course Schedule II
- Asteroid Collision
- Design Front Middle Back Queue
- Prime Arrangements
- Sliding Window Maximum
- Count Nodes Equal to Average of Subtree
- Two Sum BSTs
- Partition to K Equal Sum Subsets
- Minimum Space Wasted From Packaging
- Reverse Words in a String
- Minimum Number of Operations to Move All Balls to Each Box
- Lowest Common Ancestor of a Binary Tree
- Search in Rotated Sorted Array
- Unique Paths II
- Maximum Length of Subarray With Positive Product
- Minimum Area Rectangle
- Number of Ways to Split Array
- String Matching in an Array
- Set Mismatch
- Sum of Nodes with Even-Valued Grandparent
- K Divisible Elements Subarrays
- Minimum Number of Swaps to Make the String Balanced
- Reach a Number
- Split Array into Fibonacci Sequence
- Products With Three or More Orders in Two Consecutive Years
- Count Binary Substrings
- Product of the Last K Numbers
- Assign Cookies
- Sparse Matrix Multiplication
- Reorder List
- Concatenated Words
- Number of Steps to Reduce a Number in Binary Representation to One
- 4Sum
- Validate Stack Sequences
- Design a Stack With Increment Operation
- Best Time to Buy and Sell Stock II
- Count Number of Pairs With Absolute Difference K
- Arithmetic Slices
- Minimum Adjacent Swaps for K Consecutive Ones
- Best Time to Buy and Sell Stock
- Process Tasks Using Servers
- Not Boring Movies
- Find the Derangement of An Array
- Largest Rectangle in Histogram
- Minimum Depth of Binary Tree
- Consecutive Numbers Sum
- Maximum Absolute Sum of Any Subarray
- Minimum Number of Operations to Sort a Binary Tree by Level
- Path Sum III
- Letter Case Permutation
- Combine Two Tables
- Combination Sum II
- Find Pivot Index
- Reverse Linked List II
- Binary Trees With Factors
- Optimal Account Balancing
- Find Minimum in Rotated Sorted Array II
- Integer to English Words
- Triangle Judgement
- Cyclically Rotating a Grid
- Number of Unequal Triplets in Array
- Find Duplicate Subtrees
- Group the People Given the Group Size They Belong To
- N-Queens
- Letter Combinations of a Phone Number
- Squares of a Sorted Array
- Number of Calls Between Two Persons
- Number of Good Pairs
- Maximum Matching of Players With Trainers
- Reordered Power of 2
- Maximum Frequency Stack
- Maximum Sum of Distinct Subarrays With Length K
- Maximum Units on a Truck
- Divide Two Integers
- Predict the Winner
- Can Place Flowers
- Remove Nth Node From End of List
- Count Good Nodes in Binary Tree
- Time Taken to Cross the Door
- Grand Slam Titles
- Design Browser History
- Lexicographical Numbers
- Longest Square Streak in an Array
- Minimum Operations to Reduce X to Zero
- Elimination Game
- Number of Days in a Month
- Detonate the Maximum Bombs
- Longest Consecutive Sequence
- Can Make Arithmetic Progression From Sequence
- Remove Duplicates from Sorted Array II
- Sum of Left Leaves
- Sort Items by Groups Respecting Dependencies
- House Robber III
- Contains Duplicate
- Palindrome Permutation II
- Meeting Scheduler
- Max Stack
- Roman to Integer
- 3Sum
- Stone Game
- Minimum Garden Perimeter to Collect Enough Apples
- Subsets
- Unique Number of Occurrences
- Least Number of Unique Integers after K Removals
- Gray Code
- Greatest Common Divisor of Strings
- K Radius Subarray Averages
- Profitable Schemes
- Maximum Average Pass Ratio
- The kth Factor of n
- Orderly Queue
- Flatten Binary Tree to Linked List
- Sum of Root To Leaf Binary Numbers
- Minimum Swaps To Make Sequences Increasing
- Number of Distinct Islands
- Walls and Gates
- Maximum Score Words Formed by Letters
- Convert Sorted Array to Binary Search Tree
- Delete Duplicate Emails
- Minimum Rounds to Complete All Tasks
- Binary Search Tree Iterator
- Word Search
- Insert Interval
- Frequency of the Most Frequent Element
- Longest Absolute File Path
- Merge Two Binary Trees
- Maximum Number of Moves in a Grid
- Fizz Buzz
- Angle Between Hands of a Clock
- Minimum Cost to Merge Stones
- Synonymous Sentences
- Count the Number of K-Free Subsets
- Count Number of Rectangles Containing Each Point
- Longest Substring with At Most K Distinct Characters
- Check If N and Its Double Exist
- Create Target Array in the Given Order
- Number of Submatrices That Sum to Target
- Sales Analysis II
- Minimum Cost to Connect Sticks
- Reverse Nodes in k-Group
- Remove Duplicates from Sorted List
- Shortest Impossible Sequence of Rolls
- Reverse Only Letters
- Maximum Value of K Coins From Piles
- Design HashMap
- Max Increase to Keep City Skyline
- Spiral Matrix
- Sort Colors
- Sort Characters By Frequency
- Maximum Sum Circular Subarray
- Count Square Sum Triples
- Filling Bookcase Shelves
- Image Smoother
- Length of Last Word
- Furthest Point From Origin
- Shortest Unsorted Continuous Subarray
- Minimum Genetic Mutation
- Print Binary Tree
- Students and Examinations
- Power of Three
- Employee Importance
- Sort Array By Parity
- Open the Lock
- Out of Boundary Paths
- Two Furthest Houses With Different Colors
- Permutations II
- Minimum Limit of Balls in a Bag
- Relocate Marbles
- Happy Number
- Design an Expression Tree With Evaluate Function
- Array With Elements Not Equal to Average of Neighbors
- Path with Maximum Gold
- Jump Game II
- Construct Binary Tree from Inorder and Postorder Traversal
- Partition Labels
- Maximum Nesting Depth of the Parentheses
- Egg Drop With 2 Eggs and N Floors
- Expression Add Operators
- Find the Pivot Integer
- Jump Game V
- Longest Arithmetic Subsequence of Given Difference
- Remove K Digits
- Convert Binary Search Tree to Sorted Doubly Linked List
- Next Palindrome Using Same Digits
- Reorder Data in Log Files
- Text Justification
- Design In-Memory File System
- Maximal Square
- Count of Smaller Numbers After Self
- Camelcase Matching
- Combination Sum III
- Find Minimum Time to Finish All Jobs
- Word Break II
- Binary Tree Vertical Order Traversal
- Shortest Path Visiting All Nodes
- Sum of Scores of Built Strings
- Search a 2D Matrix II
- Minimize Maximum of Array
- The Number of the Smallest Unoccupied Chair
- Minimum Deletions to Make Array Beautiful
- Binary Tree Paths
- Find K Pairs with Smallest Sums
- Repeated String Match
- Ransom Note
- Regions Cut By Slashes
- Same Tree
- Sum of Beauty in the Array
- Defanging an IP Address
- Merge Two Sorted Lists
- Average Selling Price
- Duplicate Zeros
- Race Car
- Employees With Deductions
- Number of Equivalent Domino Pairs
- Minimum Difference in Sums After Removal of Elements
- 01 Matrix
- Construct Quad Tree
- Best Time to Buy and Sell Stock with Cooldown
- Closest Divisors
- Dota2 Senate
- Read N Characters Given Read4
- Reorganize String
- Random Pick with Blacklist
- Customers With Strictly Increasing Purchases
- Boundary of Binary Tree
- Append K Integers With Minimal Sum
- Partition Array into Disjoint Intervals
- Insert Delete GetRandom O(1)
- Maximize the Confusion of an Exam
- Number of Matching Subsequences
- Search a 2D Matrix
- Keyboard Row
- Minimum Swaps to Group All 1's Together
- Maximum Sum BST in Binary Tree
- Frog Jump
- Analyze User Website Visit Pattern
- Distinct Numbers in Each Subarray
- Path With Maximum Minimum Value
- Number of Music Playlists
- Maximum Subarray
- Flower Planting With No Adjacent
- Number of Islands
- Candy
- Maximum Product Subarray
- Product Sales Analysis I
- Score of Parentheses
- Continuous Subarray Sum
- Maximum Number of Alloys
- Minimum Replacements to Sort the Array
- Max Points on a Line
- Smallest Number in Infinite Set
- Count Negative Numbers in a Sorted Matrix
- Maximum Element After Decreasing and Rearranging
- Substring with Concatenation of All Words
- Maximum Average Subarray I
- Shortest Path in a Grid with Obstacles Elimination
- Random Pick with Weight
- Shortest Path in Binary Matrix
- Find Duplicate File in System
- Function Composition
- Smallest String With Swaps
- Valid Parentheses
- Count Unique Characters of All Substrings of a Given String
- Prime Number of Set Bits in Binary Representation
- Shuffle an Array
- Find the Difference
- Longest Harmonious Subsequence
- Two Sum IV - Input is a BST
- Wiggle Subsequence
- Find Xor-Beauty of Array
- Stone Game V
- Sum of Subsequence Widths
- Convert a Number to Hexadecimal
- Serialize and Deserialize BST
- Subarray Product Less Than K
- Minimum Right Shifts to Sort the Array
- Product Sales Analysis III
- Number of Days Between Two Dates
- Sort Features by Popularity
- Remove Sub-Folders from the Filesystem
- Make K-Subarray Sums Equal
- Find Minimum Time to Finish All Jobs II
- Minimum Cost Tree From Leaf Values
- Count Words Obtained After Adding a Letter
- Friend Requests II: Who Has the Most Friends
- Move Zeroes
- Distant Barcodes
- Binary Tree Preorder Traversal
- Construct Binary Tree from String
- Design Twitter
- Pyramid Transition Matrix
- Count Complete Tree Nodes
- Find All Good Indices
- Minimum Sum of Four Digit Number After Splitting Digits
- Cousins in Binary Tree
- Smallest String With A Given Numeric Value
- Design Add and Search Words Data Structure
- LFU Cache
- Next Greater Node In Linked List
- Flipping an Image
- Sliding Puzzle
- Maximum Subsequence Score
- Maximum Number of Vowels in a Substring of Given Length
- Partition Array for Maximum Sum
- Minimum Average Difference
- Next Greater Element I
- Bulls and Cows
- Palindrome Linked List
- Path With Minimum Effort
- GCD Sort of an Array
- Convert Sorted List to Binary Search Tree
- Maximum Consecutive Floors Without Special Floors
- Shortest Bridge
- The K Weakest Rows in a Matrix
- Maximum Number of Events That Can Be Attended
- Minimum Numbers of Function Calls to Make Target Array
- Minimize the Maximum Difference of Pairs
- Longest Univalue Path
- Step-By-Step Directions From a Binary Tree Node to Another
- Unique Morse Code Words
- Warehouse Manager
- Rank Scores
- Populating Next Right Pointers in Each Node II
- Closest Room
- Partition Array Into Two Arrays to Minimize Sum Difference
- Shortest Common Supersequence
- Restore IP Addresses
- Binary Search Tree to Greater Sum Tree
- Spiral Matrix II
- Swap For Longest Repeated Character Substring
- Logger Rate Limiter
- Closest Binary Search Tree Value
- Partition Array Such That Maximum Difference Is K
- Range Sum Query - Immutable
- Longest Palindrome
- Two Sum
- Binary Tree Postorder Traversal
- Minimum Operations to Convert Number
- Burst Balloons
- Arranging Coins
- Minimum Jumps to Reach Home
- Total Cost to Hire K Workers
- Employees Earning More Than Their Managers
- Find K-th Smallest Pair Distance
- Wildcard Matching
- Find Eventual Safe States
- Jump Game VIII
- Count Square Submatrices with All Ones
- Check if There is a Valid Partition For The Array
- Reverse Pairs
- Number of Smooth Descent Periods of a Stock
- Shortest and Lexicographically Smallest Beautiful String
- Find Common Characters
- Find and Replace Pattern
- Jump Game
- First Bad Version
- Bus Routes
- Number of Valid Words in a Sentence
- Count Number of Nice Subarrays
- Constrained Subsequence Sum
- Department Highest Salary
- Top K Frequent Elements
- Guess Number Higher or Lower
- Add Binary
- Number of Subsequences That Satisfy the Given Sum Condition
- Task Scheduler
- Rectangle Overlap
- Employee Free Time
- Design Circular Queue
- Sqrt(x)
- Vertical Order Traversal of a Binary Tree
- Battleships in a Board
- Reverse Bits
- Invalid Tweets
- Max Sum of Rectangle No Larger Than K
- Number of Good Ways to Split a String
- Maximize Number of Subsequences in a String
- Word Ladder
- Flood Fill
- Maximum Running Time of N Computers
- Minimum Absolute Difference
- Minimum Penalty for a Shop
- Reverse Linked List
- Longest Winning Streak
- Integer Replacement
- Smallest Subtree with all the Deepest Nodes
- Find the Celebrity
- Find Words That Can Be Formed by Characters
- Design Phone Directory
- Single Element in a Sorted Array
- Handshakes That Don't Cross
- Product Sales Analysis V
- Total Hamming Distance
- Find All Possible Recipes from Given Supplies
- Merge BSTs to Create Single BST
- Find First and Last Position of Element in Sorted Array
- Recyclable and Low Fat Products
- Wiggle Sort
- Permutations
- Find Original Array From Doubled Array
- Trips and Users
- Allow One Function Call
- Implement Rand10() Using Rand7()
- Most Profit Assigning Work
- Add Two Numbers II
- Minimum Number of Taps to Open to Water a Garden
- Minimum Number of Frogs Croaking
- Maximum Number of Robots Within Budget
- Difference Between Ones and Zeros in Row and Column
- Different Ways to Add Parentheses
- Number of Wonderful Substrings
- Longest ZigZag Path in a Binary Tree
- Pacific Atlantic Water Flow
- Reverse String II
- Last Person to Fit in the Bus
- Remove Covered Intervals
- Insert into a Binary Search Tree
- Alien Dictionary
- Detect Cycles in 2D Grid
- Number of Islands II
- Maximum Linear Stock Score
- Valid Palindrome III
- Valid Triangle Number
- Path Sum II
- Minimum Number of Days to Make m Bouquets
- Palindrome Pairs
- Design Linked List
- Missing Number
- Replace Words
- Matchsticks to Square
- Maximum Profit in Job Scheduling
- Remove Linked List Elements
- Replace Elements in an Array
- Minimum Moves to Reach Target Score
- Solve the Equation
- Longest Path With Different Adjacent Characters
- Average Salary Excluding the Minimum and Maximum Salary
- Highest Grade For Each Student
- Design Memory Allocator
- 3Sum Closest
- Generate Parentheses
- Kids With the Greatest Number of Candies
- Peeking Iterator
- Summary Ranges
- Average of Levels in Binary Tree
- Best Time to Buy and Sell Stock III
- Maximum Total Beauty of the Gardens
- Fruit Into Baskets
- Reverse Words in a String III
- Time Needed to Rearrange a Binary String
- Partition Array According to Given Pivot
- Minimum Swaps to Group All 1's Together II
- Climbing Stairs
- Reconstruct Itinerary
- Decode XORed Permutation
- House Robber
- Binary Tree Level Order Traversal II
- First Unique Character in a String
- Number of Flowers in Full Bloom
- Lonely Pixel I
- Min Stack
- Kth Distinct String in an Array
- Patching Array
- Valid Parenthesis String
- Find the Substring With Maximum Cost
- Split With Minimum Sum
- Basic Calculator III
- Largest BST Subtree
- Remove Duplicate Letters
- Minimum Absolute Difference in BST
- Maximum Points You Can Obtain from Cards
- Complex Number Multiplication
- Max Area of Island
- Count Different Palindromic Subsequences
- Maximum Width of Binary Tree
- Find the Distance Value Between Two Arrays
- Find the Missing IDs
- Minimum Cost to Cut a Stick
- Find Smallest Letter Greater Than Target
- Loud and Rich
- Convert an Array Into a 2D Array With Conditions
- Remove Invalid Parentheses
- Jewels and Stones
- Linked List in Binary Tree
- Shortest Subarray to be Removed to Make Array Sorted
- Find Minimum in Rotated Sorted Array
- Ad-Free Sessions
- Count the Number of K-Big Indices
- Index Pairs of a String
- Surface Area of 3D Shapes
- Minimum Time Difference
- Design Bitset
- Sum of All Subset XOR Totals
- Jump Game VII
- Path In Zigzag Labelled Binary Tree
- Create Sorted Array through Instructions
- Make String a Subsequence Using Cyclic Increments
- Baseball Game
- Armstrong Number
- Product Sales Analysis IV
- Single Number III
- Customer Who Visited but Did Not Make Any Transactions
- Customer Order Frequency
- Decompress Run-Length Encoded List
- Sorting the Sentence
- Even Odd Tree
- Coin Change II
- Find if Path Exists in Graph
- Power of Two
- Sum of Two Integers
- Count Special Integers
- Design File System
- Fair Distribution of Cookies
- Maximum Erasure Value
- Critical Connections in a Network
- Number of Distinct Islands II
- Serialize and Deserialize N-ary Tree
- Pascal's Triangle
- Move Pieces to Obtain a String
- Build Array Where You Can Find The Maximum Exactly K Comparisons
- Map Sum Pairs
- Largest Time for Given Digits
- Queries on a Permutation With Key
- Minimum Remove to Make Valid Parentheses
- Remove Duplicates from Sorted List II
- Running Sum of 1d Array
- Avoid Flood in The City
- Maximum Number of Achievable Transfer Requests
- Rank Transform of an Array
- Range Sum Query 2D - Immutable
- Jump Game III
- Path Sum
- Making File Names Unique
- Determine if String Halves Are Alike
- Longest Duplicate Substring
- Put Marbles in Bags
- Numbers At Most N Given Digit Set
- Number of 1 Bits
- Minimum Score After Removals on a Tree
- Complement of Base 10 Integer
- Design a Food Rating System
- Maximize Distance to Closest Person
- Target Sum
- Range Addition
- Evaluate Division
- Count Operations to Obtain Zero
- Construct Binary Tree from Preorder and Inorder Traversal
- Number of Connected Components in an Undirected Graph
- Maximum Population Year
- Range Addition II
- Flip String to Monotone Increasing
- Min Cost Climbing Stairs
- Recover Binary Search Tree
- Customers Who Bought All Products
- K-Similar Strings
- Count of Integers
- Combination Sum IV
- Palindromic Substrings
- Design Search Autocomplete System
- Longest Common Subpath
- Scramble String
- Number of Distinct Averages
- Kth Missing Positive Number
- Big Countries
- Maximum Width Ramp
- Sort Array By Parity II
- Validate Binary Tree Nodes
- Array Prototype Last
- Regular Expression Matching
- Minimum Sum of Squared Difference
- Symmetric Tree
- Dungeon Game
- Valid Palindrome IV
- Count Primes
- Minimum Number of Moves to Make Palindrome
- Implement Trie (Prefix Tree)
- Sum of Subarray Ranges
- Car Pooling
- Maximal Rectangle
- Minimum Adjacent Swaps to Reach the Kth Smallest Number
- Majority Element II
- Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- Count Array Pairs Divisible by K
- Word Ladder II
- Find the Duplicate Number
- Kth Largest Element in a Stream
- Boats to Save People
- Construct Binary Tree from Preorder and Postorder Traversal
- Fibonacci Number
- Remove Vowels from a String
- Redundant Connection
- Nth Highest Salary
- Add Two Polynomials Represented as Linked Lists
- Maximum Sum of 3 Non-Overlapping Subarrays
- Longest Subarray of 1's After Deleting One Element
- Add One Row to Tree
- Time Needed to Inform All Employees
- Decode String
- Minimum Falling Path Sum
- Meeting Rooms
- Find the Closest Palindrome
- Corporate Flight Bookings
- Encode and Decode TinyURL
- Design Underground System
- Verifying an Alien Dictionary
- Find Target Indices After Sorting Array
- Kth Largest Element in an Array
- Count Unreachable Pairs of Nodes in an Undirected Graph
- Unique Binary Search Trees
- Linked List Cycle
- Valid Anagram
- High Five
- Substrings of Size Three with Distinct Characters
- Get Watched Videos by Your Friends
- Maximum Bags With Full Capacity of Rocks
- Clone N-ary Tree
- Collecting Chocolates
- Zigzag Conversion
- Valid Palindrome II
- Minimum Health to Beat Game
- Subsets II
- Longest Increasing Path in a Matrix
- Students Report By Geography
- Frog Position After T Seconds
- Add Digits
- Max Sum of a Pair With Equal Sum of Digits
- Global and Local Inversions
- Minimum Number of Vertices to Reach All Nodes
- Number of Ways to Reorder Array to Get Same BST
- Game Play Analysis I
- Robot Return to Origin
- Plates Between Candles
- Shuffle the Array
- Beautiful Arrangement
- Buddy Strings
- Minimum Difficulty of a Job Schedule
- All Valid Triplets That Can Represent a Country
- Shopping Offers
- Count All Possible Routes
- Shortest Subarray with Sum at Least K
- Valid Perfect Square
- Accounts Merge
- First Unique Number
- Coin Change
- Multiply Strings
- Minimum Number of Swaps to Make the Binary String Alternating
- Maximize the Profit as the Salesman
- All O`one Data Structure
- Redundant Connection II
- Optimal Partition of String
- Connecting Cities With Minimum Cost
- Shortest Path to Get Food
- Remove Nodes From Linked List
- Number of Longest Increasing Subsequence
- Number of Laser Beams in a Bank
- Number of Provinces
- Remove All Adjacent Duplicates in String II
- List the Products Ordered in a Period
- Cheapest Flights Within K Stops
- Max Consecutive Ones III
- Pancake Sorting
- Shortest Word Distance II
- H-Index
- Delete the Middle Node of a Linked List
- Minimum Number of Refueling Stops
- Make Array Zero by Subtracting Equal Amounts
- Split BST
- Jump Game VI
- Minimum Knight Moves
- Merge Sorted Array
- Check if Array Is Sorted and Rotated
- Find Right Interval
- Maximum Number of Eaten Apples
- Double a Number Represented as a Linked List
- Knight Probability in Chessboard
- Swapping Nodes in a Linked List
- Check If a Word Occurs As a Prefix of Any Word in a Sentence
- Subarrays with K Different Integers
- Lowest Common Ancestor of a Binary Tree III
- UTF-8 Validation
- Sequential Digits
- Binary Tree Zigzag Level Order Traversal
- Next Greater Element II
- Self Dividing Numbers
- Two Sum Less Than K
- Split Array Largest Sum
- Balanced Binary Tree
- Equal Tree Partition
- Peak Index in a Mountain Array
- Maximum Twin Sum of a Linked List
- Longest Continuous Increasing Subsequence
- Magnetic Force Between Two Balls
- Super Washing Machines
- Binary Tree Maximum Path Sum
- Ones and Zeroes
- Find Subsequence of Length K With the Largest Sum
- The Skyline Problem
- Most Stones Removed with Same Row or Column
- Island Perimeter
- Word Abbreviation
- Trapping Rain Water
- Extra Characters in a String
- Paint House II
- Longest Valid Parentheses
- Excel Sheet Column Title
- Consecutive Numbers
- Kth Ancestor of a Tree Node
- Reformat Department Table
- Maximum Path Quality of a Graph
- Users With Two Purchases Within Seven Days
- Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
- Set Matrix Zeroes
- Maximum Number of Points with Cost
- Single Number II
- Rabbits in Forest
- Remove Zero Sum Consecutive Nodes from Linked List
- LRU Cache
- Number of People Aware of a Secret
- Pow(x, n)
- Rotting Oranges
- Excel Sheet Column Number
- Couples Holding Hands
- Moving Average from Data Stream
- Longest Common Subsequence
- Valid Palindrome
- Exchange Seats
- Min Cost to Connect All Points
- Minimum Cost to Make Array Equal
- Design SQL
- RLE Iterator
- First and Last Call On the Same Day
- Minimum Add to Make Parentheses Valid
- Build Array from Permutation
- Matrix Block Sum
- Find the Divisibility Array of a String
- Build Binary Expression Tree From Infix Expression
- Final Prices With a Special Discount in a Shop
- Design Snake Game
- Reverse Substrings Between Each Pair of Parentheses
- Shortest Word Distance
- Partition Equal Subset Sum
- Concatenation of Array
- Find the Town Judge
- Validate IP Address
- Find the Team Size
- Find K Closest Elements
- Determine the Winner of a Bowling Game
- Longest Palindromic Subsequence
- Convert 1D Array Into 2D Array
- Design Hit Counter
- Substring With Largest Variance
- Longest Substring with At Most Two Distinct Characters
- Split Linked List in Parts
- Minimum Insertion Steps to Make a String Palindrome
- Leftmost Column with at Least a One
- Online Stock Span
- Minimum Difference Between Largest and Smallest Value in Three Moves
- Heaters
- Longest String Chain
- Minimized Maximum of Products Distributed to Any Store
- Maximum of Minimum Values in All Subarrays
- Design Parking System
- Ugly Number
- Merge k Sorted Lists
- Contains Duplicate III
- Reverse Integer
- Number of Ways to Select Buildings
- Single Number
- Find N Unique Integers Sum up to Zero
- Find Peak Element
- Customers Who Never Order
- Longest Word in Dictionary
- Maximum Strictly Increasing Cells in a Matrix
- Adding Spaces to a String
- Longest Common Prefix
- Binary Tree Longest Consecutive Sequence
- Number of Dice Rolls With Target Sum
- Robot Bounded In Circle
- Find Missing Observations
- Minimum Window Substring
- Balance a Binary Search Tree
- Missing Ranges
- Implement Stack using Queues
- Game of Life
- Swap Adjacent in LR String
- Minimum Value to Get Positive Step by Step Sum
- Contiguous Array
- Palindrome Number
- Word Break
- Monotonic Array
- Maximum Difference Between Node and Ancestor
- Swim in Rising Water
- Maximal Range That Each Element Is Maximum in It
- Nearest Exit from Entrance in Maze
- Number of Operations to Make Network Connected
- 4Sum II
- Number of Increasing Paths in a Grid
- Strictly Palindromic Number
- Number of Digit One
- Reverse String
- Combinations
- Queue Reconstruction by Height
- Tree Node
- Repeated DNA Sequences
- Top K Frequent Words
- Cache With Time Limit
- Maximum Sum Score of Array
- Rotate Array
- Snapshot Array
- Search in a Binary Search Tree
- Number of Enclaves
- Basic Calculator II
- Find Triangular Sum of an Array
- Clone Graph
- Count Odd Numbers in an Interval Range
- K Closest Points to Origin
- Count Subarrays With Score Less Than K
- Best Time to Buy and Sell Stock with Transaction Fee
- Surrounded Regions
- Container With Most Water
- Next Closest Time
- Find Nearest Point That Has the Same X or Y Coordinate
- Contains Duplicate II
- Perfect Squares
- Find All Duplicates in an Array
- Largest Sum of Averages
- Repeated Substring Pattern
- Digit Count in Range
- Rotate Function
- NPV Queries
- Article Views I
- Find Customer Referee
- Minimum Number of Keypresses
- Shift 2D Grid
- Subarray Sums Divisible by K
- Check for Contradictions in Equations
- Furthest Building You Can Reach
- Check if Word Can Be Placed In Crossword
- Nested List Weight Sum
- Check if One String Swap Can Make Strings Equal
- Find a Peak Element II
- IPO
- Remove Boxes
- Determine Whether Matrix Can Be Obtained By Rotation
- Form Array by Concatenating Subarrays of Another Array
- Largest Multiple of Three
- K-diff Pairs in an Array
- Steps to Make Array Non-decreasing
- Count Stepping Numbers in Range
- Binary Tree Pruning
- All Nodes Distance K in Binary Tree
- Swap Nodes in Pairs
- Minimum Operations to Remove Adjacent Ones in Matrix
- Remove Colored Pieces if Both Neighbors are the Same Color
- Keep Multiplying Found Values by Two
- Replace Non-Coprime Numbers in Array
- Time Based Key-Value Store
- Number of Visible People in a Queue
- Delete Node in a BST
- Basic Calculator
- Number of Times a Driver Was a Passenger
- Count Ways to Make Array With Product
- Product Price at a Given Date
- Customers Who Bought Products A and B but Not C
- K-th Symbol in Grammar
- Pairs of Songs With Total Durations Divisible by 60
- Closest Binary Search Tree Value II
- Number of Ways to Form a Target String Given a Dictionary
- Product of Array Except Self
- Find Resultant Array After Removing Anagrams
- Sudoku Solver
- Group Anagrams
- Construct String from Binary Tree
- Word Pattern
- Check if Move is Legal
- Students With Invalid Departments
- Minimum Time to Complete Trips
- House Robber II
- Find Winner on a Tic Tac Toe Game
- Majority Element
- Prison Cells After N Days
- Friendly Movies Streamed Last Month
- Trim a Binary Search Tree
- Exclusive Time of Functions
- Smallest Subsequence of Distinct Characters
- Find the Most Competitive Subsequence
- Design Excel Sum Formula
- Cinema Seat Allocation
- Car Fleet
- Minimum Score Triangulation of Polygon
- Longest Substring Without Repeating Characters
- Binary Search
- Remove Duplicates from Sorted Array
- Check If It Is a Straight Line
- Minimum Path Sum
- Single-Threaded CPU
- Replace Elements with Greatest Element on Right Side
- Find Median from Data Stream
- Create Hello World Function
- Trapping Rain Water II
- Smallest Range II
- Isomorphic Strings
- Rectangle Area
- Number of Recent Calls
- Find Total Time Spent by Each Employee
- Keys and Rooms
- Bulb Switcher
- Length of the Longest Valid Substring
- Sequentially Ordinal Rank Tracker
- Longest Repeating Substring
- Binary Tree Right Side View
- Kill Process
- Count the Hidden Sequences
- Flip Equivalent Binary Trees
- Max Chunks To Make Sorted
- Design HashSet
- Minimum Moves to Equal Array Elements II
- Populating Next Right Pointers in Each Node
- Encode and Decode Strings
- Construct Target Array With Multiple Sums
- Reverse Words in a String II
- Two City Scheduling
- Maximum Subarray Min-Product
- Unique Paths III
- Split a String Into the Max Number of Unique Substrings
- Count Sorted Vowel Strings
- Second Highest Salary
- Intersection of Two Linked Lists
- Cousins in Binary Tree II
- Maximum Swap
- Concatenation of Consecutive Binary Numbers
- Paint House
- Range Module
- Minimum Cost to Hire K Workers
- Maximum Length of Pair Chain
- Find Leaves of Binary Tree
- Largest Unique Number
- Merge Strings Alternately
- Non-overlapping Intervals
- Count Pairs Of Nodes
- Snakes and Ladders
- Minimum Adjacent Swaps to Make a Valid Array
- Maximum Product of Splitted Binary Tree
- Minimum Number of Arrows to Burst Balloons
- Maximum Number of Events That Can Be Attended II
- Cherry Pickup
- Partitioning Into Minimum Number Of Deci-Binary Numbers
- Human Traffic of Stadium
- Most Common Word
- Minimize the Difference Between Target and Chosen Elements
- Subarray Sum Equals K
- Soup Servings
- Kth Smallest Element in a BST
- Best Poker Hand
- Remove Element
- Add Strings
- Rotate String
- Apply Discount to Prices
- Shortest Path with Alternating Colors
- Maximize the Beauty of the Garden
- Invalid Transactions
- Minimum Degree of a Connected Trio in a Graph
- Lowest Common Ancestor of a Binary Tree IV
- Find Bottom Left Tree Value
- Find Good Days to Rob the Bank
- As Far from Land as Possible
- Check If Array Pairs Are Divisible by k
- Poor Pigs
- Remove Stones to Minimize the Total
- Integer Break
- Search Suggestions System
- Maximum Number of Pairs in Array
- Cells in a Range on an Excel Sheet
- Minimum Operations to Form Subsequence With Target Sum
- Distribute Repeating Integers
- String to Integer (atoi)
- Maximum Size Subarray Sum Equals k
- One Edit Distance
- Number of Atoms
- Most Beautiful Item for Each Query
- Parallel Courses
- Minimum Height Trees
- Next Greater Element III
- Rearrange Products Table
- Daily Temperatures
- Count All Valid Pickup and Delivery Options
- My Calendar I
- Continuous Subarrays
- Search in Rotated Sorted Array II
- Intersection of Two Arrays
- Flatten Nested List Iterator
- Monotone Increasing Digits
- Domino and Tromino Tiling
- Recover a Tree From Preorder Traversal
- Merge Intervals
- Counter
- Make Sum Divisible by P
- Sales Analysis I
- Construct Smallest Number From DI String
- Product Sales Analysis II
- Palindrome Partitioning II
- Flatten a Multilevel Doubly Linked List
- Count Number of Teams
- Simplify Path
- Maximum Depth of Binary Tree
- Using a Robot to Print the Lexicographically Smallest String
- Deepest Leaves Sum
- Maximum Product of Word Lengths
- Divide Chocolate
- Count of Range Sum
- Sell Diminishing-Valued Colored Balls
- All Possible Full Binary Trees
- Check Completeness of a Binary Tree
- Sum of Number and Its Reverse
- The Maze
- Plus One
- Subtree of Another Tree
- Reverse Vowels of a String
- Minimum Time to Make Rope Colorful
- Nth Magical Number
- 3Sum With Multiplicity
- Sum Root to Leaf Numbers
- Remove Digit From Number to Maximize Result
- Custom Sort String
- Super Egg Drop
- Number of Subarrays with Bounded Maximum
- Find in Mountain Array
- Odd Even Linked List
- Stock Price Fluctuation
- Delete Leaves With a Given Value
- Number of Unique Categories
- Russian Doll Envelopes
- Is Subsequence
- Design a Text Editor
- Find All Numbers Disappeared in an Array
- Longest Arithmetic Subsequence
- Amount of Time for Binary Tree to Be Infected
- Maximum Gap
- Cut Off Trees for Golf Event
- Rising Temperature
- Permutation Sequence
- Diameter of Binary Tree
- Removing Stars From a String
- Find First Palindromic String in the Array
- Compare Version Numbers
- Longest Palindrome by Concatenating Two Letter Words
- Maximum Number of Occurrences of a Substring
- Unique Paths
- Sort an Array
- Non-decreasing Array
- Range Sum of BST
- Coloring A Border
- Active Users
- Word Search II
- Linked List Cycle II
- Add Two Integers
- Maximum Product of Two Elements in an Array
- Consecutive Available Seats
- Invert Binary Tree
- Jump Game IV
- Minimum Length of String After Deleting Similar Ends
- Longest Repeating Character Replacement
- Longest Happy String
- Two Sum II - Input Array Is Sorted
- Network Delay Time
- Total Appeal of A String
- Range Sum Query - Mutable
- Find All Anagrams in a String
- 132 Pattern
- Graph Valid Tree
- Maximum Average Subtree
- Maximum Level Sum of a Binary Tree
- Largest Number
- Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
- Best Time to Buy and Sell Stock IV
- Meeting Rooms II
- Count Sub Islands
- Unique Binary Search Trees II
- Find K-Length Substrings With No Repeated Characters
- All Paths From Source to Target
- Validate Binary Search Tree
- Closest Leaf in a Binary Tree
- Last Stone Weight
- Find the Index of the Large Integer
- Brightest Position on Street
- Count Number of Special Subsequences
- Number Complement
- Minimum Sideway Jumps
- Find Closest Number to Zero
- Where Will the Ball Fall
- Intersection of Two Arrays II
- Decode the Slanted Ciphertext
- Integer to Roman
- Hamming Distance
- Triangle
- Power of Four
- Path Crossing
- Root Equals Sum of Children
- Champagne Tower
- Making A Large Island
- Minimum Domino Rotations For Equal Row
- Minimum Cost For Tickets
- Construct Binary Search Tree from Preorder Traversal
- Employee Bonus
- Bitwise AND of Numbers Range
- Reduce Array Size to The Half
- Maximum Number of Non-Overlapping Substrings
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- Interleaving String
- The Score of Students Solving Math Expression
- Smallest Range Covering Elements from K Lists
- Cherry Pickup II
- Smallest Subarrays With Maximum Bitwise OR
- Divide Intervals Into Minimum Number of Groups
- Replace Employee ID With The Unique Identifier
- Valid Number
- Possible Bipartition
- Diet Plan Performance
- Count Vowels Permutation
- Minimum Number of Operations to Make Array Continuous
- Insufficient Nodes in Root to Leaf Paths
- Maximum Product of Three Numbers
- Convert Binary Number in a Linked List to Integer
- Binary Tree Cameras
- Relative Ranks
- Rotate Image
- Random Pick Index
- Count Nodes With the Highest Score
- Fizz Buzz Multithreaded
- Sort List
- Next Permutation
- Median of Two Sorted Arrays
- Maximum XOR of Two Numbers in an Array
- Number of Sets of K Non-Overlapping Line Segments
- Minimum Number of Days to Eat N Oranges
- Sum of All Odd Length Subarrays
- Maximum Sum of Almost Unique Subarray
- Shuffle String
- Alphabet Board Path
- To Be Or Not To Be
- Buildings With an Ocean View
- Minimum Cost Homecoming of a Robot in a Grid
- Rearrange Array Elements by Sign
- Search Insert Position
- Middle of the Linked List
- Max Number of K-Sum Pairs
- Maximum Number of Books You Can Take
- Knight Dialer
- Maximum Length of Repeated Subarray
- Largest Divisible Subset