Dsa Sheet Archit Aggarwal
Dsa Sheet Archit Aggarwal
Bookmarks Bar
DSA Sheet
DSA Sheet
Getting Started
Java Programming Basics
Getting Started
C++ Basics
My Notes - C++
My Notes - STL
Basic Pointers in C++
Pointers in C++
STL C++
STL Basics
Templates in C+
+
Generic Programming in C++
Iterators in C++
Inbuilt Algorithms in C++
Comparator in C++
Pair in C++
Tuples in C++
Containers in C++
Strings in C++
String Tokenizer in C+
+ Hashing in C++
Custom Hash Function
Functors in C++
Priority Queue in C++
Custom Priority Queue
Sets in C++
Bitset in C++
Digit Traversals
Count Digits of Number
Reverse Integer
Double Reversal
Sum & Product of Digits
Self Dividing Numbers
Amstrong Number
Rotate Digits of Number
Rotate Digits of Number
Inverse of Number
Stones Remove
Game Divisor Game
Digital Root
Bulb Switcher
Tournament Matches
Count Odd In Range
Max Water Bottles
Pythagorean Triplets
Factorial Trailing 0s
Check Ugly Number
Nth Term of GP
Days Between Dates
Day of the Year
Day of the Week
Next Closest Time
Pattern Printing
Pattern Printing
Stars Pattern
Lower RIght Triangle
Upper Left Triangle
Lower Right Triangle
Upper Right Triangle
Diamond Pattern
Hollow Diamond
Diamond Border
Backward Slash
Forward Slash
Cross of Stars
Cross of Numbers
Table of Number
Pattern of Numbers - I
Pattern of Numbers - II
Pattern of Numbers - III
Fibonacci Pattern
Mirror Image Triangle
Arrow Pattern
Empty Hour
Glass Swastik
Pattern W
Pattern
Reverse Array
Left Rotate Array
Right Rotate
Array Reverse
String
Reverse String Range
Reverse Words - I
Reverse Words - II
Reverse Vowels
Palindromic String
Palindromic Integer
Palindrome After
Deletion
String to Integer
Integer to String
String to Integer
String to Integer
Valid Number
Excel Column No to
Title Excel Column Title
to No
Linear Traversal
Linear Search
Linear Search
Maximum &
Minimum Maximum
& Minimum Smallest
Range Second Largest
Valid Mountain Array
Is Array Sorted
Rotated Distribute
Candies Count Equal
Pairs Range Addition
Visiting All Points
Subarray or Substrings
Sum of Odd Subarrays
Celebrity Problem - I
Celebrity Problem - II
Non Decreasing Array
Target Modulo Sum Pair
Running Sum
Highest Altitude
Point Positive Step
Sum Leaders in Array
Equillibrium Point
Balanced Array
Product Array Puzzle
Max Closest Person
Sum of Even Nos Queries
Prefix Aligned Binary String
Shifting Letters
Polynomial Evaluation
Polynomial Evaluation
Prefix Sum Array
Range Sum Query 1D
Range Sum Query 2D
Range Sum Query
Difference Array
Range Update Queries - I
Range Update Queries - II
Matrix or 2D Array
Basic Matrix
Traversal
2D Array or Matrix Theory
Print Matrix Row Wise
Print Matix Column Wise
Wave or Snake Traversal
Reverse Wave Traversal
Searching in Matrix
Exit Point in Matrix
Convert 1D Array to 2D
Shift 2D Grid
Reshape Matrix
Two Matrices
Identical Matrices
Add Matrices
Multiply Matrices
Rotate Matrix
Transpose Matrix
Rotate 90D Clockwise
Rotate 90D Anticlockwise
Rotate 180D Clockwise
Rotate 180D Anticlockwize
Equal Matrix Rotations
Diagonal Traversal
Diagonal Traversal - BL to
TR Diagonal Traversal - Zig
Zag Diagonal Traversal - TL
to BR Matrix Diagonal Sum
Toeplitz Matrix
Check X Matrix
Upper Lower Triangle
Boundary Traversal
Spiral Matrix Traversal
Fill Matrix in Spiral
Order Reverse Spiral
Matrix Spiral Matrix -
Starting Pt Shell Rotate
Matrix
Shell Rotate Matrix
Big Integers as Arrays
Plus One to Array
Plus K to Array
Add Two Strings
Subtract Two
Arrays Subtract
Two Arrays
Compare Two
Strings Multiply Two
Strings Large
Factorial Multiply
Polynomials Sparse
Matrix Sparse
Matrix
Big Integers Java
Big Integers Java
Majority Element
Majority Element - I
Majority Element - II
Majority Element - III
Missing Number - I
Missing Number - II
First Missing Positive
Repeating Element - I
Repeating Element - II
Repeating Element - III
Max Repeating Element
Missing & Repeating
Number Theory
Number Theory
Euclid's Algorithm
GCD of 2 Numbers
Euclid's Algorithm
Euclid's Algorithm
Euclid's Algorithm
GCD of Array
GCD of Big Integer
GCD of Big Integer
Required Rooms
Deck of Cards
Simplified Fractions
Min Deletions Array
Divisible Cutting Squares
Largest Coprime Divisor
Largest Coprime Divisor
Extended Euclid
Extended Euclid Algorithm
Extended Euclid Algorithm
Extended Euclid Algorithm
Linear Diophantine Eqn
Linear Diophantine Eqn
Linear Diophantine Eqn
Prime Numbers
Modular Arithmetic
Modular Arithmetic
Modular Arithmeitc
Modular Factorial
Modular Exponentiation
Modular Exponentiation - I
Modular Exponentiation - II
Fermat's Little Theorem
Fermat's Little Theorem
Modular Division
Modular Muliplicative Inverse
Modular Muliplicative Inverse
Modular Muliplicative Inverse
Modular Binomial Coeff
Modular Permutation Coeff
Modular Permutation Coeff
Sum of All Subarrays
Sum of All Subsets
Sum of Subset Width
Recursion Basics
Recursion Theory
Backtracking Theory
Print Decreasing
Print Increasing
Print Increasing Decreasing
Factorial
Print ZigZag
Tower of
Hanoi
Exponentiation
Binary Exponentiation
Print Array Left to Right
Print Array Right to Left
Check Is Array Sorted
Largest Element in Array
First & Last Occurence
Find All Occurences
Subsets Problems
Subsets
Subarray vs Subset
Iterative Method
Get Subsets
Print Subsets
Unique Subsets
Subsets of Given Size
Letter Tile Possibilites
Square Matchsticks
Beautiful Arrangement
Print Stair
Paths Get Stair
Paths All Maze
Paths Rat in
Maze Rat in
Maze
Count Rat in Maze Paths
Rat in Maze with Jumps
Get Maze Path with Jumps
Print Maze Path with
Jumps Gold Mine Problem
P & C Problems
Combinations
Combinations
Combinations - 1
Combinations - 2
Factor Combinations
Permutations
Permutations
Permutations - 1
Permutations - 2
Permutations - 3
Distinct Permutations
Distinct Permutations - 1
Distinct Permutations - 2
Palindromic Permutations
K Words Combination
K Words - Combination - I
K Words - Combination - II
K Words - Combination -
III K Words - Combination
- IV
K Words Permutation
K Words - Permutation - I
K Words - Permutation - II
K Words - Permutation -
III K Words - Permutation
- IV
Keypad Problems
Keypad Combinations
Get Keypad Combinations
Print Keypad Combinations
Print Decode Ways
Print Decode Ways
Generalized Abbreviations
Abbreviations - Using R&B
Abbreviations - Using Bits
Keypad Sequence
Letter Case Permutations
N Queen Problem
N Queen - Combinations
N Queen - Permutations
N Queens - I
N Queens - II
N Queen - Backtracking
N Queen - Branch & Bound
N Queen - Bit Manipulation
N Knights
N Knights
Knight's Tour Problem
Sorting Algorithms
Partitioning Algorithm
Partition Around
Pivot Sort Binary
Array Sort Colors 012
Dual Pivot Partitioning
Three Way Partitioning
Move Zeroes To End
Segregate w/o Relative Order
Segregate with Relative Order
Segregate with Relative Order
Alternate w/o Relative Order
Alternate with Relative Order
Rearrange Array
Wiggle Sort -
1 Wiggle Sort
- 1 Wiggle
Sort - 2
Wave Sort - Lexical Order
Wave Sort - Min Max Form
Inverse Permutation - I
Inverse Permutation - II
Reorder Array with Indexes
Reorder Array with Indexes
Counting Sort
Counting Sort
Radix Sort
Bucket Sort
Sort Array of Dates
Minimum Time
Distance H Index
Unsorted Height
Checker
Relative Sort Array
Max Consecutive Gap
Frequency Sort
Frequency Sort String
Top K Frequent Elements
Top K Frequent Words
Top K Frequent in
Stream
Inversion Count
Inversion Count
Inversions - Merge Sort
Inversions - Policy Based DS
Policy Based DS
Min Adjacent Swaps to Sort
Global & Local Inversions
Reverse Pairs
Count of Smaller After
Self Count of Range Sum
Count Binary Substrings
Binary Search
Mountain Array
Peak in Bitonic Array
Search in Bitonic Array
Find Peak Element
Search in 2D Matrix
Search 2D Matrix - I
Search 2D Matrix - II
Count 0 in Binary Matrix
Max 1s Row in Binary Matrix
Peak Element in Matrix
Median in 2 Arrays
Median 2 Sorted Arrays - Same Size
Median 2 Sorted Arrays - Dff Size
Kth Element in 2 Sorted Arrays
Median in Row Wise Sorted Matrix
Book Allocation
Painter's Partition
Split Array Largest Sum
Capacity to Ship Packages
Min Days to Make Bouquets
Koko Eating Banana
Smallest Divisor Threshold
Min Time to Complete Trips
Min Speed to Arrive on
Time Aggressive Cows
Magnetic Force Balls
Max Candies to Children
Woodcutting Eko - SPOJ
Minimize Max Products Store
Minimize Farthest Gas Stations
Roti Prata - SPOJ
Linked List
Linked List
Design Cache
Stacks Theory
Design Stack Using Array
Design Stack Using List
Design 2 Stacks in Array
Design K Stacks in Array
Design Stack Using Heap
Queue Theory
Design Queue Using Array
Design Queue Using List
Design Circular Queue
Circular Queue Using Array
Circular Queue Using List
Deque Theory
Design Circular Deque
Deque Using Circular Array
Deque Using DLL
Stack & Queue using Deque
Reverse Stack
Reverse Queue
Sort Stack
Sort Queue
Interleave Queue
Parenthesis Matching
Redundant Braces
Balanced Parenthesis - I
Balanced Parenthesis - II
Remove Outermost Paranthesis
Longest Valid Parentheses
Min Additions for Balanced Braces - I
Min Additions for Balanced Braces - II
Min Removals for Balanced Braces - I
Min Removals for Balanced Braces - II
Min Reversals for Balanced Braces
Min Swaps for Balanced Braces
Score of Parenthesis
Reverse Substrings B/W Braces
Decode String
Number of Atoms
Maximum Nesting Depth
Expressions Evaluation
Infix Expressions
Infix Evaluation
Infix Evaluation
Infix Conversions
Infix To Prefix Conversion
Infix To Postfix Conversion
Basic Calculator - I
Basic Calculator - II
Basic Calculator - III
Postfix Expressions
Postfix Expression
Postfix Evaluation
Postix to Infix Conversion
Postfix to Prefix Conversion
Prefix Expressions
Prefix Expression
Prefix Evaluation
Prefix to Infix Conversion
Prefix to Postfix Conversion
Expression Tree
Exp Tree - Construction
Exp Tree - Evaluation
Expression Tree
Monotonic Stack
Hashing Technique
Hashing Theory
Separate Chaining
Open Addressing
Double Hashing
Rehashing
Hashing Technique
Design HashMap
Design HashSet
Common Elements
Uncommon Elements
Union of Unsorted Arrays
Common Elements in 2 of
3 Contains Duplicate - I
Contains Duplicate - II
Contains Duplicate - III
First Repeating Element
First Unique Element
Subarray Sum
Target Subarray
Sum
0 Sum Subarray
Largest 0 Sum
Subarray
Count 0 Sum Subarrays
K Sum Subarray
K Sum Subarray - Only Positives
K Sum Subarray - With
Negatives Count K Sum
Subarrays
Largest K Sum Subarray
Min Moves Reduce X to 0
Count K XOR Subarrays
Divisible Subarrays
Largest Divisible Subarray
Count Divisible Subarrays
K Multiple Subarray Sum
Count Bad Pairs - I
Count Bad Pairs - II
Count K Absolute Diff Pairs
Count Equal Divisible Pairs
Count Equal Distance Points
Binary Heap
Heap Theory
Priority Queue
Theory Design
Priority Queue Design
Priority Queue Build
Min Heap Build Min
Heap
Comparable & Comparator
Comparable & Comparator
Heap Sort
Heap Sort MCQ
Does Array Represent
Heap Is Binary Tree Heap
Convert Min to Max Heap
Convert BST to Min Heap
Merge Two Max Heaps
Priority Queue Using List
Priority Queue Using Heap
Basic Geometry
Geometric Algorithms
Rectangle Overlap
Largest Triangle
Perimeter Matrix Cells in
Order Largest Triangle
Area Construct Rectangle
Two Collinear Points
Non Collinear Points
Valid Square Points
Max Distance Points
Total Rectangle Area
Max Collinear Points
Best Meeting Point
Line Reflection
Intersecting Lines
Check Pt Inside
Triangle
3 Sum
3 Sum - Closest
3 Sum - Smaller
Target Sum Triplets
Count Valid Triplets
Valid Triangles
Good Triplets
Closest in 3 Arrays
Quadruplet Sum
4 Sum - I
4 Sum - Using 2 Pointer
4 Sum - Using Hashmap
4 Sum - II
Tuples - Equal Sum
Tuples - Equal Product
Special Quadruplets
Target Sum K Set
Greedy Algorithms
Greedy Algorithms
Greedy Algorithms
Meeting Rooms
Job Sequencing
Merge Intervals
Insert Interval
Interval Intersections
Max Overlap Intervals
Video Stitching
Max Meetings - I
Max Meetings - II
Max Meetings - III
Activity Selection
Max Train Stoppage
Disjoint Intervals
Min Balloon Bursts
Max Chain Length
Min Meeting Rooms
Min Train Platforms
Car Pooling
Teemo Attacking
Employee Free Time
My Calendar - I
My Calendar - II
My Calendar -
III
Huffman Coding
Weight Balanced
Tree Huffman
Encoding Huffman
Decoding Huffman
Coding Min Cost of
Ropes
Encode & Decode String
Array Permutation
Max Sum Value X
Index Coordinate
Compression Assign
Cookies Lemonade
Change
Next Permutation - I
Next Permutation - II
Smallest Permutation
Largest Permutation
Largest No From Array
Min Sum of 2 Numbers
Arithmetic Sequence
DI String Match
Max Absolute Difference - I
Max Absolute Difference - II
Reorganize String - I
Reorganize String - II
Distinct Barcodes
Task Scheduler
Max Profit Assigning Work
Shortest Job First Scheduling
Array Partitions
Partition Labels
Max Chunks to Sort - I
Max Chunks to Sort - II
Min Moves Unique Array
Array Partition Pairs
Largest Derangement
Circular Tour - I
Circular Tour - II
Candy Distribution
Kill Most Monsters
Advantage Shuffle
Minimize the Heights - I
Minimize the Heights - II
Custom Sorting
Trees
Tree Theory
Trees -
Foundation Trees
- Advanced
Depth First Search
Basics of DFS
Constructor - Binary Tree
Tree Properties
Size - Binary Tree
Max & Min - Binary Tree
Preorder Traversal - Binary Tree
Inorder Traversal - Binary Tree
Postorder Traversal - Binary Tree
Recursive DFS Traversals
Iterative DFS Traverals
Iterative DFS Traverals
Searching in Binary Tree
BFS vs DFS Traversals - I
BFS vs DFS Traversals - II
Preorder Predecessor
Preorder Successor
K Distance Nodes
Nodes K Level Down
Nodes At K Distance
Burning Tree
Compare Trees
Traversals Diagnol
Order
Diagonal Order - I
Diagonal Order - II
Diagonal Sum
Vertical Order
Vertical Order - I
Vertical Order - II
Vertical Order Sum
View of Tree
Left View of Binary Tree
Right View of Binary Tree
Top View of Binary Tree
Bottom View of Binary
Tree Boundary Traversal of
Tree
Morris Traversal
LCA Variations
Binary Lifting
Rerooting Technique
DP on Trees
Subordinates
Tree Matching
Tree Distances - I
Tree Distances -
II
House Robber - Tree
Largest Independent Set
Vertex Cover Tree
Longest ZigZag Path
Binary Tree Cameras
Distribute Coins
Min Time to Collect Apples
Min Cost Tree From Leaf
Inorder Traversal
Inorder Pred/Successor in BST
Inorder Successor in BST
Kth Smallest Element in
BST Kth Largest Element in
BST Greater Sum Tree from
BST Min Difference in BST
Mode in BST
Recover BST
Union of
BSTs
Range Problems
Construct BST
Construct BST From Inorder
Construct BST From Preorder
Construct BST From Postorder
Construct BST From Levelorder
Convert Sorted SLL to BST
Convert BST to Sorted SLL
Convert BST To Sorted DLL
Convert BST To Sorted CDLL
Convert Sorted DLL to BST
Convert Sorted DLL to BST
Serialize & Deserialize BST
Balance a BST
Depth of BST from Array
Validate BST
Validate BST
Largest BST
Subtree
Max Sum BST Subtree
Check Dead End in BST
Verify Preorder of BST
Identical BST
Identical BST - O(n^2)
Identical BST - O(n)
BST Iterator
BST Iterator - I
BST Iterator - II
Iterator & Iterable
Forward Iterator in BST
Backward Iterator in BST
Target Sum Pair in BST - I
Target Sum Pair in BST - II
Median of BST
Merge Two BSTs
Dynamic Programming
DP Theory
DP - Foundation
DP - Advanced
Fibonacci Sequence
Fibonacci Number
Tribonacci Number
Valid Binary Strings
Arrange Buildings
Decode Ways
A+B+C+ Subsets
Tiling - 2 X 1 Tiles
Tiling - M X 1 Tiles
Dominos & Trominos
Count Friend Pairing
Distinct Subsequences
Ugly Numbers
Super Ugly Numbers
Count Derangements
Assembly Line Scheduling
Assembly Line Scheduling
Weighted Job Scheduling -
I
Weighted Job Scheduling - II
Max Taxi Earnings
Min Flips Sort Binary
Min Swaps Increasing Sets
Climbing Stairs
Climb Stairs - I
Climb Stairs - II
Climb Stairs - III
Climb Stairs - III
Climb Stairs - IV
Jump Game - I
Jump Game - II
Jump Game - III
Jump Game - All
Paths Jump Game -
All Paths
Frog Jump - I
Frog Jump - II
Min Steps to 1
Min Taps to
Water 2 Keys
Keyboard 4 Keys
Keyboard
House Robber
House Robber - I
House Robber - II
House Robber - III
Paint House - I
Paint House - II
Paint Fence - I
Paint Fence - II
Knapsack Problem
Fractional Knapsack
0-1 Knapsack
0-1 Knapsack - Print
Ways 0-1 Knapsack -
Print Ways Unbounded
Knapsack Rod Cutting
Max Sum Min Cost for
Tickets
Min Cost to Fill Bag
Flip Array Signs
1s & 0s Binary String
1. One Transaction
2. Infinite Transactions
3. Transaction Fees
4. Cooldown
5. Two Transactions
6. K Transactions
DP on Grid
Min Path Sum in Maze
Min Path Sum - All Paths
Min Path Sum in Triangle
Minimum Falling Path Sum
Goldmine All Paths
Unique Paths - I
Unique Paths - II
Knight's Probability Chess
Keypad Problem - DP
Dungeon Game
Cherry Pickup - I
Cherry Pickup - II
Maximal Square
Square Submatrix All
1s Out of Boundary
Paths
Largest Bordered Square
Knight Dialer
Largest Plus Sign
Divide Cholocate Bar
Pascal Triangle
Pascal Triangle - I
Pascal Triangle - II
Binomial Coeff (nCr)
Permutation Coeff (nPr)
Water Overflow
LIS Problems
Longest Increasing Subset
Longest Increasing Subset
Print All LIS
Count All LIS
Longest Increasing
Subarray Max Sum
Increasing Subset Longest
Bitonic Subset Max Sum
Bitonic Subset Longest
Bitonic Subarray Building
Bridges
Building Bridges
Russian Doll Envelopes
Perfect Squares
Count AP Subarray
Count AP Subsets
Longest AP Subarray
Longest AP Subset
Longest Wiggle
Subset Highway
Billboards Box
Stacking - I
Box Stacking - II
Largest Divisible Subset
LCIS (LCS + LIS)
Longest String Chain
LCS Problems
Palindromic Subsets
Palindromic Substrings
Count Palindromic Substrings
Using Dynamic Programming
Using Expand Around Center
Print All Palindromic Substrings
Distinct Palindromic Substrings
Using Dynamic Programming
Using Manacher's Algorithm
Longest Palindromic Substring
Using Dynamic Programming
Using Expand Around Center
Manacher's Algorithm
Expression Matching
Wildcard Matching
Regular Expression Matching
Edit Distance
Min Cost for Identical Strings
Min Delete Operations
Min ASCII Delete Sum
Interleaving String
Distinct Transformations
Min Insertions and Deletions
Catalan Numbers
Kadane's Algorithm
Maximum Subarray Sum
Max Absolute Sum Subarray
Max Sum Circular Subarray
K Concatenation Max Sum
Maximum Product Subarray
Maximum Sum Submatrix
Max Sum Subarray >= K
Size Best Sightseeing Pair
Max Difference of 0s 1s
Max Sum 2 Non-Overlap Subarrays
Max Sum 3 Non-Overlap Subarrays
Max Sum 3 Non-Overlap Subarrays
Max Sum K Non-Overlap
Subarrays
Predict the
Winner Stone
Game
Optimal Game Strategy
Wine Selling Problem
Egg Drop - 2 Eggs
Egg Drop - K Eggs
Super Egg Drop
Stone Game - II
Stone Game - III
Stone Game - IV
Stone Game - V
Stone Game - VII
Stone Game - VIII
MCM Problems
Palindromic Partitioning
Palindrome Partitioning - I
Palindrome Partitioning - II
Palindrome Partitioning - III
Palindrome Partitioning - IV
Word Break
Check Word Break
Concatenated Words
Word Break -
Backtracking Word Break
- DP Minimum Word
Break Text Justification -
Greedy Text Justification -
DP
Bit Manipulation
Number System
Bit Manipulation
Theory Bit
Manipulation Basics
Bitmasking Tricks
Bitmasking Tricks
Binary Representation
1s Complement
2s Complement
Check Bits
Check Odd or Even
Set Bits
Unset or Clear Bits
Toggle Bits
Swap 2 Nos Using Bits
Power Set Using Bits
Power Set Using Bits
Hamming Weight
Bitset Problems
Gray Codes
Single Number
Single Number - I
Single Number - I
Single Number - II
Single Number - II
Single Number - III
Single Number - III
XOR Problems
Graphs
Graph Theory
Graphs - Foundation
Graphs - Advanced
Basic BFS/DFS
DFS
DFS - Multisolver
DFS - Iterative
DFS -
Applications BFS
BFS -
Applications Has
Path (IB) Print All
Paths
Time to Inform Employees
Min Swaps to Sort Array
Clone Graph
Hamiltonian Path
Hamiltonian Cycle
Hamitonian Cycle
Pacific Atlantic Water
Flow Surrounded Regions
Reorder Routes
Water Jug Problem
Smallest Multiple with 0 & 1
Connected Components
Number of Provinces
Make Graph Connected
Unreachable Pair Nodes
Minimize Malware Spread
Number of Islands
Number of Enclaves
Number of Distinct
Islands Island Perimeter
Island Area
Flood Fill
SCC - Kosaraju
Algo Kosaraju -
DFS Kosaraju - BFS
SCC - Tarjan Algo
Tarjan Algorithm
Cycle Detection
Cycle in Undirected Graph
Undirected - DFS
Undirected - BFS
Cycle in Directed Graph
Directed - DFS - 2 Arrays
Directed - DFS - Coloring
Directed - BFS
Graph - Valid Tree
Eventual Safe States
Longest Cycle Length
Print All Cycles
Topological Sort
Topological Sort
Topological Sort - DFS
Topological Sort - BFS
Course Schedule - I
Course Schedule - II
Parallel Courses
Alien Dictionary - I
Alien Dictionary - II
Mother Vertex
Assign Directions - DAG
Minimum Height Trees
Graph Coloring
Bipartite Graph
Bipartite Graph - BFS
Bipartite Graph - DFS
Possible Bipartition
Two Clique Problem
M Coloring Problem
Graph Coloring
Shortest Path
Unweighted Graph
Unweighted Graph
Unweighted Graph
Spread of Infection
Rotten Oranges
Snake and Ladder
Word Ladder - I
Word Ladder - II
Nearest 0 in Binary Matrix
Shortest Path in Binary Matrix
Min Steps by Knight
Shortest Bridge
Shortest Path Visiting All Nodes
Farthest Land Possible
Sliding Puzzle
K Similar Strings
0-1 BFS
Minimum Edges Reversals
Min Cost for Valid Path
Trapping Rain Water 3D
Jump Game - III
Jump Game - IV
Dijkstra's Algorithm
Network Delay Time
Dijkstra Algorithm
Min Cost Path in Grid
Path with Max Probability
Path with Min Effort
Count Shortest Paths
Bus Routes
Floyd Warshall
Algorithm Floyd
Warshall Algorithm City
with Min Neighbours
Shortest Paths Queries
Trie Theory
Trie or Prefix Tree
Trie Applications
Implement Trie/Prefix Tree - I
Implement Trie/Prefix Tree -
II
Competitive Programming
CP Handbook
CSES Problem Set
CP Algorithms
Pattern Matching
Search Occurence
First Occurence
Java Regular Expressions
Longest Prefix Suffix
Longest Palindrome Prefix
KMP Algorithm
KMP Algorithm
Repeated String Pattern - I
Repeated String Pattern - II
KMP & Z Algorithm
Shortest Palindrome
String Hashing
Rolling Hash Function
Rabin Karp Algorithm
Rabin Karp Algorithm
Rabin Karp Algorithm
Distinct Echo Substrings
Repeated DNA Sequences
Z Algorithm
Z Algorithm
Compressed Trie
Suffix Trees
Suffix Trees
Advanced Mathematics
O.E.I.S Series
Basic Combinatorics
Large Exponentiation
Big Power - Large
A Big Power -
Large A Big Power
- Large A Big
Power - Large B
Big Power - Large
B Super Power
Super Power
Power of Power
Power - Big Integers
Modular Factorial
Wilson's Theorem
Wilson's Theorem
Factorials Again
Product of Factorials
Fibonacci Numbers
Fibonacci Numbers
Linear Recurrence Relation
Facts About Fibonacci
Matrix Exponentiation
Matrix Exponentiation
Generalized Fibonacci
Modified Fibonacci
Cassini Identity
Check Fibonacci
GCD & Fibonacci
Nth Fibonaci Last
Digit Nth Digit of
Fibonacci Nth Non
Fibonacci Nth Even
Fibonacci Fibonacci
Sum Throwing Dice
Dice Roll Expectation
Recursive Sequence - I
Recursive Sequence - II
Probability Problems
Birthday Paradox
Probability Theory
Mathematical Expectation
Mathematical Expectation
Coupon Collector Problem
Dice Probability
Candy Lottery
Inversion Probability
Moving Robots
Game Theory
Advanced Searching
Jump Search
Step Array Search
Exponential Search
Exponential Search
Unbounded Binary Search
Searching in Infinite Sorted
Interpolation Search
Interpolation Search
Ternary Search
Ternary Search
Ternary Search
XOR List
XOR List
XOR LL
XOR LL - Code
XOR List - I
XOR List - II
Skip List
Introduction
1. Move to Front Method
2. Count Method
3. Tranpose Method
Self Organizing
List
Advanced Trees
AVL Tree
B & B+ Tree
B & B+ Tree
B Tree
Theory
B Tree Insertion
B Tree Deletion
B+ Tree Theory
B+ Tree
Insertion
B+ Tree Deletion
M Way Tree
2-3 Trees
2-3 Trees
2-3-4 Trees
2-3-4 Trees
M Way Tree
M Way Tree - I
M Way Tree -
II
Splay Trees
Splay Tree Theory
Splay Tree Theory
Splay Tree - Searching
Splay Tree - Insertion
Splay Tree - Insertion
Splay Tree - Deletion
Splay Tree - Deletion I
Splay Tree - Deletion
II
Range Query
Advanced Geometry
Computational Geometry
Line Sweep Technique
Convex Polygon
Convex Hull
Erect the Fence
Jarvis Algorithm
Graham Scan Algorithm
Graham Scan Algorithm
DP With Bitmasking
Subsets Using Bitmasking
DP with Bitmasking
DP with Bitmasking
DP with Bitmasking
Travelling Salesman Problem
TSP - Backtracking
TSP - Backtracking
TSP - Dynamic Programming - I
TSP - Dynamic Programming - II
TSP - Dynamic Programming
Smallest Sufficient Team
Smallest Sufficient Team
Ways to wear Diff Hats
Max Students in Exam
Shortest Superstring
Sum Over Subset (SOS)