Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
muskangupta955
Current POTD Streak
STREAK
327
/1483
days
Longest streak/Global longest streak
Institution
National Institute of Technology Delhi (NIT) Delhi
1 Rank
Institute Rank
Language Used
Java, C++
Coding Score
2571
Problem Solved
772
Contest Rating
-
Campus Mantri
im_dheerajsahu
45 points
Contributor
45 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
319 submissions in current year
Current
2024
2023
January
February
March
April
May
June
July
August
SCHOOL (3)
BASIC (39)
EASY (253)
MEDIUM (409)
HARD (68)
Linked List Group Reverse
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Wildcard Pattern Matching
Subtraction in Linked List
LRU Cache
AVL Tree Insertion
Merge two BST 's
Alien Dictionary
Smallest range in K lists
Fixing Two nodes of a BST
Trapping Rain Water
Max Circular Subarray Sum
Merge Without Extra Space
Smallest window in a string containing all the characters of another string
Histogram Max Rectangular Area
Maximum of minimum for every window size
Find median in a stream
Solve the Sudoku
Minimum Cost Path
Median of 2 Sorted Arrays of Different Sizes
Stock Buy and Sell – Multiple Transaction Allowed
Burning Tree
Count Pairs in an Array
Palindrome SubStrings
Count Smaller elements
Longest Prefix Suffix
Wildcard string matching
Circle of strings
Longest repeating and non-overlapping substring
Sum-string
Sub-arrays with equal number of occurences
Edit Distance
Minimum Points To Reach Destination
Minimum sum partition
Palindromic Partitioning
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Strictly Increasing Array
Median in a row-wise sorted Matrix
The Palindrome Pattern
Generalised Fibonacci numbers
Boolean Parenthesization
Longest valid Parentheses
Possible Paths in a Tree
N-Queen Problem
Brackets in Matrix Chain Multiplication
Rohan's Love for Matrix
Articulation Point - II
Maximum sum Rectangle
Find all Critical Connections in the Graph
Split Array Largest Sum
Kth Smallest Number in Multiplication Table
Stock Buy and Sell – Max 2 Transactions Allowed
Min Chars to Add for Palindrome
Longest Path in a Directed Acyclic Graph
Maximum Connected group
Aggressive Cows
Minimize Max Distance to Gas Station
Count Reverse Pairs
Account Merge
Max min Height
Meeting Rooms III
Minimum Weight Cycle
Count the Coprimes
Longest Periodic Proper Prefix
Maximum Non-Overlapping Odd Palindrome Sum
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
Quick Sort on Linked List
Insert in Sorted Circular Linked List
Merge Sort
Quick Sort
Construct Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Intersection in Y Shaped Lists
Diameter of a Binary Tree
Merge two sorted linked lists
Sum Tree
Construct Binary Tree from Parent Array
Connect Nodes at Same Level
Flattening a Linked List
Diagonal Traversal of Binary Tree
Tree Boundary Traversal
Directed Graph Cycle
Undirected Graph Cycle
Lowest Common Ancestor in a Binary Tree
Min distance between two given nodes of a Binary Tree
Max sum path in two arrays
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Traversal of Binary Tree
Merge K sorted linked lists
Find the number of islands
Find kth element of spiral matrix
Max sum in the configuration
Get Min from Stack
Serialize and deserialize a binary tree
Gas Station
Make Binary Tree From Linked List
Toeplitz matrix
Check if subtree
Kth element in Matrix
Is Binary Tree Heap
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Distinct occurrences
Max length chain
Minimum Spanning Tree
Additive sequence
Largest BST
Sorted subsequence of size 3
Count Palindromic Subsequences
Multiply two strings
Implement Atoi
Maximum Difference
Palindrome Linked List
Strongly Connected Components (Kosaraju's Algo)
Rat in a Maze Problem - I
Bipartite Graph
BST with Dead End
Root to leaf paths sum
Bridge edge in a graph
Find triplets with zero sum
Sort a stack
Duplicate subtree in Binary Tree
Top View of Binary Tree
k-th Smallest in BST
Peak element
Merge Sort for Linked List
Euler Circuit in an Undirected Graph
Merge Sort on Doubly Linked List
Ancestors in Binary Tree
Pair Sum in BST
Root to Leaf Paths
Populate Inorder Successor for all nodes
XOR Linked List
Counting elements in two arrays
Linked List that is Sorted Alternatingly
K Sum Paths
Construct Tree from Inorder & Preorder
Arrange Consonants and Vowels
Count the nodes at distance K from leaf
Vertical sum
Insert in Sorted way in a Sorted DLL
Check if Tree is Isomorphic
Maximum path sum from any node
Predecessor and Successor
Children Sum in a Binary Tree
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Normal BST to Balanced BST
Duplicate Subtrees
Construct Tree from Preorder Traversal
Sum of nodes on the longest path
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Maximum sum of Non-adjacent nodes
Ceil in BST
Gray to Binary equivalent
Tower Of Hanoi
Smallest Positive Missing
Power Of Numbers
Maximum occured integer
Rotate and delete
Rearrange Array Alternately
Maximum Index
Trapping Rain Water
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Union of Two Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Sort by Absolute Difference
Triplet Sum in Array
Number of pairs
Make Matrix Beautiful
Spirally traversing a matrix
Search in a sorted Matrix
Distance of nearest cell having 1
Subarray with 0 sum
Subarray range with given sum
Sorting Elements of an Array by Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Evaluation of Postfix Expression
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Nearly sorted
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
M-Coloring Problem
Minimum Jumps
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Number of Unique Paths
Sort according to an Array
Allocate Minimum Pages
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Shortest Common Supersequence
Rotten Oranges
Steps by Knight
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Radix Sort
Closest Three Sum
Word Break
Word Search
Prerequisite Tasks
Find All Four Sum Numbers
Sort an array of 0s, 1s and 2s
Paths to reach origin
Missing And Repeating
Pascal Triangle
Maximum Index
Sum of Subarrays
Longest Span in two Binary Arrays
Median of two sorted arrays
Pythagorean Triplet
Painting the Fence
Search in Rotated Sorted Array
Sum of bit differences
Max Score from Subarray Mins
Form the Largest Number
Add Binary Strings
Maximum Product Subarray
Sort the given array after applying the given equation
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Substrings with K Distinct
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Transform String
Count the Reversals
Cutting Binary String
Sum of two large numbers
Search Pattern (KMP-Algorithm)
Number of occurrence
Find the N-th character
Length of the longest substring
k largest elements
Find missing in second array
Longest Common Substring
Smallest distinct window
Longest Substring with K Uniques
Longest Palindrome in a String
Look and Say Pattern
K-th element of two Arrays
Rod Cutting
K closest elements
Missing element of AP
Minimum swaps and K together
LCS of three strings
Longest Palindromic Subsequence
First negative in every window of size k
Equalize the Towers
Minimum sum
Not a subset sum
Minimize the Heights II
First and Last Occurrences
Minimum Deletions
Print N-bit binary numbers having more 1s than 0s
Nine Divisors
Valid Substring
Shop in Candy Store
Permutations of a String
Friends Pairing Problem
Sum of Products
Unique Number II
Modular Exponentiation for large numbers
Maximum Tip Calculator
Disarrangement of balls
Minimum number of deletions and insertions
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
String Subsequence
Mobile numeric keypad
Gold Mine Problem
Coin Change (Minimum Coins)
Dice throw
Perfect Sum Problem
Smallest number
Trail of ones
Longest subsequence-1
Power Set
Count ways to N'th Stair(Order does not matter)
Knapsack with Duplicate Items
nCr
Geek and its Game of Coins
Maximum path sum in matrix
Minimum steps to destination
Partition Equal Subset Sum
Count digit groupings of a number
Array Pair Sum Divisibility Problem
Subset Sums
Prime Pair with Target Sum
Nth Natural Number
Number of paths in a matrix with k coins
LCM Triplet
Game with String
Next Permutation
Smallest number on left
Maximum sum of hour glass
Power of k in factorial of n
Longest Repeating Subsequence
Longest alternating subsequence
Left Rotate Matrix K times
Decode the string
Total Decoding Messages
First non-repeating character in a stream
Check If two Line segments Intersect
Segregate even and odd nodes in a Link List
Print leaf nodes from preorder traversal of BST
Number of Rectangles in a Circle
Largest square formed in a matrix
Integral Points Inside Triangle
Check Mirror in N-ary tree
Count all Possible Path
Find the string in grid
Count the paths
Floyd Warshall
Negative weight cycle
Flood fill Algorithm
Largest subsquare surrounded by X
Divisibility tree
Police and Thieves
Recursively remove all adjacent duplicates
Help Classmates
Jump Game
Subset Sum Problem
Search Pattern (Rabin-Karp Algorithm)
Find all possible palindromic partitions of a String
Bellman-Ford
Subarrays with sum K
Coin Piles
Rearrange characters
Remove K Digits
Substrings of length k with k-1 distinct elements
Maximum XOR of two numbers in an array
Construct list using given q XOR queries
Number of Provinces
Find duplicate rows in a binary matrix
Maximum sum of elements not part of LIS
Find rectangle with corners as 1
Shortest Prime Path
Remove all occurences of duplicates in a linked list
Minimize the Heights I
Unique Number III
Course Schedule
Clone an Undirected Graph
Min Cost Climbing Stairs
Overlapping Intervals
Buy and Sell a Share at most twice
Maximum product subset of an array
K-th Largest Sum Contiguous Subarray
Find Maximum Equal sum of Three Stacks
Exactly one swap
Smallest sum contiguous subarray
Array Removals
Find shortest safe route in a matrix
Stack Permutations
Calculate the coefficient
Assembly Line Scheduling
Check if a given graph is tree or not
Replace every element with the least greater element on its right
Minimum time taken by each job to be completed given by a Directed Acyclic Graph
Next element with greater frequency
City With the Smallest Number of Neighbors at a Threshold Distance
Path With Minimum Effort
Cheapest Flights Within K Stops
Shortest path in Undirected Graph
Shortest path in Directed Acyclic Graph
Majority Element II
Koko Eating Bananas
Longest subarray with Atmost two distinct integers
Sum of subarray minimum
Minimal Cost
Geek's Training
Smallest Divisor
Combination Sum II
Shortest Path in Weighted undirected graph
Generate all binary strings
Delete all occurrences of a given key in a doubly linked list
Postfix to Infix Conversion
Task Scheduler
Minimum Absolute Difference In BST
Maximum Sum Combination
Non-overlapping Intervals
Stickler Thief II
Insert Interval
Introduction to DP
Longest String Chain
Partitions with Given Difference
Floor in BST
Largest Divisible Subset
Make array elements unique
Next Greater Element in Circular Array
Find the longest string
Minimum repeat to make substring
Prime List
Water the plants
Unique Paths in a Grid
Number of Good Components
Remove the balls
Powerful Integer
Flatten BST to sorted list
Last Fairy Standing
Minimize the Difference
Pairs violating the BST property
Kth common ancestor in BST
Maximum Doublet XOR
Strong Indices
Kth Missing Positive Number in a Sorted Array
Count Subarrays with given XOR
Set Matrix Zeros
Minimum cost to connect all houses in a city
Meeting Rooms
Find All Triplets with Zero Sum
Split array in three equal sum subarrays
Last Moment Before All Ants Fall Out
Search in an almost Sorted Array
Find H-Index
Minimum Time to Burst Balloons
Count Pairs
Longest Subarray with Majority Greater than K
Count all triplets with given sum in sorted array
Balancing Consonants and Vowels Ratio
Implement Pow
Subarrays With At Most K Distinct Integers
K Closest Points to Origin
Longest Bounded-Difference Subarray
The Multiplication Game
Beautiful Matrix II
Minimize SubArray Sum
Make All Zero
Divisible by 13
Lexicographically Largest String After K Deletions
Group Balls by Sequence
Count Unique Vowel Strings
Count Numbers Containing Specific Digits
ASCII Range Sum
2D Difference Array
Difference Check
Farthest Smaller Right
Maximize the minimum difference between k elements
Search in fully rotated sorted 2D matrix
Reverse a linked list
Occurence of an integer in a Linked List
Given a linked list of 0s, 1s and 2s, sort it.
Linked list of strings forms a palindrome
Detect Loop in linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Sorted insert for circular linked list
Delete node in Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Count BST nodes that lie in a given range
Bubble Sort
Selection Sort
Insertion Sort
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Delete without head pointer
Height of Binary Tree
Balanced Tree Check
Nth node from end of linked list
Middle of a Linked List
Left View of Binary Tree
Delete Middle of Linked List
Decimal Equivalent of Binary Linked List
Transform to Sum Tree
Intersection Sorted Linked Lists
Find Transition Point
Remove Duplicates from a Sorted Linked List
Level Order in spiral form
Reverse Level Order Traversal
DFS of Graph
Insert a node in a BST
BFS of graph
Determine if Two Trees are Identical
Root to leaf path sum
Square root of a number
Print all nodes that don't have sibling
Lowest Common Ancestor in a BST
Implement two stacks in an array
Largest subarray of 0's and 1's
Remove duplicate elements from sorted Array
Remove duplicates in array
Remove every kth node
Check if all leaves are at same level
Multiply two linked lists
You and your books
Max distance between same elements
Print matrix in diagonal pattern
Delete a Node in Single Linked List
Kth largest element in BST
Minimum distance in an Array
Find duplicates in an array
Count distinct elements in every window
Three way partitioning
Level order traversal
Index of an Extra Element
Disjoint set (Union-Find)
Split Linked List Alternatingly
Sum of leaf nodes in BST
More than n/k Occurrences
Counting Sort
Reverse a string using Stack
Symmetric Tree
Delete Alternate Nodes
Find the Sum of Last N nodes of the Linked List
Count Pairs whose sum is equal to X
Find length of Loop
Linked List Matrix
Queue Reversal
Reverse First K elements of Queue
Remove Half Nodes
Closest Neighbour in BST
Delete middle element of a stack
Swap the array elements
Xoring and Clearing
Reverse an Array
K-th Bit is Set or Not
Power of 2
Wave Array
Frequencies of Limited Range Array Elements
Equilibrium Point
Array Leaders
Rotate Array
Floor in a Sorted Array
Roof Top
Print adjacency list
Rotate by 90 degree
Anagram
String Rotated by 2 Places
Strings Rotations of Each Other
Isomorphic Strings
Reverse Words
Panagram Checking
Non Repeating Character
Parenthesis Checker
Evaluation of Postfix Expression
Minimum Cost of ropes
N meetings in one room
Reach a given score
Count ways to N'th Stair
First Repeating Element
Union of Arrays with Duplicates
Missing in Array
Product array puzzle
Roman Number to Integer
Intersection of two arrays
Sort 0s, 1s and 2s
Maximize Array Value After Rearrangement
Count the elements
Rotation
Find the closest number
Pairs with certain difference
Common in 3 Sorted Arrays
Split the Array
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Remove all duplicates from a given string
Min sum formed by digits
Minimize the sum of product
Chocolate Distribution Problem
Count pairs Sum in matrices
Find Pair Given Difference
Pairs with difference k
Swap and Maximize
Bitonic Point
Smallest subarray with sum greater than x
Single Number
Alternate positive and negative numbers
Remaining String
Kth distance
Palindrome Sentence
Remove Duplicates
Nearest multiple of 10
Reorganize The Array
Sum of two numbers represented as arrays
Facing the sun
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Second most repeated string in a sequence
Number of occurrence
K-Pangrams
Does array represent Heap
Modify the Array
Check if array is sorted
Sum Pair closest to target
Longest Common Prefix of Strings
Longest substring with distinct characters
Min Number of Flips
Substrings with same first and last characters
Count pairs with given sum
Segregate 0s and 1s
Play With OR
Tywin's War Strategy
First element to occur k times
Merge two binary Max heaps
Palindrome String
Total count
Search array with adjacent diff at most k
Pair with given sum in a sorted array
Print Bracket Number
Odd Even Problem
Binary representation of next number
Padovan Sequence
Extract the Number from the String
Check if a number is divisible by 8
Find the Highest number
Armstrong Numbers
Reverse Bits
Nth Fibonacci Number
Swap two nibbles in a byte
Count Digits
Maximum Sum Problem
Party of Couples
Maximize dot product
Shortest path from 1 to n
Sum of all divisors from 1 to n
Count numbers containing 4
Trail of ones
K-Palindrome
Minimum number of Coins
Minimum Cost To Make Two Strings Identical
Largest number possible
Recamans sequence
Compare two fractions
Trailing zeroes in factorial
Reverse Coding
BBT counter
Find Nth root of M
Recursive sequence
Juggler Sequence
Summed Matrix
Arithmetic Number
Row with minimum number of 1's
Coverage of all Zeros in a Binary Matrix
Exit Point in a Matrix
Array to BST
Print Diagonally
Find maximum volume of a cuboid
Minimum Sum of Absolute Differences of Pairs
Move Last Element to Front of a Linked List
Insert an Element at the Bottom of a Stack
Find pairs with given sum in doubly linked list
Sort a k sorted doubly linked list
Fibonacci series up to Nth term
Geek Jump
Stock Buy and Sell – Max one Transaction Allowed
Divisor Game
Search in Linked List
Remove duplicates from a sorted doubly linked list
Introduction to Linked List
Introduction to Doubly Linked List
Graph and Vertices
Find the first node of loop in linked list
String Reboot
Character Matrix Conundrum
Prefix Distinct
Find Mode in BST
Two Smallests in Every Subarray
Split an array into two equal Sum subarrays
Largest Pair Sum
Validate distribution
Find Smallest
Geek String
Two Swaps
Maximize partitions in a String
Count pairs with given sum
Count Pairs whose sum is less than target
Union of Two Sorted Arrays with Distinct Elements
Intersection of Two arrays with Duplicate Elements
Find All Triplets with Zero Sum
Search in a row-wise sorted matrix
Implement Lower Bound
Find Only Repetitive Element from 1 to n-1
Max x
Number Difference
Longest Substring
Minimum Steps to Target Coordinate
Absolute Difference Array
Min Operations
Min Operations for Full 1s Row & Column
Maximum Score
Minimum Cost to buy Candies
Beautiful Matrix I
Count Triplets
Lexicographically Smallest String Cost
Unique Number I
Different Modulo Subsequence
Maximum Matching Pair
Print Linked List elements
Count Linked List Nodes
Inorder Traversal
Check If Circular Linked List
Doubly linked list Insertion at given position
Binary Search
Sum Except First and Last
Palindromic Array
Peak element
Linked List Insertion
Minimum element in BST
Is Linked List Length Even?
Identical Linked Lists
Triplet Family
Reverse array in groups
Search an Element in an array
Searching an element in a sorted array
Reverse a String
Union of two arrays
Check if two arrays are equal or not
Print first n Fibonacci Numbers
Permutations in array
Alternative Sorting
Value equal to index value
Remove Consecutive Characters
Largest Element in Array
Rotate Array by One
Array Subset
Min and Max in Array
Ceil The Floor
LCM And GCD
Factorial
Prime Number
Time Travel
Who has the majority?
Geekland Elections
Maximize Expression
Bit Maximization
Difference Sum
Sum of Series
Find the median
Swap two numbers
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 !