1c19bc150
1c19bc150
Arrays
String
Sorting
Searching
Matrix
● Spiral Traversal
● Rotate Matrix
● Search in a sorted matrix
● Search in a row-wise sorted
● Search in a row-wise and column-wise sorted
● Set Matrix Zeroes
Hashing
Prefix Sum
● Equilibrium Point
● Longest Subarray with Given Sum
● Longest Subarray with Equal No of 0s and 1s
● Product of Array except Self
● Find Starting Petrol Pump for Circular Tour
Linked List
CONTENTS
● Reverse a Linked List
● Rotate a Linked List
● Merge Two Sorted Lists
● Reverse a linked list in groups
● Sum two Linked Lists
● Clone a Linked List
● Detect Cycle
● First Node of the Cycle
● Remove Cycle
● LRU Cache
Backtracking
● Permutations of a String
● N Queens
● Solve the Sudoku
Tree
Heap
● K Largest Elements
● K closest point to origin
● Merge K Sorted Lists
● Median of a Stream
Stack
● Valid Parentheses
● Longest Valid Parentheses
● Next Greater Element
● Stock Span
● Largest Area in a Histogram
● Maximum and Minimum of every window size
● Min Stack
● Evaluate Reverse Polish Notation
● Decode the String
Dynamic Programming
CONTENTS
● Longest Increasing Subsequence
● Longest String Chain – Chain of words in an Array
● Longest Common Subsequence
● Longest Palindromic Subsequence
● Longest Palindromic Substring
● Count Palindromic Substring
● Edit Distance
● Stair Climbing
● Weighted Stair Climbing
● 0-1 knapsack
● Coin Change - Count Ways
● Count Change - Minimum Coins
● Minimum Jumps to Reach End
● Subset Sum Problem
● Partition Equal Subset Sum
● Stock Buy and Sell (Limit of K)
● Stock Buy and Sell (Limit of 2)
● House Robbing
● House Robbing (Circular)
● Count Possible Decodings of a Digit Sequence
● Matrix Chain Multiplication
● Boolean Parenthesization
● Word Break
Greedy
● Minimum Platforms
● Weighted Job Scheduling
● Job Sequencing
● Maximize Partitions with Unique Characters
CONTENTS
Graph
● DFS
● BFS
● Minimum time to Rot Oranges
● Cycle in an Undirected Graph
● Islands in a Graph
● Topological Sorting
● Cycle in a Directed Graph
● Redundant Connections - Bridges in a Graph
● Articulation Points
● Minimum Cost to connect all points
● Dijkstra's Algorithm
● Flood Fill
● Clone a Graph
● Alien Dictionary
● Distance from Source - Negative Weight Cycle
● Find the City With the Smallest Number of Neighbors at a
Threshold Distance
● Email Account Merging
Tries
● Implement Trie
● Word Search
● Maximum XOR of Two Numbers in an Array
Bit Manipulation
CONTENTS
● Find the only repetitive element between 1 to N-1
● Find the Missing Number
● Unique Number 1
● Unique Number 2
● Unique Number 3