Find The Duplicate Number
Floyd’s Algo - not implemented
Sort Colors
Used simple Insertion sort.
Remove Duplicates From Sorted Array
Set Matrix Zeroes
separate loops,
scan and edit inplace
Best Time To Buy And Sell Stock
keep track of previous days minimum buy.
Chocolate Distribution Problem
sliding window and simple loop adjustments
Two Sum
hashmap or dictionary
Best Time To Buy And Sell Stock II
greedy, basically selling and buying again when a dip in price is found
Subarray Sums Divisible By K
HashMap
prefix-sum
modulo-arithmetic
HashMap + modulo arithmetic. Tricky to visualize the subarrays on each step Find All Duplicates In An Array
HashMap if not space constraints Container With Most Water
3sum
check for duplicates on outer as well as inner loops Maximum Points You Can Obtain From Cards
sliding window, but for the remaining items. convert right index to +ve if -ve Print All Possible Combinations Of R Elements In A Given Array Of Size N
Insert Delete Getrandom O1 Duplicates Allowed
Largest Rectangle In Histogram
Print All The Duplicates In The Input String
Smallest Window In A String Containing All The Characters Of Another String 1587115621
Reverse Words In A String
Rabin Karp Algorithm For Pattern Searching
Integer To English Words
Minimum Window Substring
Boyer Moore Algorithm For Pattern Searching
Maximum Size Rectangle Binary Sub Matrix 1s
Given Matrix O X Replace O X Surrounded X
Minimum Moves To Equal Array Elements
Maximum Product Of Three Numbers
Excel Sheet Column Title
Permute Two Arrays Sum Every Pair Greater Equal K
Ceiling In A Sorted Array
Find A Pair With The Given Difference
Permute Two Arrays Sum Every Pair Greater Equal K
Check Reversing Sub Array Make Array Sorted
Make Array Elements Equal Minimum Cost
Allocate Minimum Number Of Pages0937
Minimum Number Swaps Required Sort Array
Search In Rotated Sorted Array
Count Of Smaller Numbers After Self
Middle Of The Linked List
Convert Binary Number In A Linked List To Integer
Remove Duplicates From Sorted List
Sort A Linked List Of 0s 1s Or 2s
Remove Linked List Elements
Multiply Two Numbers Represented Linked Lists
Intersection Of Two Linked Lists
Given Only A Pointer To A Node To Be Deleted In A Singly Linked List How Do You Delete It
Copy List With Random Pointer
Remove Nth Node From End Of List
Flatten A Multilevel Doubly Linked List
Remove Duplicates From Sorted List Ii
Linked List In Zig Zag Fashion
Segregate Even And Odd Elements In A Linked List
Rearrange A Given Linked List In Place
Reverse Nodes In K Group
Merge Sort For Linked List
Flattening A Linked List
Subtract Two Numbers Represented As Linked Lists
Implement Queue Using Stacks
Backspace String Compare
Implement Stack Using Queues
Implement Stack Queue Using Deque
Stack Set 4 Evaluation Postfix Expression
Implement Two Stacks In An Array
Minimum Cost Tree From Leaf Values
Distance Of Nearest Cell Having 1 1587115620
Sum Of Subarray Minimums
Evaluate Reverse Polish Notation
Remove All Adjacent Duplicates In String Ii
Flatten Nested List Iterator
Find The Maximum Of Minimums For Every Window Size In A Given Array
Lru Cache Implementation
Convert Sorted Array To Binary Search Tree
Maximum Depth Of Binary Tree
Lowest Common Ancestor Of A Binary Search Tree
Minimum Absolute Difference In Bst
Predecessor And Successor
Binary Tree Inorder Traversal
Check Whether Bst Contains Dead End
Binary Search Tree Iterator
Lowest Common Ancestor Of A Binary Tree
Unique Binary Search Trees Ii
All Nodes Distance K In Binary Tree
Validate Binary Search Tree
Binary Tree Right Side View
Binary Tree Level Order Traversal
Construct Binary Tree From Preorder And Postorder Traversal
Unique Binary Search Trees
Recover Binary Search Tree
Populating Next Right Pointers In Each Node
Flatten Binary Tree To Linked List
Maximum Width Of Binary Tree
Min Distance Between Two Given Nodes Of A Binary Tree
Kth Smallest Element In A Bst
Binary Tree Zigzag Level Order Traversal
Count Bst Nodes That Lie In A Given Range
Preorder To Postorder4423
Binary Tree Maximum Path Sum
Sum Of Distances In Tree
Vertical Order Traversal Of A Binary Tree
Print K Sum Paths Binary Tree
Serialize And Deserialize Binary Tree
Find Median Bst Time O1 Space
Largest Bst Binary Tree Set 2
Construct Bst From Given Preorder Traversa
Depth First Search Or Dfs For A Graph
Detect Cycle In An Undirected Graph
Number Of Operations To Make Network Connected
Find Eventual Safe States
Strongly Connected Components Kosarajus Algo
Time Needed To Inform All Employees
Graph Coloring Applications
https://www.geeksforgeeks.org/graph-coloring-applications/#:~:text=Graph%20coloring%20problem%20is%20toare%20colored%20using%20same%20color.
Most Stones Removed With Same Row Or Column
As Far From Land As Possible
Find The City With The Smallest Number Of Neighbors At A Threshold Distance
Find Whether It Is Possible To Finish All Tasks Or Not From Given Dependencies
Prims Minimum Spanning Tree Mst Greedy Algo 5
Implementing Floyd Warshall2042
Cheapest Flights Within K Stops
Detect Negative Cycle Graph Bellman Ford
Longest Increasing Path In A Matrix
Critical Connections In A Network
Water Jug Problem Using Bfs
Travelling Salesman Problem Set 1
Total Number Spanning Trees Graph
Minimize Cash Flow Among Given Set Friends Borrowed Money
Design Add And Search Words Data Structure
Word Break Problem Trie Solution
Kth Largest Element In An Array
Furthest Building You Can Reach
Kth Smallest Element In A Sorted Matrix
Find The Most Competitive Subsequence
Smallest Positive Missing Number 1587115621
Largest Subarray With 0 Sum
K Closest Points To Origin
Minimum Number Of Refueling Stops
Minimum Cost To Hire K Workers
Maximum Product Subarray
Maximum Length Of Repeated Subarray
Longest Increasing Subsequence
Longest Common Substring1452
Count Square Submatrices With All Ones
Mobile Numeric Keypad5456
Range Sum Query 2d Immutable
Optimal Binary Search Tree Dp 24
Best Time To Buy And Sell Stock Iv
Minimum Insertion Steps To Make A String Palindrome
Largest Area Rectangular Sub Matrix Equal Number 1s 0s
Minimum Cost To Merge Stones
Count Different Palindromic Subsequences
Longest Repeating Character Replacement
Maximum Number Of Visible Points
Minimum Cost For Acquiring All Coins With K Extra Coins Allowed With Every Coin
Restore The Array From Adjacent Pairs
Minimum Deletions To Make Character Frequencies Unique
Non Overlapping Intervals
Minimum Deletion Cost To Avoid Repeating Letters
Minimum Sum Two Numbers Formed Digits Array 2
M Coloring Problem 1587115620
Find Maximum Number Possible By Doing At Most K Swaps
Partition Set K Subsets Equal Sum
Find Paths From Corner Cell To Middle Cell In Maze
Solving Cryptarithmetic Puzzles Backtracking 8
Print Palindromic Partitions String
Range Sum Query Immutable
Count Of Smaller Numbers After Self