Leetcode Solutions With Analysis
Introduction
Facebook
Maximum Size Subarray Sum Equals K
Meeting Room
Meeting Rooms II
Walls and Gates
Exclusive Time of Functions
Encode and Decode TinyURL
Inorder Successor in BST
Binary Tree Vertical Order Traversal
Alien Dictonary
Course Schedule
Course Schedule II
Populating Next Right Pointers in Each Node
Read N Characters Given Read4
One Edit Distance
Matrix Multiplication
Remove Duplicates from Sorted Array II
Merge Intervals
Implement Trie
Add and Search Word
Array
3Sum Closest
Find K Pairs with Smallest Sums
Wiggle Subsequences
Can Place Flowers
Valid Triangle Number
Search in Rotated Sorted Array
Search in Rotated Sorted Array II
Minimum Size Sub-array Sum
Maximum Distance in Arrays
Merge Intervals
Insert Interval
Summary Ranges
Jump Game
Next Greater Element I
Next Greater Element II
3 Sum
4 Sum
Maximum Product Subarray
Array Partition I
Distribute Candies
Single Number
Max Consecutive Ones
Find All Numbers Disappeared in an Array
Move Zeroes
Maximum Index Sum of Two Lists
Minimum Moves to Equal Array Elements
Minimum Moves to Equal Array Elements II
Intersection of Two Arrays
Intersection of Two Arrays II
Assign Cookies
Two Sum
Two Sum II
Relative Ranks
Majority Element
Contains Duplicate I
Contains Duplicate II
Maximum Product of Three Numbers
Set Mismatch
Longest Harmonious Subsequence
Maximum Subarray
Remove Element
Plus One
Pascal's Triangle I
Pascal's Triangle II
Maximum Average Subarray I
Merge Sorted Array
Heaters
Shortest Unsorted Continuous Subarray
K-diff Pairs in an Array
Third Maximum Element
Non-decreasing Array
Rotate Array
Find All Duplicates in an Array
Arithmetic Slices
Largest Number
Beautiful Arrangement II
Teemo Attacking
Product of Array Except Self
Array Nesting
Longest Continuous Increasing Subsequence
Predict the Winner
Find the Duplicate Number
Partition Equal Subset Sum
Target Sum
Employee Importance
Task Scheduler
Combination Sum IV
Degree of an Array
H-Index
Patching Array
Maximum Size Subarray Sum Equals K
Backtracking
Palindrome Partitioning
Combinations
Permutations
Permutations II
Subsets
Subsets II
Increasing Subsequences
Beautiful Arrangement
Word Search
Generate Parentheses
Combination Sum III
BFS
Average of Levels in Binary Tree
Invert Binary Tree
Sum of Left Leaves
Binary Tree Level Order Traversal II
Find Bottom Left Tree Value
Find Largest Value in Each Tree Row
Second Minimal Node in a Binary Tree
Walls and Gates
Populating Next Right Pointers in Each Node
Binary Search
Search Insert Position
Search a 2D Matrix
Search in Rotated Sorted Array
Search in Rotated Sorted Array II
3 Sum
4 Sum
Guess Number Higher or Lower
First Bad Version
Single Element in a Sorted Array
Find Right Interval
Binary Search Trees
Unique Binary Search Trees
Unique Binary Search Trees II
Convert BST to Greater Tree
Minimum Absolute Difference in BST
Convert Sorted Array to BST
Trim a Binary Search Tree
Kth Smallest Element in a BST
Serialize and Deserialize BST
Binary Search Tree Iterator
Find Mode in Binary Search Tree
Inorder Successor in BST
Bit Manipulation
Hamming Distance
Total Hamming Distance
Number of 1 Bits
Single Number
Single Number III
Find the Difference
Bit Manipulation
Binary Watch
Convert a Number to Hexadecimal
Maximum Product of Word Lengths
Binary Number with Alternating Bits
Gray Code
Buy & Sell Stock
Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock I
Design
Peeking Iterator
Design Compressed String Iterator
Implement Queue using Stacks
Implement Stack using Queue
Range Sum Query - Immutable
Min Stack
Encode and Decode TinyURL
Random Pick Index
Map Sum pairs
Linked List Random Node
Shuffle an Array
Serialize and Deserialize BST
Flatten Nested List Iterator
Binary Search Tree Iterator
Implement Trie
Add and Search Word
DFS
Binary Tree ZigZag Level Order Traversal
Populating Next Right Pointers in Each Node
Number of Islands
Reconstruct Itinerary
Binary Tree Level Order Traversal II
Find Largest Value in Each Tree Row
Friend Circles
Max Area of Island
DP
Unique Paths
Counting Bits
Climbing Stairs
House Robber
House Robber II
House Robber III
Minimum Path Sum
Word Break
Maximum Subarray
Range Sum Query - Immutable
Arithmetic Slices
Delete Operations for Two Strings
Partition Equal Subset Sum
Target Sum
Longest Palindromic Subsequence
Combination Sum IV
Triangle
Divide & Conquer
Longest Substring with At Least K Repeating Characters
Unique Binary Search Trees
Unique Binary Search Trees II
Remove Duplicate Letters
Duplicates
Contains Duplicate I
Contains Duplicate II
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array II
Find All Duplicates in an Array
Single Element in a Sorted Array
Remove Duplicate Letters
Find the Duplicate Number
Graph
Reconstruct Itinerary
Hash Table
Repeated DNA Sequences
Find Duplicate File in System
[Distribute Candies] (Problems/575_distribute_candies_java.md)
Maximum Index Sum of Two Lists
Two Sum
Intersection of Two Arrays
Intersection of Two Arrays II
Longest Harmonious Subsequence
Word Pattern
Contains Duplicate II
K-diff Pairs in an Array
Sort Characters By Frequency
Top K Frequent Elements
4Sum II
Brick wall
Find Mode in Binary Search Tree
Degree of an Array
Maximum Size Subarray Sum Equals K
Alien Dictonary
Interval
Merge Intervals
Insert Interval
Maximum Length of Pair Chain
Minimum Time Difference
Minimum Number of Arrows to Burst Balloons
Task Scheduler
Non-overlapping Intervals
Find Right Interval
Meeting Room
Meeting Rooms II
Exclusive Time of Functions
Linked List
Linked List Cycle
Linked List Cycle II
Reverse Linked List
Reverse Linked List II
Partition List
Odd Even Linked List
Remove Duplicates from Sorted List
Remove Duplicates from Sorted List II
Delete Node in a LinkedList
Palindrome Linked List
Remove Linked List Elements
Intersection of Two Linked Lists
Merge Two Sorted Lists
Add Two Numbers II
Odd Even Linked List
Matrix
Number of Islands
Minimum Path Sum
Search a 2D Matrix
Reshape the Matrix
Island Perimeter
Range Addition II
Battleships in a Board
Queue Reconstruction by Height
Word Search
Dungeon Game
Diagonal Traverse
Brick wall
Kth Smallest Element in a Sorted Matrix
Game of Life
Max Area of Island
Image Smoother
Spiral Matrix II
Walls and Gates
Matrix Multiplication
Number
Ugly Number
Ugly Number II
Valid Triangle Number
Gas Station
Basic Calculator
Next Greater Element III
Number Complement
Fizz Buzz
Nim Game
Add Digits
Construct the Rectangle
Minimum Moves to Equal Array Elements
Excel Sheet Column Number
Excel Sheet Column Title
Number of Boomerang
Binary Watch
Base 7
Convert a Number to Hexadecimal
Happy Number
Power of Three
Power of Two
Power of Four
Valid Perfect Number
Arranging Coins
Factorial Trailing Zeroes
Palindrome Number
Perfect Number
Sum of Square Numbers
Nth Digit
Reverse Integer
Sqrt(x)
Count Primes
Super Pow
Pow(x, n)
Optimal Division
Elimination Game
Integer to Roman
Bulb Switcher
Integer Break
Counting Numbers with Unique Digits
Fraction Addition and Subtraction
Lexicographical Numbers
Integer Replacement
Palindrome
Valid Palindrome
Valid Palindrome II
Longest Palindromic Subsequence
Recursion
House Robber III
Reverse Linked List
Remove Duplicates from Sorted List
Remove Duplicates from Sorted List II
Reconstruct Itinerary
Maximum Depth of Binary Tree
Invert Binary Tree
Path Sum
Sum of Left Leaves
Same Tree
Diameter of Binary Tree
Convert Sorted Array to BST
Balanced Binary Tree
Minimum Depth of Binary Tree
Maximum Binary Tree
Scramble String
Print Binary Tree
Trim a Binary Search Tree
Different Ways to Add Parentheses
Predict the Winner
House Robber III
Employee Importance
Longest Univalue Path
Longest Palindromic Subsequence
Combination Sum IV
Serialize and Deserialize BST
Integer Replacement
Regex
Complex Number Multiplication
Sliding Window
Maximum Average Subarray I
Find All Anagrams in a String
Longest Repeating Character Replacement
Sort
Merge Intervals
Relative Ranks
Shortest Unsorted Continuous Subarray
Top K Frequent Elements
Lexicographical Numbers
Stack
Valid Parentheses
Min Stack
Add Two Numbers II
Baseball Game
Flatten Nested List Iterator
Decode String
Exclusive Time of Functions
String
Is Subsequence
Longest Substring with At Least K Repeating Characters
Longest Uncommon Subsequence I
Longest Uncommon Subsequence II
Design Compressed String Iterator
Find Duplicate File in System
Decode String
Word Break
Basic Calculator II
Add Strings
Multiply Strings
Keyboard Row
Reverse String I
Reverse String II
Reverse Words in a String I
Reverse Words in a String III
Reverse Vowels of a String
Detect Capital
Find the Difference
Ransom Note
First Unique Character in a String
Valid Anagram
Longest Palindrome
Student Attendance Record I
Repeated Substring Pattern
Number of Segments in a String
Count and Say
Isomorphic Strings
Find All Anagrams in a String
Valid Parentheses
Word Pattern
Add Binary
Length of Last Word
Longest Common Prefix
Implement strStr()
Valid Palindrome
Valid Palindrome II
Complex NUmber Multiplication
Largest Number
Implement Magic Dictionary
Scramble String
Sort Characters By Frequency
Different Ways to Add Parentheses
Replace Words
Palindromic Substrings
Remove Duplicate Letters
Fraction Addition and Subtraction
Compare Version Numbers
Maximum Product of Word Lengths
Delete Operations for Two Strings
Reconstruct Original Digits from English
Baseball Game
Repeated String Match
Longest Palindromic Subsequence
Longest Word in Dictionary through Deleting
Longest Repeating Character Replacement
License Key Formatting
Decode String
Exclusive Time of Functions
Read N Characters Given Read4
One Edit Distance
Tree
Lowest Common Ancestor of a Binary Tree
Binary Tree ZigZag Level Order Traversal
Construct String from Binary Tree
Merge Two Binary Trees
Unique Binary Search Trees
Add One Row to Tree
Average of Levels in Binary Tree
Maximum Depth of Binary Tree
Invert Binary Tree
Path Sum
Binary Tree Tilt
Sum of Left Leaves
Same Tree
Diameter of Binary Tree
Subtree of Another Tree
Binary Tree Level Order Traversal II
Lowest Common Ancestor of a Binary Search Tree
Symmetric Tree
Binary Tree Paths
Balanced Binary Tree
Minimum Depth of Binary Tree
Maximum Binary Tree
Find Bottom Left Tree Value
Find Largest Value in Each Tree Row
Most Frequent Subtree Sum
Print Binary Tree
Second Minimal Node in a Binary Tree
Binary Tree Inorder Traversal
Add One Row to Tree
Binary Tree Preorder Traversal
Binary Tree Right Side View
Binary Tree Vertical Order Traversal
Topological
Alien Dictonary
Course Schedule
Course Schedule II
Traversal
Binary Tree ZigZag Level Order Traversal
House Robber III
Construct String from Binary Tree
Merge Two Binary Trees
Average of Levels in Binary Tree
Path Sum
Binary Tree Tilt
Same Tree
Subtree of Another Tree
Binary Tree Paths
Most Frequent Subtree Sum
Binary Tree Inorder Traversal
Binary Tree Preorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal
Add One Row to Tree
Kth Smallest Element in a BST
Longest Univalue Path
Binary Search Tree Iterator
Binary Tree Right Side View
Inorder Successor in BST
Binary Tree Vertical Order Traversal
Populating Next Right Pointers in Each Node
Trie
Implement Trie
Add and Search Word
Two Pointers
Two Sum II
Linked List Cycle
Linked List Cycle II
Find the Duplicate Number
Minimum Size Sub-array Sum
Intersection of Two Arrays
Intersection of Two Arrays II
Beautiful Arrangement II
Minimum Moves to Equal Array Elements II
Is Subsequence
Odd Even Linked List
Longest Univalue Path
Repeated String Match
Powered by
GitBook
Array
Array
Click here to open my Array list in Leetcode
results matching "
"
No results matching "
"