Data Structures and Algorithms
- Sort an Array using Recursion
- Sort a Stack using Recursion
- Delete Middle Element of Stack
- Reverse a Stack using Recursion
- Kth Symbol in Grammar
- Print Powerset
- Print Unique Subset
- Permutation with Spaces
- Letter Case Permutation
- Balanced Parentheses
- Josephus Problem
- Nearest Greater to Left
- Nearest Greater to Right
- Nearest Smaller to Left
- Nearest Smaller to Right
- Stock Span Problem
- Maximum Area of Histogram
- Maximum Area of Rectangle in Binary Matrix
- Rain Water Trapping
- Minimum Element in Stack
- Kth Smallest Element in Array
- K Largest Elements in Array
- Sort a Nearly Sorted (or K Sorted) Array
- K Closest Numbers
- Top K Frequent Numbers
- Frequency Sort
- K Closest Points To Origin
- Connect Ropes to Minimize Cost
- Sum of Elements Between
- Binary Search on Reverse Sorted Array
- Order not known Search
- First and Last Occurence
- Count of Element in Sorted Array
- Number of times Sorted Array Rotated
- Find Element in Rotated Sorted Array
- Searching in Nearly Sorted Array
- Floor of Element in Sorted Array
- Ceil of Element in Sorted Array
- Next Alphabetical Element
- Position of Element in Infinite Sorted Array
- Index of First 1 in Binary Sorted Infinite Array
- Minimum Difference Element in Sorted Array
- Peak Element
- Maximum Element in Bitonic Array
- Search Element in Bitonic Array
- Search in Row wise and Column wise Sorted Array
- Allocate Minimum Number Of Pages
- 0/1 Knapsack Problem
- Unbounded Knapsack Problem
- Longest Common Subequence
- Longest Common Substring
- Print Longest Common Subsequence
- Shortest Common Supersequence
- Print Shortest Common Supersequence
- Longest Palindromic Subequence
- Longest Repeating Subsequence
- Minimum Number of Insertion and Deletion to convert String A to String B
- Minimum Number of Insertion to make Palindrome
- Matrix Chain Multiplication