Leetcode Top 150 Problems - Link
- QuickSort implementation in java
- HeapSort implementation in java
- MergeSort implementation in java
- Selection Sort
- Bubble Sort
- Insertion Sort
- Sort an array of 0s, 1s and 2s | Dutch National Flag problem
- Find first and last positions of an element in a sorted array
- Sort an array according to count of set bits
- Smallest factorial number
- Rearrange numbers with constant extra space
- Merge Sorted Array
- Search in Rotated Sorted Array
- Boyer-Moore Majority Voting Algorithm/ Majority Element
- Count triplets with sum smaller than X
- Minimum Swaps to Sort+
- Print all subarrays with 0 sum
- Sqrt(x)
- Nth Root of a Number using Binary Search
- Peak Element in array
- Search single element in a sorted array
- Max and Min with minimum number of comparison
- Peak Element
- Find Union and Intersection of two arrays
- CommonElements in Three Sorted Arrays
- Alternate positive and negative numbers
- Three way partitioning
- Find Pivot Index
- Max Consecutive Ones II
- Next Permutation
- Kth smallest element
- Rotate Array
- Maximum Subarray or Kadane's Algorithm
- Minimize the Heights
- Minimum number of jumps
- Count Inversions
- Best time to buy and Sell stock
- Count pairs with given sum
- Factorials of large numbers
- Maximum Product Subarray
- House Robber
- Product of Array Except Self
- Longest consecutive subsequence
- Triplet Sum in Array
- Trapping Rain Water
- Median of 2 sorted arrays of equal size
- Median of 2 sorted arrays of different size
- Not a subset sum
- Longest K unique characters substring
- Isomorphic Strings
- Shuffle String
- Look and Say Pattern
- Remove all consecutive duplicates from the string
- Count Binary Substrings
- Letter Combinations of a Phone Number
- Longest Repeating Subsequence
- Word Search
- Roman Number to Integer
- Print Anagrams Together
- Isomorphic Strings
- Remove outermost Paranthesis
- Valid Substring
- Check if the given string is shuffled substring of another string
- Print all subsequences of a string
- Permutations of a given string
- Print all substrings
- Find the string in grid
- Next Permutation
- Permutations
- Number of Matching Subsequences
- KMP Algorithm/Longest Prefix Suffix
- Word Break
- Count Reversal
- Longest Common Subsequence
- Smallest distinct window
- Transform One String to Another using Minimum Number of Given Operation
- Minimum characters to be added at front to make string palindrome
- Recursively remove all adjacent duplicates
- Spirally traversing a matrix
- Search a 2D Matrix
- Row with max 1s
- Sort the given 2D Matrix
- Diagonal Traverse
- Implement Circular Queue
- BFS - Number of Islands
- Valid Parentheses.
- Convert Infix to Postfix
- Expression contains redundant bracket or not
- Daily Temperatures
- Implement Queue using Stacks
- Keys and Rooms
- π₯ BFS - Open the Lock
- Next Greater Element
- The Celebrity Problem
- Design a stack with operations on middle element
- Get minimum element from stack in O(1) time
- π₯ Validate Stack Sequences
- π₯ Valid Substring
- Inorder Traversal (Iterative)
- π₯ Decode String
- Implement Stack using Queues
- π₯ 01 Matrix
- ZigZag Tree Traversal
- Preorder, Inorder, and Postorder Traversal
- Binary Tree Level Order Traversal
- Binary Tree Maximum Path Sum
- [Boundary Traversal of binary tree]
- Top View of Binary Tree
- Bottom View of Binary Tree
- Binary Tree Right Side View
- Symmetric Tree
- Check for BST
- Search in a Binary Search Tree
- Floor Binary Search Tree
- Ceil Binary Search Tree
- Insert a given Node in Binary Search Tree
- Predecessor and Successor
- Delete Node in a BST
- Kth Smallest Element in a BST
- Validate Binary Search Tree
- Permutations
- Permutations II
- Subsets
- Subsets II
- Combination Sum
- Combination Sum II
- Palindrome Partitioning