You are on page 1of 15

Question

PreOrder Trvaersal (N-ary Tree)


InOrder Traversal (N-ary Tree)
PostOrder Traversal (N-ary Tree)
Minimum Distance in BST
Invert Binary Tree
Convert Sorted Array to BST
Minimum Cost from Leaf Values
Binary Tree Maximum Path Sum
Serialize and Deserialize Binary Tree
Binary Tree Right Side View
Lowest Common Ancestor of a Binary Tree
Diameter of Binary Tree
Vertical Order Traversal of a Binary Tree
Range Sum of BST
Find Leaves of Binary Tree
All Nodes Distance K in Binary Tree
Find All The Lonely Nodes
Merge Binary Trees
Search in a Binary Search Tree
Increasing Order Search Tree
Sum of Root To Leaf Binary Numbers
Leaf-Similar Trees
Same Tree
Sum of Left Leaves
Closest Binary Search Tree Value
Path Sum III
Path Sum II
Path Sum
Inorder Successor in BST
Inorder Successor in BST II
Sum of Distances in Tree
Kth Smallest Element in a BST
Sum Root to Leaf Numbers
Tree Diameter
Distribute Coins in Binary Tree
Delete Node in a BST
Maximum Difference Between Node and Ancestor
House Robber III
Closest Binary Search Tree Value
Boundary of Binary Tree
Find Largest Value in Each Tree Row
Binary Tree Coloring Game
Flatten Binary Tree to Linked List
Convert Binary Search Tree to Sorted Doubly Linked List
Delete Nodes And Return Forest
Symmetric Tree
Binary Search Tree Iterator
Clone Binary Tree With Random Pointer
Find a Corresponding Node of a Binary Tree in a Clone of That Tree
Clone N-ary Tree
Pseudo-Palindromic Paths in a Binary Tree
Construct Binary Tree from Preorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Search Tree from Preorder Traversal
Construct String from Binary Tree
Populating Pointer in each node
Populating Pointer in each node II
Trees

Link Solved Revision

done
done
done

done

done
Question Link

Add Two Numbers


Remove Nth Node From End of List
Merge Two Sorted Lists
Merge k Sorted Lists
Swap Nodes in Pairs
Reverse Nodes in k-Group
Rotate List
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List
Partition List
Reverse Linked List II
Convert Sorted List to Binary Search Tree
Linked List Cycle
Linked List Cycle II
Reorder List
Reverse Linked List
Remove Linked List Elements
Intersection of Two Linked Lists
Palindrome Linked List
Delete Node in a Linked List
Odd Even Linked List
Plus One Linked List
Design Phone Directory
Add Two Numbers II
Middle of the Linked List
Convert Binary Number in a Linked List to Integer
Delete N Nodes After M Nodes of a Linked List
Insert into a Sorted Circular Linked List
Design Linked List
Convert Binary Search Tree to Sorted Doubly Linked List
Linked List

Solved Revision
Question

Longest Palindromic Substring


Maximum Subarray
Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock II
Word Break
Word Break II
Maximal Rectangle
Regular Expression Matching
Coin Change
Decode Ways
Maximal Square
Concatenated Words
Minimum Path Sum
Frog Jump
Maximum Product Subarray
Longest Increasing Subsequence
Climbing Stairs
Longest String Chain
Filling Bookcase Shelves
Longest Valid Parentheses
Interleaving String
Burst Balloons
Edit Distance
Palindromic Substring
Continuous Subarray Sum
Split Array Largest Sum
Partition to K Equal Sum Subsets
Minimum Number of Taps to Open to Water a Garden
House Robber
Maximum Profit in Job Scheduling
Minimum Window Subsequence
Super Egg Drop
Palindrome Partitioning II
Target Sum
Paint House
Wildcard Matching
Android Unlock Patterns
Longest Common Subsequence
Partition Equal Subset Sum
Minimum Cost For Tickets
Longest Happy String
Distinct Subsequences
Distinct Subsequences II
Paint House III
Best Time to Buy and Sell Stock III
Longest Palindromic Subsequence
K-Concatenation Maximum Sum
Longest Arithmetic Sequence
Greatest Sum Divisible by Three
Palindrome Removal
Minimize Rounding Error to Meet Target
Valid Palindrome III
Bomb Enemy
Longest Turbulent Subarray
House Robber II
Range Sum Query - Immutable
Stone Game III
Encode String with Shortest Length
Maximum Vacation Days
Palindrome Partitioning III
Sentence Screen Fitting
Paint House II
K Inverse Pairs Array
Wiggle Subsequence
Best Time to Buy and Sell Stock with Transaction Fee
Best Time to Buy and Sell Stock IV
Minimum Cost to Merge Stones
Maximum Students Taking Exam
Parallel Courses
Predict the Winner
Knapsack DP-10
Maximum Product Cutting | DP-36
Box Stacking Problem | DP-22
Cutting a Rod | DP-13
Shortest Common Supersequence
Dice Throw | DP-30
Matrix Chain Multiplication | DP-8
Boolean Parenthesization Problem | DP-37
Filling Bookcase Shelves
Dynamic Programming

Link Solved

https://leetcode.com/problems/longest-palindromic-substring/
https://leetcode.com/problems/maximum-subarray/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
https://leetcode.com/problems/word-break/
https://leetcode.com/problems/word-break-ii/

https://leetcode.com/problems/coin-change/
https://leetcode.com/problems/decode-ways/

https://leetcode.com/problems/minimum-path-sum/
https://leetcode.com/problems/frog-jump/
https://leetcode.com/problems/maximum-product-subarray/
https://leetcode.com/problems/longest-increasing-subsequence/
https://leetcode.com/problems/climbing-stairs/

https://leetcode.com/problems/edit-distance/
https://leetcode.com/problems/palindromic-substrings/
https://leetcode.com/problems/maximum-subarray/

https://leetcode.com/problems/partition-to-k-equal-sum-subsets/

https://leetcode.com/problems/house-robber/

https://leetcode.com/problems/palindrome-partitioning-ii/
https://leetcode.com/problems/target-sum/
https://leetcode.com/problems/partition-equal-subset-sum/
https://leetcode.com/problems/minimum-cost-for-tickets/

https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
https://leetcode.com/problems/longest-palindromic-subsequence/

https://leetcode.com/problems/longest-arithmetic-sequence/

https://leetcode.com/problems/house-robber-ii/

https://leetcode.com/problems/predict-the-winner/
Revision
Questions

Trapping Rain Water


Valid Parentheses
Minimum Remove to Make Valid Parentheses
Min Stack
Basic Calculator
Basic Calculator III
Basic Calculator IV
Implement Queue using Stacks
Backspace String Compare
Binary Tree Zigzag Level Order Traversal
Implement Queue using Stacks
Implement Stacks using Queue
Next Greater Element I
Next Greater Element II
Next Greater Node In Linked List
Minimum Add to Make Parentheses Valid
Largest Rectangle in Histogram
Flatten Nested List Iterator
Daily Temperatures
Asteroid Collision
Rotten Oranges
First non-repeating character in a stream
Circular tour
Reverse Stack without another stack

Questions

Merge k Sorted Lists


K Closest Points to Origin
Top K Frequent Words
Meeting Rooms II
Kth Largest Element in an Array
Find Median from Data Stream
Sliding Window Maximum
Employee Free Time
Reorganize String
The Skyline Problem
Kth Smallest Element in a Sorted Matrix
Top K Frequent Elements
Trapping Rain Water II
Find K Pairs with Smallest Sums
Kth Largest Element in a Stream
Heap Sort
Binary Heap Operations
Kth largest element in a stream
Find median in a stream
Stacks & Queues

Links Solved Revision

Heaps

Links Solved Revision


Classical Problems

Questions Links

Shop in Candy Store


Geek collects the balls
Minimize the heights
Page Faults in LRU
Maximize Toys
Coin Piles
Activity Selection
N meetings in one room
Largest number possible
Minimize the sum of product

BackTracking

Questions Links

N-Queen Problem
Solve the Sudoku
Rat in a Maze Problem - I
Word Boggle
Generate IP Addresses

Divide and Conquer :

Find the element that appears once in sorted array


Search in a Rotated Array
Binary Search
Sum of Middle Elements of two sorted arrays
Quick Sort
Merge Sort
K-th element of two sorted Arrays
Solved Revision

Solved Revision

You might also like