Summary
- Introduction
- C++
- Sorting
- Math
- Array
- Rotations
- Arrangement and Rearrangement
- Searching and Sorting
- 1. Majority Element
- 2. Remove Element In Place
- 3. Two Sum
- 4. Remove Duplicates from Sorted Array
- 5. Remove Duplicates from Sorted Array II
- 6. Toeplitz Matrix (Check diagonal)
- 7. *Merge Sorted Array
- 8. Merge Overlapping Intervals
- 9. Max Area of Island
- 10. Largest Number At Least Twice of Others
- 11. Find All Numbers Disappeared in an Array
- 12. Find All Duplicates in an Array
- 13. FInd Pivot Index
- 14. *Degree of Array
- 15. *Top K Frequent Elements
- 16. Insert Interval
- 17. Wave Array
- 18. *Max Distance
- 19. *Majority Element II
- 20. Single Number
- 21. Number of Islands
- Order Statistics
- 1. Best Time to Buy and Sell Stock
- 2. Best Time to Buy and Sell Stock II
- 3. Best Time to Buy and Sell Stock III
- 4. Longest Continuous Increasing Subsequence
- 5. Missing Number
- 6. *Non-Decreasing Array
- 7. Third Maximum Number
- 8. *Maximum Subarray Sum
- 9. Max Non Negative SubArray
- 10. Plus One
- 11. Valid Sudoku
- 12. Kth Largest Element in an Array
- String
- Pattern Search
- Anagram
- Character Counting Based Problems
- Subsequence
- Misc
- Linked List
- Deletion
- 1. Linked List Insertion
- 4. Find Length
- 5. *Swap nodes in a linked list
- 6. Linked List Cycle
- 7. Reverse List
- 8. Remove duplicates from sorted linked list
- 9. *Intersection of Two Linked Lists
- 10. *Merge Sorted List
- 11. Add Two Numbers
- 12. Add Two Numbers II
- 13. Swap Nodes in Pairs
- 14. *Merge k Sorted Lists
- Palindrome
- Stack
- Binary Search
- 1. Square Root
- 2. Guess Number Higher or Lower
- 3. Guess Number Higher or Lower II
- 4. *Search in Rotated Sorted Array
- 5. *Search in Rotated Sorted Array II
- 6. First Bad Version
- 7. Find Peak Element
- 8. *Find Minimum in Rotated Sorted Array
- 9. *Find Minimum in Rotated Sorted Array II
- 10. *Search for a Range
- Find K Closest Elements
- Binary Tree
- Traversal
- 1. Preorder Traversal
- 2. Inorder Traversal
- 3. Postorder Traversal
- 4. *Level Order Traversal
- 5. Level Order Traversal II
- 6. Binary Tree Path
- 7. Merge Two Binary Trees
- 8. Minimum Depth of Binary Tree
- 9. Maximum Depth of Binary Tree
- 10. Average of Levels in Binary Tree
- 11. Construct String from Binary Tree
- 12. Sum of Left Leaves
- Binary Tree Tilt
- Construction & Conversion
- Lowest Common Ancestor
- Misc
- Traversal
- Binary Search Tree
- Basic Operations
- Construction and Conversion
- Convert Sorted Array to Binary Search Tree
- Check and Smallest/Largest Element
- 1. K'th Smallest Element in BST
- 2. K’th Largest Element in BST
- Check if given sorted sub-sequence exists in binary search tree
- Check whether BST contains Dead End or not
- Check if an array represents Inorder of Binary Search tree or not
- Check if two BSTs contain same set of elements
- Largest number in BST which is less than or equal to N
- Red Black Tree and Threaded Binary Tree
- Misc
- Bit Manipulation
- Graph
- Heap
- Dynamic Programming
- Backtracking
- N-ary Tree
- Trie
- Design
- Hash Tables