2 captures
22 Aug 2025 - 07 Dec 2025
Jul
AUG
Sep
22
2024
2025
2026
success
fail
About this capture
TIMESTAMPS
The Wayback Machine - https://web.archive.org/web/20250822141539/https://www.geeksforgeeks.org/user/madhavmaheshwarimm20/
Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
madhavmaheshwarimm20
Current POTD Streak
STREAK
81
/1481
days
Longest streak/Global longest streak
Institution
ABES Engineering College Ghaziabad
51 Rank
Institute Rank
Language Used
Java, C++, Python
Coding Score
1670
Problem Solved
534
Contest Rating
__
Campus Mantri
campun7as
705 points
Contributor
705 points
Contributor
1 Point
Proficient
Proficient
100 Point
Scholar
Scholar
1k Point
Master
Master
10k Point
Ace
Ace
50k Point
Find Your Place Among the Best
Explore Our Badge Program and Start Writing.
Start writing
How Badges Work
133 submissions in current year
Current
2024
2023
2022
2021
2020
2019
January
February
March
April
May
June
July
August
SCHOOL (0)
BASIC (30)
EASY (171)
MEDIUM (281)
HARD (52)
Sorting Elements of an Array by Frequency
Rearrange characters
Reverse alternate nodes in Link List
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Add 1 to a Linked List Number
Detect Loop in linked list
Bottom View of Binary Tree
Delete without head pointer
Intersection in Y Shaped Lists
Diameter of a Binary Tree
Heap Sort
Merge two sorted linked lists
Sum Tree
Connect Nodes of Levels
Flattening a Linked List
Tree Boundary Traversal
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Merge K sorted linked lists
Find the number of islands
Max sum in the configuration
Get Min from Stack
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Palindrome Linked List
Strongly Connected
Print matrix in diagonal pattern
Rat in a Maze Problem - I
Bipartite Graph
BST with Dead End
Count distinct elements in every window
Merge k Sorted Arrays
Bridge edge in a graph
Sort a stack
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
Level order traversal
Peak element
Delete nodes greater than k
Merge Sort for Linked List
Union of Two Linked Lists
Ancestors in Binary Tree
Pair Sum in BST
Root to Leaf Paths
Linked List that is Sorted Alternatingly
K Sum Paths
Leftmost and rightmost nodes of binary tree
Count the nodes at distance K from leaf
Isomorphic Trees
Maximum path sum from any node
Predecessor and Successor
Children Sum in a Binary Tree
Normal BST to Balanced BST
Sum of nodes on the longest path
Check if two Nodes are Cousins
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Mother Vertex
Ceil in BST
Smallest Positive Missing
Power Of Numbers
Wave Array
Possible Words From Phone Digits
Maximum Index
Stock buy and sell
Kadane's Algorithm
Majority Element
Binary Array Sorting
Count Inversions
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Number of pairs
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Subarray with 0 sum
Longest Consecutive Subsequence
Stock span problem
Next Greater Element
Nearly sorted
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Combination Sum
M-Coloring Problem
Minimum Jumps
Stickler Thief
Egg Dropping Puzzle
Optimal Strategy For A Game
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Sort according to an Array
Allocate Minimum Pages
Zero Sum Subarrays
Kth Smallest
Nth Catalan Number
Rotten Oranges
Most frequent word in an array of strings
Container With Most Water
Print Anagrams Together
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Generate Parentheses
Word Search
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Maximum Index
Flip Bits
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count Occurences of Anagrams
Pythagorean Triplet
Pair Sum Closest to 0
Search in Rotated Sorted Array
Count pairs Sum in matrices
Sum of bit differences
Max Score from Subarray Mins
Form the Largest Number
Maximum Product Subarray
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Column name from a given column number
Substrings with K Distinct
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Cutting Binary String
Max Sum without Adjacents
Factorials of large numbers
Find the N-th character
Length of the longest substring
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
Triplets with Smaller Sum
Rod Cutting
K closest elements
Number of pairs
Minimum swaps and K together
Minimize the Heights II
First and Last Occurrences
Minimum Deletions
Nine Divisors
Minimum Swaps for Bracket Balancing
Friends Pairing Problem
CamelCase Pattern Matching
Unique Number II
Bleak Numbers
Largest prime factor
Maximize dot product
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Sieve of Eratosthenes
Coin Change (Minimum Coins)
Perfect Sum Problem
Trail of ones
K-Palindrome
Knapsack with Duplicate Items
nCr
Partition Equal Subset Sum
Longest Bitonic subsequence
Array Pair Sum Divisibility Problem
Subset Sums
Number of paths
LCM Triplet
Find nth root of m
Game with String
Fraction to Repeating Decimal
Next Permutation
Smaller on Left
How Many X's?
Power of k in factorial of n
Transitive closure of a Graph
Replace O's with X's
Two odd Occuring
Find the string in grid
Floyd Warshall
Largest subsquare surrounded by X
Shortest Source to Destination Path
Recursively Remove Adjacent Duplicates
Help Classmates
Jump Game
Subset Sum Problem
Longest Palindromic Substring
Bellman-Ford
Capacity To Ship Packages Within D Days
Remove K Digits
Number of Provinces
BST to greater sum tree
Cousins of a given node
Division without using multiplication, division and mod operator
Subsets
IPL 2021 - Match Day 2
Clone an Undirected Graph
Overlapping Intervals
Reverse a Stack
Maximum Meetings in One Room
Graph is Tree or Not
Next element with greater frequency
Number of Distinct Islands
Minimum Multiplications to reach End
Number Of Enclaves
Number Of Islands
Shortest Path in Undirected Graph
Shortest path in Directed Acyclic Graph
Sum of Beauty of All Substrings
Koko Eating Bananas
Search in Rotated Array 2
Count Good numbers
Longest Repeating Character Replacement
Binary subarray with sum
Sum of subarray minimum
Frog Jump
Asteroid Collision
Geek's Training
Sum of subarray ranges
Maximum point you can obtain from cards
Subarrays with K Distinct Integers
Stock Buy and Sell – with Cooldown
Aggressive Cows
Smallest Divisor
Subset II
Check if there exists a subsequence with sum K
Number of greater elements to the right
Combination Sum II
Minimum days to make M bouquets
Delete all occurrences of a given key in a doubly linked list
Task Scheduler
Hands of Straights
Buy Stock with Transaction Fee
Number of Longest Increasing Subsequence
Lemonade Change
Maximum Sum Combination
Non-overlapping Intervals
Minimum Window Substring
Replace elements by its rank in the array
Insert Interval
Partition Array for Maximum Sum
Count Square Submatrices with All Ones
Count Number of Nodes in a Binary Tree
Longest String Chain
Print Longest Increasing Subsequence
Partitions with Given Difference
Floor in BST
Largest Divisible Subset
Make array elements unique
Find the longest string
Fraction pairs with sum 1
Minimize the Difference
Connected Components in an Undirected Graph
Meeting Rooms II
Divisible by 13
Farthest Smaller Right
Search in fully rotated sorted 2D matrix
Linked List Group Reverse
Clone List with Next and Random
Serialize and deserialize a binary tree
Max rectangle
LRU Cache
AVL Tree Insertion
Alien Dictionary
AVL Tree Deletion
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Max Path Sum 2 Special Nodes
String Permutations
Trapping Rain Water
Smallest window containing all characters
Histogram Max Rectangular Area
Max of min for every window size
Solve the Sudoku
Word Ladder I
Burning Tree
Merge Without Extra Space
Next Smallest Palindrome
Count Pairs in an Array
The Painter's Partition Problem-II
Search Pattern
Longest Prefix Suffix
Number of distinct subsequences
Wildcard string matching
Longest repeating and non-overlapping substring
Sum-string
Edit Distance
Minimum Points To Reach Destination
Minimum sum partition
Palindromic Partitioning
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Generalised Fibonacci numbers
Boolean Parenthesization
Possible Paths in a Tree
N-Queen Problem
Search Pattern (Rabin-Karp Algorithm)
Find all Critical Connections in the Graph
Word Ladder II
Find the String
Stock Buy and Sell – Max 2 Transactions Allowed
Min Chars to Add for Palindrome
MaxSkill
Minimize Max Distance to Gas Station
Candy
Chocolates Pickup
Making A Large Island
Count the Coprimes
Reverse a linked list
Pairwise swap elements of a linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Maximum Width of Tree
Height of Binary Tree
Balanced Tree Check
Kth from End of Linked List
Middle of a Linked List
Left View of Binary Tree
Delete Middle of Linked List
Transform to Sum Tree
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Stack using two queues
Reverse Level Order Traversal
DFS of Graph
Stack using Linked List
Implement stack using array
Insert a node in a BST
BFS of graph
Identical Trees
Root to leaf path sum
Square Root
Nodes without a Sibling
Insertion at doubly linked list
Lowest Common Ancestor in a BST
Binary Search
Largest subarray of 0's and 1's
Remove Duplicates Sorted Array
BST Keys in a Range
Minimum Depth of a Binary Tree
Binary Tree to BST
Remove every k'th node
Leaves at Same Level or Not
Convert to Roman No
You and your books
Delete in a Singly Linked List
Kth largest element in BST
Array Duplicates
Three way partitioning
Inorder Successor in BST
Index of an Extra Element
Convert Ternary Expression to Binary Tree
Disjoint set (Union-Find)
Insert in a Sorted List
Max and min element in Binary Tree
XOR of a given range
Symmetric Tree
Next Right Node
Count Pairs whose sum is equal to X
Find length of Loop
Median of BST
Leaf under budget
Height of Spiral Tree
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Nodes at Odd Levels
Exchange the Leaf Nodes
Tilt of Binary Tree
Swap the array elements
First Set Bit
Check K-th Bit
Power of 2
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Print adjacency list
Matrix Boundary Traversal
Anagram
String Rotated by 2 Places
Isomorphic Strings
Reverse Words
Minimum indexed character
Parenthesis Checker
Generate Binary Numbers
N meetings in one room
Reach a given score
Count number of hops
Union of Arrays with Duplicates
Check Equal Arrays
Numbers containing 1, 2 and 3
Missing in Array
Product array puzzle
Roman Number to Integer
Max Value Permutation
Missing And Repeating
Count the elements
Find Kth Rotation
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Move All Zeroes to End
String Duplicates Removal
Chocolate Distribution Problem
Count the triplets
Next Greater Even Number
Swap and Maximize
Bitonic Point
Smallest subarray with sum greater than x
Single Number
Remove Consecutive Characters
Remove Duplicates
Jumping Caterpillars
Convert array into Zig-Zag fashion
Rotate Bits
Second most repeated string in a sequence
Find all pairs with a given sum
Number of occurrence
Does array represent Heap
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
First Repeated Character
Min Number of Flips
Two sum -Pairs with 0 Sum
Play With OR
At Least K Occurrences
Element with left side smaller and right side greater
Find the closest pair from two arrays
Palindrome String
K-th missing element
Binary representation of next number
Minimum Operations
Divisibility by 8
Number of 1 Bits
Armstrong Numbers
Nth Fibonacci Number
Ceil The Floor
Number of factors
Count Digits
Sum 1 to n Divisors
Perfect Numbers
Factorials Less than or Equal to n
Largest number possible
Trailing zeroes in factorial
Form a number divisible by 3 using array digits
Prime Factors
Arithmetic Number
Row with Minimum 1s
Surround the 1's
Inorder Traversal and BST
Print Pattern
Search insert position of K in a sorted array
Queue using stack
Find pairs with given sum in doubly linked list
Pattern 2
Pattern 3
Pattern 4
Print N to 1 without loop
Print GFG n times
Largest odd number in string
Maximum Nesting Depth of the Parentheses
Find XOR of numbers from L to R.
Outermost Parentheses
Search in Linked List
Remove duplicates from a sorted doubly linked list
Assign Cookies
Binary Search Trees
Implementation of Priority Queue using Binary Heap
Unique Binary Tree Requirements
Find the first node of loop in linked list
Unique Number of Occurrences
Meeting Rooms
Implement Lower Bound
Implement Upper Bound
Find Length of Linked List
Count Leaves in Binary Tree
Postorder Traversal
Queue using Linked List
Queue Using Array
Preorder Traversal
Palindromic Array
Minimum element in BST
Bit Difference
Print 1 To N Without Loop
Sorted Array Search
Reverse a String
First n Fibonacci
Sort a String
Value equal to index value
Uncommon characters
Last index of One
Rotate Array by One
Array Subset
Min and Max in Array
Odd or Even
Set the rightmost unset bit
LCM And GCD
Median of an Array
Sum of first n terms
Middle of Three
Swap two numbers
Pattern 1
Pattern 5
Pattern 6
close
M
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !
✕