Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
rohitsharma_26
Current POTD Streak
STREAK
48
/1483
days
Longest streak/Global longest streak
Institution
Oriental Institute of Science and Technology (OIST) Bhopal
11 Rank
Institute Rank
Organization
TATA CONSULTANCY SERVICE (TCS)
Language Used
C++, Java, Python
Coding Score
1992
Problem Solved
630
Contest Rating
__
Apply for Campus Mantri
126 points
Contributor
126 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
5 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
August
SCHOOL (1)
BASIC (40)
EASY (207)
MEDIUM (331)
HARD (51)
Sorting Elements of an Array by Frequency
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
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
Heap Sort
Merge two sorted linked lists
Sum Tree
Diagonal Tree Traversal
Tree Boundary Traversal
LCA in Binary Tree
Absolute List Sorting
Two Stacks in an Array
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Find kth element of spiral matrix
Gas Station
Kth smallest element in a Matrix
Is Binary Tree Heap
Remove loop in Linked List
Interleaved Strings
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Rat in a Maze Problem - I
Closest in BST
BST with Dead End
Merge k Sorted Arrays
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
Level order traversal
Peak element
Merge Sort for Linked List
Union of Two Linked Lists
Euler circuit and Path
Linked List that is Sorted Alternatingly
K Sum Paths
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Isomorphic Trees
Predecessor and Successor
Normal BST to Balanced BST
Sum of nodes on the longest path
Kth Ancestor in a Tree
ZigZag Tree Traversal
Maximum sum of Non-adjacent nodes
Mother Vertex
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Wave Array
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Binary Array Sorting
Count Inversions
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Merge Without Extra Space
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Rotate by 90 degree
Distance of nearest cell having 1
Subarray with 0 sum
Subarrays with equal 1s and 0s
Longest Consecutive Subsequence
Strings Rotations of Each Other
Case-specific Sorting of Strings
Next Greater Element
K Sized Subarray Maximum
Activity Selection
Fractional Knapsack
Minimum Platforms
Black and White
M-Coloring Problem
Minimum Jumps
Detect Cycle using DSU
Stickler Thief
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Allocate Minimum Pages
Zero Sum Subarrays
Kth Smallest
Shortest Common Supersequence
Container With Most Water
Top K Frequent in Array
Stock Buy and Sell – Multiple Transaction Allowed
Generate Parentheses
Word Search
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Complement
Maximum Sub Array
Pascal Triangle
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Maximize Number of 1's
Count of Subarrays
Single Among Doubles
Pythagorean Triplet
Search in Rotated Sorted Array
Count Full Binary Trees
Max Score from Subarray Mins
Form the Largest Number
Alternate Vowel and Consonant String
Maximum Product Subarray
Row with max 1s
Column name from a given column number
Substrings with K Distinct
Longest Subarray with Sum K
Cutting Binary String
Sum of two large numbers
Factorials of large numbers
k largest elements
Sum of XOR of all pairs
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
Rod Cutting
Minimum swaps and K together
Maximize the sum of selected numbers from a sorted array to make it empty
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
First negative in every window of size k
Build the smallest
Minimize the Heights II
Transform to prime
First and Last Occurrences
A difference of values and indexes
Find patterns
Permutations of a String
Number following a pattern
CamelCase Pattern Matching
Lexicographically smallest string
Subarrays Product Less than K
Unique Number II
Modular Exponentiation
Largest prime factor
3 Divisors
Coin Change (Count Ways)
Perfect Sum Problem
Shreyansh and his bits
Power Set
Knapsack with Duplicate Items
nCr
Partition Equal Subset Sum
Longest Bitonic subsequence
Get Minimum Squares
Array Pair Sum Divisibility Problem
Magic Triplets
Fill up buckets
Matchsticks game
Unique partitions
Akku and Binary Numbers
Stepping Numbers
LCM Triplet
Find nth root of m
Jumping Numbers
A Game of LCM
Count even length
Grouping Of Numbers
Find the Safe Position
Smith Number
Next Permutation
Missing number in matrix
Filling Bucket
How Many X's?
Longest Repeating Subsequence
Decode the string
Total Decoding Messages
Stream First Non-repeating
Maximum Sub-String after at most K changes
2D Hopscotch
Segregate even and odd nodes in a Linked List
Print leaf nodes from preorder traversal of BST
Largest square formed in a matrix
Longest Perfect Piece
Geek and Strings
The Smurfs
Satisfy the equation
Transitive closure of a Graph
Replace O's with X's
Two odd Occuring
Express as sum of power of natural numbers
Find the string in grid
Floyd Warshall
Shortest Source to Destination Path
Base Equivalence
Reverse Spiral Form of Matrix
Geek and Number String
Save Your Life
Hamiltonian Path
Coins of Geekland
Triplets in Sorted Linked List
Jump Game
All Palindromic Partitions
3 Sum Closest
Capacity To Ship Packages Within D Days
Substrings of length k with k-1 distinct elements
Number of Provinces
Prefix match with other strings
Maximum sum leaf to root path
Single valued subtree
BST to max heap
Flatten binary tree to linked list
Overlapping Intervals
Remove and Reverse
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
Maximum Meetings in One Room
Enemy
Max Equal sum of 3 Stacks
Array Removals
Largest subtree sum in a tree
Wine Buying and Selling
Replace every element with the least greater element on its right
Construct Binary Tree from String with bracket representation
Check if all levels of two trees are anagrams or not
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Number Of Enclaves
Eventual Safe States
Alex Travelling
Number Of Islands
Shortest path in Directed Acyclic Graph
Majority Element - More Than n/3
Sum of Beauty of All Substrings
Koko Eating Bananas
Search in Rotated Array 2
Asteroid Collision
Aggressive Cows
Smallest Divisor
Minimum days to make M bouquets
Generate all binary strings
Delete all occurrences of a given key in a doubly linked list
Lemonade Change
Maximum Sum Combination
Floor in BST
GCD Array
Minimize number of Students to be removed
Maximum Value
Shortest Prime Path
Flattening a Linked List
Absolute difference divisible by K
Next Greater Element in Circular Array
Carpet into Box
Minimum X (xor) A
Find minimum number of Laptops required
Geeks And The String
Find the longest string
Maximum Profit By Choosing A Subset Of Intervals
Minimum repeat to make substring
Paint N Houses
Max Sum without Adjacents
BST Downward Traversal
Length of the longest subarray with positive product
Minimum Days
Prime List
Walls Coloring
Geeks Island
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
Distinct Difference
Anagrams in Linked List
Yet another query problem
Geek hates too many 1s
Maximum Length
Remove the balls
Job Sequencing Problem
Shortest XY distance in Grid
BST Maximum Difference
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
Count Total Setbits
Construct a Full Binary Tree
Modify Linked List-1
Find Kth permutation
Fraction pairs with sum 1
Total pairs
Maximum Skill 2
Prime Inversions
Maximize the minimum difference between k elements
Reverse 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
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Check for BST
Right View of Binary Tree
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
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
Stack using Linked List
BFS of graph
Identical Trees
Square Root
Insertion at doubly linked list
Lowest Common Ancestor in a BST
Binary Search
Remove Duplicates Sorted Array
Level Order Line by Line
Binary Tree to BST
Unique rows in boolean matrix
Delete in a Singly Linked List
Kth largest element in BST
Array Duplicates
Three way partitioning
Inorder Successor in BST
Intersection of Two Linked Lists
Reverse Using Stack
Find length of Loop
Median of BST
Leaf under budget
Queue Reversal
Reverse first K of a Queue
Brothers From Different Roots
Delete Mid of a Stack
For Loop- primeCheck - Java
Predict the Column
Frequency Game
Power of 2
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Matrix Boundary Traversal
Anagram
String Rotated by 2 Places
Isomorphic Strings
Reverse Words
Panagram Checking
Non Repeating Character
Parenthesis Checker
Minimum Cost of ropes
N meetings in one room
Count number of hops
First Repeating Element
Union of Arrays with Duplicates
Check Equal Arrays
Missing in Array
Roman Number to Integer
Missing And Repeating
Adding Ones
Common in 3 Sorted Arrays
Search in a Row-Column sorted matrix
Move All Zeroes to End
Minimize the sum of product
Missing number
Chocolate Distribution Problem
Alternate Positive Negative
Second Largest
Convert array into Zig-Zag fashion
Rotate Bits
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Reversing the equation
Convert an array to reduced form
Check if array is sorted
Longest Common Prefix of Strings
Two sum -Pairs with 0 Sum
Play With OR
At Least K Occurrences
Find the closest pair from two arrays
Merge two binary Max heaps
Palindrome String
Fitting The Array
K-th missing element
Balanced string
Shop in Candy Store
Is Binary Number Multiple of 3
Number of 1 Bits
Armstrong Numbers
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Copy Set Bits in Range
Count Digits
Palindrome
Prime Number
Shortest path from 1 to n
Sum 1 to n Divisors
The Bit Game
Minimum number of Coins
Number Of Open Doors
Perfect Numbers
Factorials Less than or Equal to n
Largest number possible
Check if it is possible to survive on Island
Good Numbers
Least Prime Factor
Sum of First N Natural Numbers
Tom and Jerry
Maximum Diamonds
Arithmetic Number
Surround the 1's
Help Ishaan
Trace Path
Inorder Traversal and BST
Sequence Fun
Print Pattern
Primes sum
Chicks in a Zoo
Maximum Sum LCM
Check if it is possible to convert one string into another with given constraints
Earthquake and the Paint Shop
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Modified Numbers and Queries
Print Diagonally
Search insert position of K in a sorted array
Maximum number of 2X2 squares
Count the Substrings
Move Last Element to Front of a Linked List
Find pairs with given sum in doubly linked list
Print N to 1 without loop
Print GFG n times
Largest odd number in string
Maximum Nesting Depth of the Parentheses
Outermost Parentheses
Maximum Depth Of Binary Tree
Search in Linked List
Remove duplicates from a sorted doubly linked list
Array to Linked List
Introduction to Doubly Linked List
Minimize the sum
Parent of Max GCD Siblings in a Binary Tree
Find the first node of loop in linked list
Maximum Weight Node
Min operations
Last cell in a Matrix
Balloon Everywhere
Reverse both parts
Cutting Rectangles
Make Array Elements Equal
Equal Left and Right Subarray Sum
Make the array beautiful
Remainder on dividing by 11
Find Bots on Geeklandster
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 Integer
String Mirror
Geekina loves order
Binary Modulo
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Special Array
Wave Array
Ticket Counter
Unique Number of Occurrences
Unique Positions
Maximum Money
Maximum Number
Two Swaps
Lower Case to Upper Case
Lead Engineer
Organic Tree
Find Bots on Geeklandster
Find Bits
Maximising Cardboards
Linked List Group Reverse
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Max rectangle
LRU Cache
AVL Tree Deletion
Nodes at given distance in binary tree
String Permutations
Trapping Rain Water
Solve the Sudoku
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
Merge Without Extra Space
Next Smallest Palindrome
Number of distinct subsequences
Minimum sum partition
Number Formation
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Median in a row-wise sorted Matrix
Phone directory
Huffman Encoding
Scrambled String
Shortest Path by Removing K walls
Find the String
Maximum Number of Toys
Articulation Point - I
Min Chars to Add for Palindrome
Expression Add Operators
Minimize Max Distance to Gas Station
Better String
Count Lucky Permutations
Count the Substring
Select Nodes
Largest Sum Cycle
Fixing Two swapped nodes of a BST
Shortest Path Using Atmost One Curved Edge
Walls Coloring II
Partition the Array
Count Binary Strings With No Consecutive 1s
Divide in Incremental Groups
Maximum Number of coins
Median of the Subarrays
Special Digits
Cake Distribution Problem
Min Time
Game Of Subsets
Light Junctions
Making A Large Island
Find Length of Linked List
Size of Binary Tree
Postorder Traversal
Preorder Traversal
Palindromic Array
Linked List Insertion At End
Alternates in an Array
Print 1 To N Without Loop
Array Search
Sorted Array Search
Reverse a String
First n Fibonacci
Change the string
Value equal to index value
Remove vowels from string
Uncommon characters
Quick Left Rotation
The Penalty Shootout
Good String
String with numbers at its end
Largest Element in Array
Rotate Array by One
Array Subset
Rotating an Array
Min and Max in Array
GCD of two numbers
Decision Making in Java
LCM And GCD
Strong Numbers
Median of an Array
Sum of Digit is Palindrome or not
Sum of first n terms
Count Squares
Middle of Three
Buy chocolates and save N rupees
Sorted matrix
Max Min
Data Type
Naughty Geek
Who has the majority?
Reverse an Array
close
R
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 !