Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
S
shreyansh2511
Current POTD Streak
STREAK
01
/1460
days
Longest streak/Global longest streak
Institution
SRMIST
Language Used
Java
Coding Score
1878
Problem Solved
665
Contest Rating
__
Apply for Campus Mantri
7 points
Contributor
7 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
25 submissions in current year
Current
2024
2023
2022
2021
2020
January
February
March
April
May
June
July
August
SCHOOL (1)
BASIC (8)
EASY (281)
MEDIUM (352)
HARD (23)
Longest Even Length Substring
Sorting Elements of an Array by Frequency
Nearly Sorted Algorithm
Last two digits of Fibonacci
COVID19
Reverse alternate nodes in Link List
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Rearrange a linked list
Add 1 to a Linked List Number
Merge 2 sorted linked list in reverse order
Linked List in Zig-Zag fashion
Detect Loop in linked list
Quick Sort on Linked List
Insert in Sorted Circular Linked List
Count BST nodes that lie in a given range
Merge Sort
Quick Sort
Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Intersection in Y Shaped Lists
Diameter of a Binary Tree
Heap Sort
Merge two sorted linked lists
Add all greater values to every node in a BST
Sum Tree
Connect Nodes of Levels
Flattening a Linked List
Diagonal Tree Traversal
Tree Boundary Traversal
Reverse alternate levels of a perfect binary tree
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Absolute List Sorting
Two Stacks in an Array
Max sum path in two arrays
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
Serialize and deserialize a binary tree
Gas Station
Wildcard Pattern Matching
Linked List to Binary Tree
Check if subtree
Extreme nodes in alternate order
Kth element in Matrix
Is Binary Tree Heap
Clone a Binary Tree
Validate an IP Address
Remove loop in Linked List
Largest BST
Interleaved Strings
Sorted subsequence of size 3
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Count of distinct substrings
Palindrome Linked List
Print matrix in diagonal pattern
Rat in a Maze Problem - I
Max sum subarray by removing at most one element
Closest in BST
BST with Dead End
Merge two BST 's
Count distinct elements in every window
k-Anagram
Merge k Sorted Arrays
Root to leaf paths sum
Longest Palindrome in Linked List
Bridge edge in a graph
Find triplets with zero sum
Sort a stack
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
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
Populate Inorder Successor for all nodes
Counting elements in two arrays
Construct expression tree
Linked List that is Sorted Alternatingly
K Sum Paths
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Vertical sum
Insert in Sorted way in a Sorted DLL
Isomorphic Trees
Maximum path sum from any node
Predecessor and Successor
Leaves to DLL
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
Kth Ancestor in a Tree
Check if two Nodes are Cousins
ZigZag Tree Traversal
Count Number of SubTrees having given Sum
Vertical Width of a Binary Tree
Mother Vertex
Ceil in BST
Smallest Positive Missing
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Unique BST's
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Triplet Sum in Array
Merge Without Extra Space
Possible paths between 2 vertices
Level of Nodes
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray with 0 sum
Subarray range with given sum
Subarrays with equal 1s and 0s
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Nearly sorted
Activity Selection
Minimum Platforms
Minimum Jumps
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Sort according to an Array
Allocate Minimum Pages
Preorder to BST
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Top K Frequent in Array
Closest Three Sum
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Word Boggle
Prerequisite Tasks
4 Sum - All Quadruples
Excel Sheet | Part - 1
Sort 0s, 1s and 2s
Paths to reach origin
Maximum Sub Array
Pascal Triangle
Maximum Index
Equal Sum
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
Happiest Triplet
Painting the Fence
Pair Sum Closest to 0
Search in Rotated Sorted Array
Form the Largest Number
Water Collection
Maximum Product Subarray
Longest subarray with sum divisible by K
Check if a string is repetition of its substring of k-length
Row with max 1s
Swapping pairs make sum equal
Column name from a given column number
Comment Removal
Substrings with K Distinct
Form a palindrome
Smallest subarray with all occurrences of a most frequent element
Nuts and Bolts Problem
Rotate a Matrix
Longest Subarray with Sum K
Transform String
Count the Reversals
Sum of two large numbers
Max Sum without Adjacents
Factorials of large numbers
Reverse each word in a given string
Length of the longest substring
Remove leading zeros from an IP address
The Tiny Miny
Maximum Sum Path in Two Arrays
k largest elements
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Count of substrings containing K ones
Longest Substring with K Uniques
Longest Palindrome in a String
Look and Say Pattern
Valid Expression
K-th element of two Arrays
Arranging the array
Triplets with Smaller Sum
Rod Cutting
Greater tower sum
K closest elements
Minimum swaps and K together
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Longest Common Increasing Subsequence
First negative in every window of size k
Find the number of subarrays having even sum
Maximum difference of zeros and ones in binary string
Minimum sum
Not a subset sum
Maximum possible sum
Minimize the Heights II
Large Factorials
First and Last Occurrences
Minimum Deletions
Print N-bit binary numbers having more 1s than 0s
Valid Substring
Permutations of a String
Find largest word in dictionary
Friends Pairing Problem
Subarrays Product Less than K
Unique Number II
Largest prime factor
Minimum number of deletions and insertions
Max Sum Increasing Subsequence
Coin Change (Count Ways)
String Subsequence
Coin Change (Minimum Coins)
Palindromic Strings
Perfect Sum Problem
Kth Smallest Factor
K-Palindrome
Longest subsequence-1
Count ways to N'th Stair(Order does not matter)
Minimum Cost To Make Two Strings Identical
Find distinct elements
Knapsack with Duplicate Items
nCr
Count of sum of consecutives
Minimum steps to destination
Partition Equal Subset Sum
Longest Bitonic subsequence
Array Pair Sum Divisibility Problem
Magic Triplets
Knight Walk
Bell Numbers
Sum of Query II
Jumping Numbers
Game with String
Next Permutation
Longest Repeating Subsequence
Longest alternating subsequence
Preorder Traversal and BST
Stream First Non-repeating
Maximum Sub-String after at most K changes
Segregate even and odd nodes in a Linked List
Largest square formed in a matrix
Kth Largest in a Stream
Snake and Ladder Problem
Check Mirror in N-ary tree
Count the paths
Floyd Warshall
Flood fill Algorithm
Shortest Source to Destination Path
Dam of Candies
Restrictive Candy Crush
Jump Game
Max Diff Elements and Indexes
Iterative Inorder
Triplets with sum with given range
Preorder traversal (Iterative)
Iterative Postorder
Subset Sum Problem
Longest Palindromic Substring
Form a palindrome
Search Pattern (Rabin-Karp Algorithm)
Covid Spread
Bellman-Ford
Subarrays with sum K
Remove BST keys outside given range
Partition a Linked List around a given value
Number of Provinces
Prefix match with other strings
Maximum sum leaf to root path
Maximum GCD of siblings of a binary tree
BST to max heap
Paths from root with a specified sum
Remove all occurences of duplicates in a linked list
Minimize the Heights I
IPL 2021 - Match Day 2
Unique Number III
Clone an Undirected Graph
Box Stacking
Longest Palindrome Substring
Strange Matrix
Min Cost Climbing Stairs
Minimum times A has to be repeated such that B is a substring of it
Overlapping Intervals
Special Keyboard 2
Minimize connections
Majority Element II
Koko Eating Bananas
Prefix to Postfix Conversion
Count Number of Nodes in a Binary Tree
Introduction to DP
Flattening a Linked List
Minimum repeat to make substring
Intersection Point in Y Shaped Linked Lists
Fraction pairs with sum 1
GeeksforGeeks New System
Geek and his Marks
Reverse a linked list
Frequency in a Linked List
Delete N nodes after M nodes of a linked list
Pairwise swap elements of a linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Split a Linked List into two halves
Delete in a Doubly Linked List
Reverse a Doubly Linked List
Bubble Sort
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Two Mirror Trees
Maximum Width of Tree
Delete without head pointer
Height of Binary Tree
Balanced Tree Check
Kth from End of Linked List
Middle of a Linked List
Check If Circular Linked List
Left View of Binary Tree
Delete Middle of Linked List
Transform to Sum Tree
Intersection Sorted Linked Lists
Find Transition Point
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Stack using two queues
Level Order in spiral form
Reverse Level Order Traversal
DFS of Graph
Stack using Linked List
Insert a node in a BST
BFS of graph
Identical Trees
Root to leaf path sum
Square Root
Nodes without a Sibling
Lowest Common Ancestor in a BST
Binary Search
Run Length Encoding
Largest subarray of 0's and 1's
Remove Duplicates Sorted Array
Level Order Line by Line
BST Keys in a Range
Minimum Depth of a Binary Tree
Remove Duplicates from an array
Odd even level difference
Binary Tree to BST
K-Palindrome
Equilibrium index of an array
Unique rows in boolean matrix
Leaves at Same Level or Not
Third largest element
Convert to Roman No
Match specific pattern
Expression Tree
Max distance between same elements
Repetition of k length substring
Delete in a Singly Linked List
Kth largest element in BST
Minimum distance in an Array
Array Duplicates
Max Level Sum in Binary Tree
Special Stack
Three way partitioning
Level order traversal
Inorder Successor in BST
Index of an Extra Element
Convert Ternary Expression to Binary Tree
Intersection of Two Linked Lists
Insert in a Sorted List
Level of a Node in Binary Tree
More than n/k Occurrences
Counting Sort
Max and min element in Binary Tree
Perfect Binary Tree
Reverse Using Stack
Symmetric Tree
Construct BST from Postorder
Huffman Decoding-1
Count Pairs whose sum is equal to X
Maximum Node Level
Find length of Loop
Median of BST
Leaf under budget
Linked List Matrix
Queue Reversal
Reverse first K of a Queue
Remove Half Nodes
Height of Spiral Tree
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Sum of Left Leaf Nodes
Nodes at Odd Levels
Sum of Leaf Nodes at Min Level
Delete Mid of a Stack
Rotate doubly Linked List
Matrix Interchange
Predict the Column
Matrix Interchange - Java
Find the Frequency
Java ArrayList Operation
Reverse an Array
Stack Operations
Frequency in Queue
Operations on PriorityQueue
Wave Array
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Print adjacency list
Transpose of Matrix
Rotate by 90 degree
Anagram
Winner of an election
String Rotated by 2 Places
Strings Rotations of Each Other
Reverse Words
Minimum indexed character
Panagram Checking
Non Repeating Character
Parenthesis Checker
Minimum indexed character
Minimum Cost of ropes
N meetings in one room
Largest number with given sum
Reach a given score
Count ways to N'th Stair
Count number of hops
First Repeating Element
Union of Arrays with Duplicates
Check Equal Arrays
Numbers containing 1, 2 and 3
Missing in Array
Product array puzzle
Roman Number to Integer
Search an element in sorted and rotated array
Intersection of Arrays with Distinct
Max Value Permutation
Missing And Repeating
Subarrays with given sum
Cumulative frequency of count of each element in an unsorted array
Buildings receiving sunlight
Non-Repeating Element
Last seen array element
Pairs of equals Sum
Max value
Count the elements
Find Kth Rotation
k sorted array
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Maximum no of 1's row
Sum of elements between k1'th and k2'th smallest elements
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Equal Sum and Product
Find pairs with given relation
Missing number
Move all negative elements to end
Chocolate Distribution Problem
Minimum Distinct Ids
Count pairs Sum in matrices
Count the triplets
Find Pair Given Difference
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Closest Strings
Single Number
Alternate Positive Negative
1[0]1 Pattern Count
Remaining String
Remove Consecutive Characters
Common Subsequence
Convert a sentence into its equivalent mobile numeric keypad sequence
Remove b and ac from a given string
Palindrome Sentence
Addition of submatrix
Check if the number is balanced
Sort in specific order
Rearrange a string
Remove Duplicates
Convert the string
Nearest multiple of 10
Facing the sun
Greater on right side
Count Substrings
Twice Counter
Distinct Substrings
Word with maximum frequency
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Second most repeated string in a sequence
Check if array contains contiguous integers
Rearrange to Make arr[i] = i
Equal point in a string of brackets
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Modify the Array
Convert an array to reduced form
Check if array is sorted
Sum Pair closest to target
Find missing in second array
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
First Repeated Character
Special array reversal
Min Number of Flips
Maximum number of characters between any two same character
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
Three Great Candidates
Element with left side smaller and right side greater
Merging two unsorted arrays in sorted order
Count the Zeros
Merge two binary Max heaps
Sum of Lengths of Non-Overlapping SubArrays
Four Elements
First and Second Smallests
Palindrome String
Maximum average subarray
Total count
Search array with adjacent diff at most k
Smallest greater elements in whole array
Pangram Strings
Pair with given sum in a sorted array
Count number of words
Print Bracket Number
Shop in Candy Store
Odd Even Problem
Lucas Number
Generate binary string
Is Binary Number Multiple of 3
Extract the Number from the String
Find the Highest number
Lucky Number
Nth Fibonacci Number
Maximum Sum Problem
Shortest path from 1 to n
Reach the Nth point
Minimum number of Coins
Grouping values
Sum Indexes
Recamans sequence
Count ways to express N as the sum of 1,3 and 4
Form a number divisible by 3 using array digits
Maximum Diamonds
Row with Minimum 1s
Find the highest occurring digit in prime numbers in a range
Array to BST
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Print Diagonally
Plus One
Queue using stack
Binary Search in forest
Largest value in each level
First and last occurrences of x
Silver and Gold
Zero
Awesome Pairs
Wave Array
Count the Substrings
Count the Subarrays
Find all possible paths from top to bottom
Smallest window containing 0, 1 and 2
Stock Buy and Sell – Max one Transaction Allowed
Frogs and Jumps
Unique Number of Occurrences
Tribonacci Number
Linked List Group Reverse
Binary Tree to DLL
Min distance between two given nodes of a Binary Tree
Max rectangle
Distinct occurrences
Box Stacking
String Permutations
Trapping Rain Water
Smallest window containing all characters of another string
Histogram Max Rectangular Area
Minimum Cost Path
Median of 2 Sorted Arrays of Different Sizes
Merge Without Extra Space
The Painter's Partition Problem-II
Distinct palindromic substrings
Search Pattern (KMP-Algorithm)
Longest Prefix Suffix
Edit Distance
Median in a row-wise sorted Matrix
Longest valid Parentheses
Phone directory
Word Wrap
Shortest Unique prefix for every word
Sum Except First and Last
Search a node in BST
Peak element
Count Odd and Even
Reverse a String
Uncommon characters
Array Subset
Preorder Traversal
Search in a 2D Matrix
close
S
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 !