Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
avantika_agarwal
Current POTD Streak
STREAK
100
/1576
days
Longest streak/Global longest streak
Institution
Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar
Language Used
C++, C, Java, Python
Coding Score
1480
Problem Solved
908
Contest Rating
__
Apply for Campus Mantri
206 points
Contributor
206 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
28 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
August
September
October
November
SCHOOL (2)
BASIC (237)
EASY (346)
MEDIUM (279)
HARD (44)
Reverse a linked list
Node at a given index in linked list
Remove duplicates from an unsorted linked list
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Selection Sort
Right View of Binary Tree
Mirror Tree
Maximum Width of Tree
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
Transform to Sum Tree
Find Transition Point
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Postorder Traversal
Level Order in spiral form
DFS of Graph
Stack using Linked List
Insert a node in a BST
BFS of graph
Identical Trees
Square Root
Nodes without a Sibling
Insertion at doubly linked list
Binary Search
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
Third largest element
Search a node in BST
Josephus problem
Count Occurrence of digit k
Minimum distance in an Array
Array Duplicates
Three way partitioning
Index of an Extra Element
Minimum element in BST
More than n/k Occurrences
Find the Sum of Last N nodes of the Linked List
Maximum Pairwise Computed Value
Queue Reversal
Reverse first K of a Queue
Delete Mid of a Stack
Product of an Array
C++ Multi-level inheritance
C++ Template
The New Line
Data Types
Learn to Comment
Swap values using References
Swap the objects
Two Dimensional World
Find the Frequency
Back to Front
Reverse an Array
Get min at pop
Deque Implementations
Frequency Game
Multiset Operations
Multimap Operations
Max and Second Max
Hashing for pair - 1
Implement Stack Using Array
Fibonacci Numbers - Top Down DP
Fibonacci Numbers - Bottom Up DP
Coin Change - Number of ways
Kadane's Algorithm - I
Kadane's Algorithm - II
First Set Bit
Rightmost different bit
Check K-th Bit
Factorial Of Number
Digits In Factorial
GP Term
Primality Test
Longest Consecutive 1's
Exactly 3 Divisors
Mean And Median of Array
Power of 2
Swap odd and even bits
Minimum adjacent difference in a circular array
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Count 1's in binary array
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Roof Top
Intersection of two sorted arrays
Closet 0s 1s and 2s
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Interchanging the rows of a Matrix
Reversing the columns of a Matrix
Matrix Boundary Traversal
Exchange matrix columns
Separate chaining in Hashing
Naive Pattern Search
Linear Probing in Hashing
Quadratic Probing in Hashing
Check if a string is Isogram or not
Count Non-Repeated Elements
Print Non-Repeated Elements
Anagram
Winner of an election
String Rotated by 2 Places
Isomorphic Strings
Most Frequent Character
The Modified String
Reverse Words
Sum of numbers in string
Minimum indexed character
Repeating Character
Non Repeating Character
Removing consecutive duplicates
Removing consecutive duplicates - 2
Parenthesis Checker
Generate Binary Numbers
K largest elements
N meetings in one room
Largest number with given sum
Count Digits in a Number
Digital Root
Power Set Using Recursion
Union-Find
Number of Connected Components
Count ways to N'th Stair
Count number of hops
Recursively Sum N Numbers
Factorial Using Recursion
Uppercase to Lowercase
Corresponding pair
Vector min_element
Vector Accumulate
Find element in Set using Count
Rotate vector by K places
Check if Arrays are Permutations
Pattern searching
Merge Sorted Arrays Using Minheap
Deque deletion
Rotate Deque By K
Elements Less Than K
Increasing Roll And Marks
Print Different Characters In Sorted Manner
Maximum Among Left
First Repeating Element
Unique Substrings
Union of Arrays with Duplicates
Common Elements
Reach a given score
New Registration System
Check Equal Arrays
Maximium Sum
Numbers containing 1, 2 and 3
Positive Negative Pair
Sum Unique Elements
Search Query for Strings
Count Elements Greater Than X
Count Smaller Than X
Find Immediate Smaller Than X
Lexicographically Smallest String
Array Update At Index
Array Delete And Shift
Is Array Sorted
Find Immediate Greater Than X
Missing in Array
Reverse The Array
Find nCr
String Validation
Insert In Sorted Linked List
Delete Tail of Linked List
Delete Head of Linked List
Linked List Delete at Position
Is Linked List Sorted
Join Two Linked Lists
Circular Linked List Head Insert
Circular Linked List Tail Insert
Delete Tail of Circular Linked List
Circular Linked List Delete at Position
Delete Tail of Doubly Linked List
Delete Head of Doubly Linked List
Is The Doubly Linked List Circular
Compare Circular Doubly Linked Lists
Find Middle of Circular Doubly Linked List
Intersection of Arrays with Distinct
Missing And Repeating
Find Index
Non-Repeating Element
Count the elements
Find Kth Rotation
Move All Zeroes to End
String Duplicates Removal
Chocolate Distribution Problem
Count the triplets
Find Pair Given Difference
Fascinating Number
Bitonic Point
Find Duplicate Element
Left most and right most index
Sort Array II
Alternate Positive Negative
The Thief Problem
Remove Duplicates
Compete the skills
Rahul lucky-unlucky
Facing the sun
Greater on right side
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Find all pairs with a given sum
Number of occurrence
Average of Prefix
Find the left over element
Reversing the equation
Convert an array to reduced form
Check if array is sorted
Sum of distinct elements for a limited range
Two sum -Pairs with 0 Sum
Inverse Permutation
Play With OR
At Least K Occurrences
Ishaan and Sticks
Merging two unsorted arrays in sorted order
Count the Zeros
Java Arrays | Set 1
First and Second Smallests
Palindrome String
Number of 1 Bits
Midori and chocolates
Rearrange the array
Nth Fibonacci Number
Prime Number
The FizzBuzz Program
Count numbers containing 4
Check Prime
Greatest of Three
AP Term
Leap Year
Least Prime Factor
Trace Path
Print Square Wall Using Nested Loops
Right Angle Triangle
Print Alphabets
Array Traversal Reverse
Sum All Array Elements
Decrement Array Values
Design a class
Constructor Overloading
Addition
Day before N days
Even Odd Game
First Digit of a Number
Calculator
Prime Factorization
Count Digits
Find one extra character
Design a Data Structure with insert/replace/print Operation
Sort one array according to another array
Type Conversion
Chocolate Distribution Problem
Average
Swap the objects-Double pointers
Lambda Expression in C++
Incrementing a variable
Add two numbers
Sort in Descending
Add two complex numbers
Geometric Progression Term
Permutations of a String
Return Size
Kth call
Add - Auto Keyword
Convert to Hexadecimal
Global variable
Binary to Decimal
Scientific Format
Find Volume
GetLine 1
CPP Substring
GetLine 2
Address Operator
Decimal number to binary number
Type Inference
Sum - Default Arguments
Minimum Difference in an Array
Check if a String is Subsequence of Other
First and last occurrences of x
Count the Substrings
Insert an Element at the Bottom of a Stack
Make sum even
Stock Buy and Sell – Max one Transaction Allowed
Maximum Depth Of Binary Tree
Geek left with No Food
Transform to Sum Tree
Reverse both parts
Cutting Rectangles
Frogs and Jumps
Make Array Elements Equal
Equal Left and Right Subarray Sum
Make the array beautiful
Remainder on dividing by 11
Is it Fibonacci
Taxi Booking
Max Level Sum in Binary Tree
Binary matrix having maximum number of 1s
Number of Subarrays of 0's
Maximum Identical Bowls
Bus Conductor
Wifi Range
Minimum Number
Minimum Integer
Seating Arrangement
String Mirror
Make Palindrome
Binary Modulo
Total Cuts
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Special Array
Wave Array
The Conversion To One
Odd The Even Out
Greater Permutations
Are They Anagrams?
Longest Consecutive 1s
CPP - Digital root
CPP - Check Divisibility
CPP - Design Calculator Class
CPP - Multiply
CPP - Separate 0s and 1s in vector
CPP - Binary String
Add Number Linked Lists
Detect Loop in linked list
Count BST nodes that lie in a given range
Check for BST
Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Delete without head pointer
Intersection in Y Shaped Lists
Diameter of a Binary Tree
Merge two sorted linked lists
Construct Binary Tree from Parent Array
Connect Nodes of Levels
Diagonal Tree Traversal
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Lowest Common Ancestor in a BST
Max sum path in two arrays
The Celebrity Problem
Largest subarray with 0 sum
Topological Sort
Vertical Tree Traversal
Find the number of islands
Linked List to Binary Tree
Check if subtree
Dijkstra Algorithm
Minimum Swaps to Sort
Palindrome Linked List
Strongly Connected
Rat in a Maze
Max sum subarray by removing at most one element
Closest in BST
Merge two BST 's
Count distinct elements in every window
k-Anagram
Bridge edge in a graph
Find triplets with zero sum
Top View of Binary Tree
Find Common Nodes in two BSTs
Level order traversal
Peak element
Polynomial Addition
Merge Sort for Linked List
Binary Tree to CDLL
Counting elements in two arrays
Foldable Binary Tree
Count the nodes at distance K from leaf
Insert in Sorted way in a Sorted DLL
Maximum path sum
Predecessor and Successor
Children Sum in a Binary Tree
Find length of Loop
Convert Level Order Traversal to BST
ZigZag Tree Traversal
Count Number of SubTrees
Vertical Width of a Binary Tree
C++ Generic sort
Coin Change - Minimum number of coins
Pairwise swap of nodes in Linked List
Swap Kth nodes from ends
Maximum Non-Adjacent Nodes Sum
Mother Vertex
Rabin Karp - Pattern Searching
Floor in BST
Ceil in BST
Pair Sum in BST
Count set bits
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Maximum occured integer
Wave Array
Possible Words From Phone Digits
Rotate and delete
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Rotate Array
Check if array is sorted and rotated
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Unique BST's
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Sort by Absolute Difference
Triplet Sum in Array
Number of pairs
Merge Without Extra Space
Merge three sorted arrays
Closer to sort
Possible paths between 2 vertices
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Rotate by 90 degree
Determinant of a 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
Strings Rotations of Each Other
Case-specific Sorting of Strings
Lexicographic Rank Of A String
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
Kth largest element
Kth smallest element
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Rat Maze With Multiple Jumps
Black and White
Target Sum Combinations
Unique Subsets
M-Coloring Problem
Minimum Jumps
Detect Cycle using DSU
Minimum Spanning Tree using Kruskal
Ways to write n as sum
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
nCr
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Tie Breaker
Forward list deletion in C++
Lexicographical Rank Of String
Minimum Vertical Sum
Range Sum Queries
Lucky Numbers
Prime At Prime Index
Range Min Max Queries
Subarray sum
Range Longest Correct Bracket Subsequence Queries
Range GCD Queries
Range LCM Queries
Number of Unique Paths
Minimum number of jumps
Minimum Step Destination
Equal Sum Partition
Sort according to an Array
Allocate Minimum Pages
Shopkeeper Profit
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Nth number made of prime digits
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Smaller on Right
Count only Repeated
Camel Case
Renaming Cities
Longest Subarray Of Evens And Odds
Maximum Sum Subarray
Maximize The Cut Segments
Word Search
Maximum Water Between Two Buildings
Sort 0s, 1s and 2s
Maximum Index
Maximum Product Subarray
Longest subarray with sum divisible by K
Sort in specific order
Longest Subarray with Sum K
Next Smaller Element
Cutting Binary String
k largest elements
Arranging the array
Rod Cutting
Find the number of subarrays having even sum
Minimize the Heights II
First and Last Occurrences
Permutations of a String
CamelCase Pattern Matching
Subarrays Product Less than K
Largest prime factor
Santa Banta
Next Prime Number
Find distinct elements
Number of ways
Brain Game
How Many X's?
Stream First Non-repeating
Josephus Circle using List
Rohan's Love for Matrix
Express as sum of power of natural numbers
Shortest Source to Destination Path
Function Template
Sort for Singly Linked List
Anti Diagonal Traversal of Matrix
Remove and Reverse
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
Max Equal sum of 3 Stacks
Wine Buying and Selling
Shortest path in Directed Acyclic Graph
Hands of Straights
Length of the longest subarray with positive product
Count number of free cell
Minimum Days
Apple Sequences
Connect Nodes at Same Level
Unique Paths in a Grid
Valid Compressed String
Fill the Matrix
Number of Good Components
Optimal Array
Best Node
Update Queries
Maximum Intersecting Lines
String rp or pr
Knight in Geekland
Shy Geek
Count Special Numbers
Minimum Steps Required
Count Cyclic Paths
Maximum Triplet product
Second smallest number
Special Palindrome Substrings
Maximum Possible Value
Distinct Difference
Anagrams in Linked List
Yet another query problem
Geek hates too many 1s
Maximum Length
Remove the balls
Unequal Arrays
Job Sequencing Problem
Bheem Wants Ladoos
Prefix Suffix String
Smaller Sum
Shortest XY distance in Grid
BST Maximum Difference
Nearest smaller tower
Another Coin Change Problem
Geek's Village and Wells
Find Number
Powerful Integer
Max Coins
Good Subtrees
Subtree In N-ary Tree
Easy Task
Add Minimum Characters
Maximum subset sum
Palindrome with minimum sum
Count Total Setbits
Tree Transformation
Construct a Full Binary Tree
Modify Linked List-1
Find Kth permutation
Fraction pairs with sum 1
Get the Shadow
Last Fairy Standing
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
Replace all 0's with 5
Replace all 0's with 5
Count zeros in a sorted matrix
Preorder Traversal
First Occurence
Palindromic Array
Linked List Insertion At End
Increment a variable
Is Linked List Length Even?
Identical Linked Lists
Sum of Binary Tree
Insert in Middle of Linked List
Count Non-Leaf Nodes in Tree
C++ STL List
C++ Classes Introduction
Alternates in an Array
C++ Inheritance introduction
C++ Call by reference
Start Coding
Count Odd and Even
Sort and Reverse Vector
Front to Back
Stack designer
Queue Push & Pop
Parties and seats
Set Operations
Map Operations
Who has the majority?
Strongest Neighbour
Array insert at index
Array insert at end
Struct area
Operations on Stack
Operations on Queue
Absolute Value
Convert Celsius To Fahrenheit
Quadratic Equation Roots
Bit Difference
Number is sparse or not
Print 1 To N Without Loop
Array Search
Sorted Array Search
Left Index
Adding two matrices
Multiply the matrices
Binary String
Remove common characters and concatenate
Sum of Digits of a Number
Power Using Recursion
Fibonacci Using Recursion
Addition Under Modulo
Multiplication Under Modulo
Print Array Elements Using Recursion
The Sequence
GCD Euclid
Insert In Stack
Reverse Array Using Stack
Preorder in BST
Inorder in BST
Postorder in BST
Levelorder in BST
Length of String
Count Distinct Vowels in String
Count Words in String
Reverse a String
Lowercase to Upercase
Panagram Checking
Missing Characters in Panagram
Pairing elements
Make pair
Vector insertion
Sort Vector of Pairs
Forward List Insert
Insertion in deque
Maximize Number of Toys
Distinct Sorted
Sorted Frequency
Vector max_element
Search set element using find.
Vector fill
Search element in Vector
upper and lower bounds of an element
Heapify the vector
Permutations of string
Remove from vector
Sort and reverse
Set bits in N
Vector Erase and Clear
Forward List Erase After
Deque Traversal
Unordered Set Hash Function
Unordered Set Size Function
Unordered Set Swap Function
Unordered Set Find Duplicate
Queue Traversal
Vector Shrink To Fit
Vector Sum
Keypad typing
First n Fibonacci
Get Element At Index
Maximum and Minimum In Array
Print Linked List
Sum The Nodes of Linked List
Maximum And Minimum In Linked List
Search In Linked List
Linked List Insertion At Position
Display Circular Linked List
Length of Circular Linked List
Display Doubly Linked List
Doubly Linked List Head Insert
Doubly Linked List Tail Insert
Display Circular Doubly Linked List
Implement Dequeue Using Linked List
C++ Hello World
Palindrome Array
Sum of Array
Sum of Natural Numbers
Searching in an Array
Print Elements of Array
Elements before which no element is bigger
At least two greater elements
Sort a String
Value equal to index value
Check String
Remove characters from alphanumeric string
Remove vowels from string
Reverse sub array
Sum of distinct elements
Count type of Characters
Swap kth elements
Lower case to upper case
Smaller and Larger
Remove Spaces
First 1 in a Sorted Binary Array
Missing number in shuffled array
Max and Min Product from 2 Arrays
Display longest name
Find element at a given Index
Upper Case Conversion
Largest Element in Array
Rotate Array by One
Game with nos
Split Strings
Array Subset
C++ Strings
Count of smaller elements
Min and Max in Array
Positive and negative elements
Print first letter of every word in the string
Remove character
Convert String to LowerCase
Delete alternate characters
Reverse a String
Magical String[Duplicate Problem]
GCD of two numbers
1s Complement
Decision Making in Java
House Robber
The If Statement
Median of an Array
Factorial
Binary number to decimal number
The Else Statement
Input Integer
Print Statement
Print With Space
C++ 2-D Arrays | Set-1
Print With Separator
Swap The Numbers
Arithmetic Operators
Bitwise Operators
Print Without Space
Matching Pair
Evaluate Formulae
Table Difference
Print Square
Sum of N Numbers
Factorial
Divisor
Function With Return Value
GCD
For Loop - 2
While Loop
Height of Heap
Repetitive Addition Of Digits
Half N by M
Make a Distinct Digit Array
Minimum difference pair
Sum of product of x and y with floor(n/x) = y
The Else if Statement
For Loop - 1
Print Square wall
Inverted Right AngleTriangle
Reverse String
Fibonacci Number
Function With No Arguments
Java Switch Case statement
Function With Arguments
Find Pattern
Slice The String
Array Traversal
Constructor
Vowels in String
Bitwise Right Shift
Last Digit of a number
Switch Statement
LCM
Print GeeksForGeeks
Search vector element using find.
Sorted matrix
Logical Operators
Self referential structures
Implement Union
Print GeeksForGeeks with quotes
Print Boolean value
Size of an Array
Compare two numbers
Find if +ve, -ve or 0
Pattern 11
Pattern 13
Naughty Geek
Rotation
CPP - Have fun with XOR
CPP - Product of array elements
CPP - Search in an array
CPP - Have Fun With OR
CPP - Sum of upper and lower triangles
Resize a String
CPP - Isogram
Time Travel
Binary Tree to DLL
Clone List with Next and Random
Serialize and deserialize a binary tree
LRU Cache
Fixing Two nodes of a BST
Huffman Decoding
Pattern Search KMP
Trapping Rain Water
Max Circular Subarray Sum
Pattern Search
Smallest window containing all characters
Histogram Max Rectangular Area
Max of min for every window size
Solve the Sudoku
Strongly connected component (Tarjans's Algo)
Largest Sum Contiguous Subarray in Range
First Greater Height
Minimum Cost Path
Median of Two sorted arrays
Contiguous Elements XOR
Burning Tree
Count Smaller elements
Strictly Increasing Array
Median in a row-wise sorted Matrix
Word Break - 2
Minimum X (xor) A
Find number of closed islands
Count the number of subarrays
Expression Add Operators
Fixing Two swapped nodes of a BST
Shortest Path Using Atmost One Curved Edge
Avoid Explosion
Walls Coloring II
Redundant Parenthesis
Partition the Array
Count Binary Strings With No Consecutive 1s
Divide in Incremental Groups
Max min Height
Maximum Number of coins
Median of the Subarrays
Minimum BST Sum Subtree
Special Digits
Cake Distribution Problem
Game Of Subsets
Search in a 2D Matrix
Arrays (Sum of array)
close
A
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri