Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
S
surya9c5sb
star
star
star
Current POTD Streak
STREAK
18
/1540
days
Longest streak/Global longest streak
Institution
Motilal Nehru National Institute of Technology, Allahabad (MNNIT-A)
232 Rank
Institute Rank
Organization
NO
Language Used
C++, Java, Python, C
Coding Score
1759
Problem Solved
669
Contest Rating
1764
Apply for Campus Mantri
218 points
Contributor
218 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
15 submissions in current year
Current
2024
2023
2022
January
February
March
April
May
June
July
August
September
October
SCHOOL (2)
BASIC (97)
EASY (248)
MEDIUM (281)
HARD (41)
Power of 3
Reverse a linked list
Frequency in a Linked List
Pairwise swap elements of a linked list
Node at a given index in 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
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Selection Sort
Insertion Sort
Right View of Binary Tree
K distance from root
Mirror Tree
Two Mirror Trees
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
Postorder Traversal
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
Insertion at doubly linked list
Binary Search
Remove Duplicates Sorted Array
Minimum Depth of a Binary Tree
Binary Tree to BST
Unique rows in boolean matrix
Leaves at Same Level or Not
Third largest element
Multiply two linked lists
Search a node in BST
You and your books
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
Index of an Extra Element
Insert in a Sorted List
Minimum element in BST
More than n/k Occurrences
Counting Sort
Reverse Using Stack
Symmetric Tree
Queue Reversal
Reverse first K of a Queue
Remove Half Nodes
Delete Mid of a Stack
Product of an Array
C++ Function overloading
Swap the array elements
Xoring and Clearing
Find the Frequency
Stack Operations
Get min at pop
Check the status - Python
Decimal to binary
First Set Bit
Rightmost different bit
Power of 2
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Roof Top
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Matrix Boundary Traversal
Check if a string is Isogram or not
Anagram
Winner of an election
String Rotated by 2 Places
Isomorphic Strings
Most Frequent Character
Reverse Words
Sum of numbers in string
Minimum indexed character
Non Repeating Character
Parenthesis Checker
K largest elements
N meetings in one room
Reach a given score
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
Intersection of Arrays with Distinct
Max Value Permutation
Missing And Repeating
Find Index
Non-Repeating Element
Count the elements
Find Kth Rotation
Sort by Set Bit Count
k sorted array
Maximize sum after K negations
Pairs with certain difference
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Maximum no of 1's row
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Min sum formed by digits
Minimize the sum of product
Move all negative elements to end
Chocolate Distribution Problem
Count the triplets
Find Pair Given Difference
Swap and Maximize
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Sort Array II
Alternate Positive Negative
Remove Consecutive Characters
Count Alphabets
Remove Duplicates
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Rotate Bits
Find all pairs with a given sum
Number of occurrence
Reversing the equation
Check if array is sorted
Find missing in second array
Longest Common Prefix of Strings
First Repeated Character
Special array reversal
Min Number of Flips
Counts Zeros Xor Pairs
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
At Least K Occurrences
Element with left side smaller and right side greater
Count the Zeros
Merge two binary Max heaps
Four Elements
First and Second Smallests
Palindrome String
Delete Array Elements
Pair with given sum in a sorted array
Count number of words
Shop in Candy Store
Odd Even Problem
Binary representation of next number
Split the string
Extract the Number from the String
Minimum Operations
Number of 1 Bits
Find the Highest number
Maximize XOR
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Copy Set Bits in Range
Count Digits
Sum Of Digits
Prime Number
Party of Couples
Shortest path from 1 to n
Count numbers containing 4
Minimum number of Coins
Perfect Numbers
Maximize Toys
C++ Exception Handling
Largest number possible
Check if it is possible to survive on Island
Recamans sequence
Rectangles in N*N Board
Squares in N*N Chessboard
Compare two fractions
Form a number divisible by 3 using array digits
Maximum sum difference
Least Prime Factor
Sum of First N Natural Numbers
BBT counter
Maximum Diamonds
Arithmetic Number
Row with Minimum 1s
Trace Path
Print Pattern
Sum of dependencies in a graph
Print Diagonally
Find maximum volume of a cuboid
Queue using stack
Move Last Element to Front of a Linked List
Find pairs with given sum in doubly linked list
Find the final array
Frogs and Jumps
Make Array Elements Equal
Equal Left and Right Subarray Sum
Make the array beautiful
Maximum Identical Bowls
Bus Conductor
Wifi Range
Minimum Number
Minimum Integer
Seating Arrangement
String Mirror
Maximize Sum
Make Palindrome
Binary Modulo
Total Cuts
Bit Magic
Dominant Pairs
Antique Collections
How Many Meets
Binary Array
Geekina and Log
Minimum Thorns
Separate Stone
Split an array into two equal Sum subarrays
Perfect Meeting
Max Splits
Boundary Sum of Matrix
Maximum Product
Find Minimum Cost
Balanced Triplet
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Add 1 to a Linked List Number
Merge 2 sorted linked list in reverse order
Detect Loop in linked list
Check for BST
Merge Sort
Quick Sort
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
Flattening a Linked List
Diagonal Tree Traversal
Stack using Queue
Tree Boundary Traversal
Implement stack using array
Delete a node from BST
LCA in Binary Tree
Lowest Common Ancestor in a BST
Two Stacks in an Array
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Merge K sorted linked lists
Max sum in the configuration
Get Min from Stack
Gas Station
Kth smallest element in a Matrix
Is Binary Tree Heap
Remove loop in Linked List
Interleaved Strings
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Palindrome Linked List
Rat in a Maze
Closest in BST
Merge two BST 's
Count distinct elements in every window
Merge k Sorted Arrays
Find triplets with zero sum
Sort a stack
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Level order traversal
Peak element
Merge Sort for Linked List
Union of Two Linked Lists
Pair Sum in BST
Root to Leaf Paths
Populate Inorder Successor for all nodes
K Sum Paths
Construct Tree from Inorder & Preorder
Isomorphic Trees
Predecessor and Successor
Children Sum in a Binary Tree
Find length of Loop
Deletion in Circular Linked List
Median of BST
Normal BST to Balanced BST
Duplicate Subtrees
Kth Ancestor in a Tree
Construct a Full Binary Tree
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Count set bits
Gray to Binary Conversion
Tower Of Hanoi
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Maximum occured integer
Wave Array
Possible Words From Phone Digits
Rearrange Array Alternately
Maximum Index
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Binary Array Sorting
Count Inversions
Two Repeated Elements
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Triplet Sum in Array
Number of pairs
Merge Without Extra Space
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Rotate by 90 degree
Subarray with 0 sum
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Strings Rotations of Each Other
Postfix Evaluation
Stock span problem
Next Greater Element
K Sized Subarray Maximum
Minimum Cost of ropes
Nearly sorted
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Target Sum Combinations
Minimum Jumps
Stickler Thief
Optimal Strategy For A Game
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Sort according to an Array
Allocate Minimum Pages
Zero Sum Subarrays
Kth Smallest
Shortest Common Supersequence
Nth Catalan Number
Maximize The Cut Segments
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Word Search
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Pascal Triangle
Maximum Index
Flip Bits
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Single Among Doubles
Painting the Fence
Search in Rotated Sorted Array
Max Score from Subarray Mins
Maximum Product Subarray
Row with max 1s
Swapping pairs make sum equal
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Next Smaller Element
Cutting Binary String
Factorials of large numbers
Shuffle integers
k largest elements
Longest Common Substring
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Triplets with Smaller Sum
Rod Cutting
Minimum swaps and K together
LCS of three strings
Longest Palindromic Subsequence
First negative in every window of size k
Maximum difference of zeros and ones in binary string
Minimum sum
Minimize the Heights II
First and Last Occurrences
Minimum number of deletions
Permutations of a String
Friends Pairing Problem
CamelCase Pattern Matching
Sum of Products
Subarrays Product Less than K
Unique Number II
Disarrangement of balls
Minimum number of deletions and insertions
Maximize dot product
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Santa Banta
String Subsequence
Gold Mine Problem
Coin Change (Minimum Coins)
Perfect Sum Problem
Trail of ones
K-Palindrome
Longest subsequence-1
Knapsack with Duplicate Items
nCr
Geek and its Game of Coins
Maximum path sum in matrix
Partition Equal Subset Sum
Subset Sums
Nth Natural Number
Choose and Swap
Find nth root of m
Multiply 2 matrices
Next Permutation
Smaller on Left
Longest Repeating Subsequence
Stream First Non-repeating
Segregate even and odd nodes in a Linked List
Largest square formed in a matrix
Integral Points Inside Triangle
Express as sum of power of natural numbers
Count the paths
Triplets in Sorted Linked List
Subset Sum Problem
BST to greater sum tree
Minimize the Heights I
Anti Diagonal Traversal of Matrix
Remove and Reverse
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
K-th Largest Sum Contiguous Subarray
Maximum Meetings in One Room
Buy Maximum Stocks
Interleave the First Half of the Queue with Second Half
Array Removals
Max Sum without Adjacents 2
Minimum Cost to cut a board into squares
Validate Stack Operations
Largest subtree sum in a tree
Calculate the coefficient
Expression contains redundant bracket or not
Maximum trains for which stoppage can be provided
Next element with greater frequency
Check if all levels of two trees are anagrams or not
Shortest Path in Undirected Graph
Longest subarray with Atmost two distinct integers
Stock Buy and Sell – with Cooldown
Aggressive Cows
Hands of Straights
Maximum Sum Combination
Convert Min Heap to Max Heap
Partitions with Given Difference
Next Greater Element in Circular Array
Knight in Geekland
Shy Geek
Count Special Numbers
Minimum Steps Required
Remove the balls
Unequal Arrays
Job Sequencing Problem
Prefix Suffix String
Nearest smaller tower
Another Coin Change Problem
Geek's Village and Wells
Find Number
Minimize Computers
Powerful Integer
Max Coins
Good Subtrees
Subtree In N-ary Tree
Easy Task
Add Minimum Characters
Maximum subset sum
Palindrome with minimum sum
Internet Connection
Count Total Setbits
Tree Transformation
Construct a Full Binary Tree
Minimum Waiting Time
Help Big Pig
GFG's new Game
Modify Linked List-1
Remove the balls
Flatten BST to sorted list
Minimize the Difference
Find Max Inversions
Maxx Diff
Best Price
Geek's birthday party - II
Round Trip
Subarrays With At Most K Distinct Integers
Linked List Group Reverse
Binary Tree to DLL
Clone List with Next and Random
Min distance between two given nodes of a Binary Tree
Serialize and deserialize a binary tree
Maximum subset XOR
Alien Dictionary
Smallest range in K lists
Max Path Sum 2 Special Nodes
Trapping Rain Water
Histogram Max Rectangular Area
Solve the Sudoku
Median of 2 Sorted Arrays of Different Sizes
Count Pairs in an Array
The Painter's Partition Problem-II
Circle of strings
Print all LCS sequences
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
N-Queen Problem
Phone directory
Maximum sum Rectangle
Huffman Encoding
Find number of closed islands
Stock Buy and Sell – Max 2 Transactions Allowed
Expression Add Operators
Minimize Max Distance to Gas Station
Better String
Redundant Parenthesis
Partition the Array
Divide in Incremental Groups
Cake Distribution Problem
Game Of Subsets
Cut The Edge
Splitting Edges
Longest Increasing Path in Tree
Print Linked List
Find Length of Linked List
Check for Binary String
Size of Binary Tree
Count Leaves in Binary Tree
Queue using Linked List
Queue Using Array
Count zeros in a sorted matrix
Print number pattern
Preorder Traversal
First Occurence
Sum Except First and Last
Palindromic Array
Linked List Insertion At End
Identical Linked Lists
Modular Node
Insert in Middle of Linked List
Pairwise Consecutive Elements
Alternates in an Array
C++ Inheritance introduction
Java Inheritance
Java Abstract keyword
Java Override
Java Classes Introduction
Count Odd and Even
Stack designer
Sum the common elements
Bit Difference
Print 1 To N Without Loop
Array Search
Sorted Array Search
Binary String
Remove common characters and concatenate
Reverse a String
First n Fibonacci
C++ Hello World
Merge and Sort
Sum of Array
Sum of Natural Numbers
Searching in an Array
Sort the Half Sorted
Remove all characters other than alphabets
Value equal to index value
Remove vowels from string
Uncommon characters
Reversing the vowels
Remove Spaces
Elements in the Range
Display longest name
Last index of One
Upper Case Conversion
Largest Element in Array
Rotate Array by One
Ishaan Loves Chocolates
Array Subset
Rotating an Array
C++ Strings
Count of smaller elements
Min and Max in Array
Print first letter of every word in the string
Remove character
Convert String to LowerCase
GCD of two numbers
Addition of Two Numbers
C++ Input / Output
1s Complement
Odd or Even
XOR of all elements
Find position of set bit
Decision Making in Java
Java Hello World
Maximize OR
Strong Numbers
Set all odd bits
LCM And GCD
Mean of an Array
Krishnamurthy number
Strong Numbers
Median of an Array
Factorial
Sum of AP series
Reverse digits
Closest Number
Sum of first n terms
Compound Interest
Print 1 to n without using loops
Count Squares
Middle of Three
Swap two numbers
Height of Heap
Modulus of two double numbers
The Modulo Task
Squares in a Matrix
Addition of two square matrices
Java Iterator
Sorted matrix
Max Min
Search in a 2D Matrix
Arrays (Sum of array)
close
S
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri