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
subhamgoyal2014
Current POTD Streak
STREAK
106
/1476
days
Longest streak/Global longest streak
Institution
Alphagrep Securities
Language Used
C++, Java, Python, Javascript
Coding Score
2205
Problem Solved
678
Contest Rating
-
Apply for Campus Mantri
33 points
Contributor
33 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
2 submissions in current year
Current
2024
2023
2022
2021
2020
2019
January
February
March
April
May
June
July
August
SCHOOL (0)
BASIC (14)
EASY (192)
MEDIUM (388)
HARD (84)
Minimum Moves
Yet Another Minimization Problem
K-Increasing Subsequences
Age Difference
Finding the Coolest
Age Difference
Reverse alternate nodes in Link List
Add 1 to a Linked List Number
Quick Sort on Linked List
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
Merge Sort
Merge two sorted linked lists
Add all greater values to every node in a BST
Diagonal Tree Traversal
Maximum difference between node and its ancestor
Absolute List Sorting
Binary Heap Operations
Merge K sorted linked lists
Find the number of islands
Generate IP Addresses
Check if subtree
Dijkstra Algorithm
Largest BST
Count Palindromic Subsequences
Minimum Swaps to Sort
Bipartite Graph
Longest Palindrome in Linked List
Bridge edge in a graph
Duplicate Subtree
k-th Smallest in BST
Find Common Nodes in two BSTs
Polynomial Addition
Delete nodes greater than k
Complete Binary Tree
Counting elements in two arrays
Construct expression tree
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Isomorphic Trees
Leaves to DLL
Swap Kth nodes from ends
Maximum sum of Non-adjacent nodes
Mother Vertex
Ceil in BST
Rearrange Array Alternately
Binary Array Sorting
Possible paths between 2 vertices
Determinant of a Matrix
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray with 0 sum
Case-specific Sorting of Strings
Postfix Evaluation
K Sized Subarray Maximum
Nearly sorted
Black and White
Unique Subsets
M-Coloring Problem
Egg Dropping Puzzle
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Steps by Knight
Count subsequences of type a^i, b^j, c^k
Container With Most Water
Rotate by 90 degree
4 Sum - All Quadruples
Excel Sheet | Part - 1
Sort 0s, 1s and 2s
Maximum Sub Array
Number of subarrays with maximum values in given range
Flip Bits
Equivalent Sub-Arrays
Consecutive 1's not allowed
Count of Subarrays
Painting the Fence
Smallest number with at least n trailing zeroes in factorial
Count Full Binary Trees
Maximize The Array
Alternate Vowel and Consonant String
Add Binary Strings
Super Primes
Longest subarray with sum divisible by K
Substrings with K Distinct
Form a palindrome
Longest Subarray with Sum K
Transform String
Number of positive integral solutions
Cutting Binary String
Sum of two large numbers
Max Sum without Adjacents
Remove leading zeros from an IP address
Magnet Array Problem
Smallest distinct window
Integer to Words
String formation from substring
Maximize the sum of selected numbers from a sorted array to make it empty
Smallest Absolute Difference
LCS of three strings
Build the smallest
Reaching the heights
Smaller on Left
A difference of values and indexes
Maximum Product of Increasing Subsequence of Size 3
Nine Divisors
Valid Substring
Find patterns
Previous number in one swap
Friends Pairing Problem
CamelCase Pattern Matching
Lexicographically smallest string
Game of XOR
3 Divisors
Modified Game of Nim
Gold Mine Problem
Coin Change (Minimum Coins)
Power Of 2 and Subsequences
Kth Smallest Factor
Firing employees
Shreyansh and his bits
Number of ways
Subsets with XOR value
XOR Game
Longest Bitonic subsequence
Min Coin
Handshakes
Count possible ways to construct buildings
Count digit groupings of a number
Probability of Knight
Array Pair Sum Divisibility Problem
Magic Triplets
Brain Game
Fill up buckets
Killing Spree
Unique partitions
N Digit numbers with digits in increasing order
Akku and Binary Numbers
Knight Walk
Stepping Numbers
Permutation with Spaces
Choose and Swap
LCM Triplet
Return two prime numbers
Fact Digit Sum
Find Prime numbers in a range
Jumping Numbers
A Game of LCM
Party in Town
Count even length
Grouping Of Numbers
Find the Safe Position
Next Permutation
Missing number in matrix
Smaller on Left
Geek and knots
Filling Bucket
How Many X's?
Matrix Exponentiation
Composite and Prime
Finding Profession
Decode the string
Total Decoding Messages
Maximum Sub-String after at most K changes
2D Hopscotch
Villain Con
Print leaf nodes from preorder traversal of BST
Tricky Subset Problem
Longest Perfect Piece
Rat Maze With Multiple Jumps
Geek and Strings
Pairs of Non Coinciding Points
The Smurfs
Satisfy the equation
7 Segment Display
Product of Primes
Eulerian Path in an Undirected Graph
nCr mod M | Part 2
Two odd Occuring
Find all distinct subset (or subsequence) sums
Check Mirror in N-ary tree
Queries on Strings
Special Matrix
Queries on a Matrix
Broken blocks
Express as sum of power of natural numbers
Find the string in grid
Shortest Uncommon Subsequence
Nodes at even distance
Biconnected Graph
Help a Thief!!!
Count the paths
Floyd Warshall
Negative weight cycle
Form coils in a matrix
Techfest and the Queue
Shortest Path between Cities
Moving on grid
Height Using Parent Array
Reverse Spiral Form of Matrix
Save Your Life
Hamiltonian Path
Recursively Remove Adjacent Duplicates
Theft at World Bank
Coins of Geekland
Transfiguration
Spidey Sense
Escape the Forbidden Forest
Jump Game
Iterative Postorder
Form a palindrome
Bellman-Ford
Partition a Linked List around a given value
Capacity To Ship Packages Within D Days
Coin Piles
Remove K Digits
Substrings of length k with k-1 distinct elements
Clone a stack without using extra space
Count pairs in array divisible by K
Number of Provinces
Binary Matrix with at most K 1s
Maximum sum leaf to root path
Maximum GCD of siblings of a binary tree
Single valued subtree
BST to max heap
BST to greater sum tree
Find rectangle with corners as 1
Shortest Prime Path
Cousins of a given node
Sort for Singly Linked List
Subsets
Flatten binary tree to linked list
Rank The Permutations
Anti Diagonal Traversal of Matrix
Submatrix of size K
IPL 2021 - Match Day 2
Unique Number III
Course Schedule
Find and Replace in String
Minimum times A has to be repeated such that B is a substring of it
Bitwise AND of the Array
Is it possible to sort the array?
Remove and Reverse
Maximum Profit
Maximum number of events that can be attended
Longest Possible Route in a Matrix with Hurdles
Find k-th smallest element in given n ranges
Even Swap
Farthest number
Robots
Hit most Balloons
Maximum Meetings in One Room
Enemy
Buy Maximum Stocks
Concatenate Equal to Target
Exactly one swap
Maximum Winning score
Compute Before Matrix
Levels Of Game
Smallest sum contiguous subarray
Array Removals
Minimum Cost to cut a board into squares
Stack Permutations
Largest subtree sum in a tree
Wine Buying and Selling
Replace every element with the least greater element on its right
Special Keyboard 2
Maximum selections
LCP
Next element with greater frequency
Sum of nodes within k distance from target
Minimum increment/decrement to make array non-Increasing
Minimum Swaps
Construct Binary Tree from String with bracket representation
Check if all levels of two trees are anagrams or not
Palindrome with minimum sum
Beautiful Arrays
Search in a Matrix
Maximum Profit By Choosing A Subset Of Intervals
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Number Of Enclaves
Minimum time to empty the array
Alex Travelling
Number Of Islands
Merging Details
Number of Ways to Arrive at Destination
Sum of Beauty of All Substrings
Asteroid Collision
Aggressive Cows
Hands of Straights
Maximum Sum Combination
Floor in BST
Volcano
GCD Array
Minimize number of Students to be removed
Maximum Value
Shortest Prime Path
Flattening a Linked List
Absolute difference divisible by K
Make array elements unique
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
Airlines and Railways
Minimum repeat to make substring
Paint N Houses
Max Sum without Adjacents
Intersection Point in Y Shaped Linked Lists
BST Downward Traversal
Length of the longest subarray with positive product
Count number of free cell
Maximum Bipartite Matching
Minimum Days
Walls Coloring
Water the plants
Geeks Island
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
Good Stones
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
Right View Sum
Hannah and her Cookie Box
Job Sequencing Problem
Volcano
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
Distinct Elements
Airlines and Railways
Count Total Setbits
Tree Transformation
Construct a Full Binary Tree
Help Big Pig
Modify Linked List-1
GSB Interview
Minimum Number Of Swaps
Count Valid Pairs
Airlines and Railways
Submatrix of size K
Airline Problem
Special Graph
Easy Problem
Authenticate Spiders
Minimum XOR
Two Strings
3 - Numbers
AND She Said "YES"
Class Test
Nearest Zero
Class Test
Nearest Zero
Delete nodes having greater value on right
Height of Binary Tree
Balanced Tree Check
Kth from End of Linked List
Queue using two Stacks
Insert a node in a BST
Josephus problem
Delete in a Singly Linked List
Kth largest element in BST
Insert in a Sorted List
More than n/k Occurrences
Reverse Using Stack
Next Right Node
Find length of Loop
Reverse first K of a Queue
Move all zeros to the front of the linked list
Get min at pop
Frequency Game
Rightmost different bit
Equilibrium Point
Minimum Number in a sorted rotated array
Print adjacency list
Reverse Words
Minimum Cost of ropes
Largest number with given sum
Union-Find
Count number of hops
Positive Negative Pair
Missing And Repeating
Sort by Set Bit Count
Maximize sum after K negations
Sum of elements between k1'th and k2'th smallest elements
Min sum formed by digits
Alternate Positive Negative
Rearrange a string
Number of occurrence
Convert an array to reduced form
String's Count
Longest Common Prefix of Strings
Hungry Pizza Lovers
Find the closest pair from two arrays
Maximum sum of increasing order elements from n arrays
Merge two binary Max heaps
Palindrome String
Maximum average subarray
Smallest greater elements in whole array
Fitting The Array
Balanced string
Shop in Candy Store
Partition a number into two divisible parts
Encrypt the string - 2
Adding Array Elements
Change Bits
The Bit Game
Swap bits
Minimum number of Coins
Number Of Open Doors
Break a number
Nth item through sum
Smallest number with sum of digits as N and divisible by 10^N
Tom and Jerry
Arithmetic Number
Surround the 1's
Help Ishaan
Trace Path
Sequence Fun
Help the Old Man!!!
Primes sum
Print the pattern
Chicks in a Zoo
Maximum Sum LCM
K-Ary Tree
Check if it is possible to convert one string into another with given constraints
Minimum Exchange
Earthquake and the Paint Shop
Array to BST
Ball coloring
Rearrange Geek and his Classmates
Modified Numbers and Queries
Fraction Trouble
Sum of k smallest elements in BST
Print Diagonally
Gadgets of Doraland
Sum of two numbers without using arithmetic operators
Even and Odd
Search insert position of K in a sorted array
Largest value in each level
Two Swaps
Maximum Inversions
License Key Formatting
Find Optimally 1
Count the Substrings
Find Pairs
High Frequency
Find all possible paths from top to bottom
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Smallest window containing 0, 1 and 2
Move Last Element to Front of a Linked List
Can Make Triangle
Matrix Operations
Find pairs with given sum in doubly linked list
Assign Tasks
Count Pairs
Good String
Prefix Min
Distinct Operations
Minimum Difference
Triangle and Square
Triplet Gcd
Minimum product
Equal strings
Seating Arrangement
String Matching
Geek and Buildings
Problem Setting at GFG
Array Game
Beautiful Number
Maximum Number
Complete the Staircase
Make the array beautiful
Reverse both parts
Count the Substrings
GCD 1
Binary Good
Minimize the sum
Last modified ball
Transform to Sum Tree
Parent of Max GCD Siblings in a Binary Tree
Find the first node of loop in linked list
Maximum Weight Node
Type it!
Min operations
Prefix Min
Wifi Range
Last cell in a Matrix
Balloon Everywhere
Save Civilians
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
Sum of XOR of all sub-arrays
Strong Students in School
Binary Good
Wifi Range
Minimum Number
Minimum Integer
Seating Arrangement
String Mirror
Make Palindrome
Geekina loves order
Maximize The Number
Rank Queries
Binary Modulo
Total Cuts
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Count the Substrings
Aterps Game
Special Array
Count the Substrings
Wave Array
Geekina and Log
Sorting Items
Unique Geometric Triplets
Bridge on Bits
Prefix Min
Wifi Range
Minimum Passes
Powerfull Integer
Yet Another Stone Game
Traveling Family
Love And Thunder
Traveling Family
Reorder List
Binary Tree to DLL
Partition array to k subsets
AVL Tree Deletion
Nodes at given distance in binary tree
Number of Turns in Binary Tree
Next Smallest Palindrome
Distinct palindromic substrings
Count Smaller elements
Largest rectangle of 1s with swapping of columns allowed
Number of distinct subsequences
Wildcard string matching
Minimum sum partition
Number Formation
Median in a row-wise sorted Matrix
Kill Captain America
Word Break - 2
Brackets in Matrix Chain Multiplication
nCr mod M | Part 1
Phone directory
Adventure in a Maze
Closest Palindrome
Optimal binary search tree
Assignment Problem
Longest Path in a matrix
Word Wrap
Maximum sum Rectangle
Huffman Encoding
Find the Maximum Flow
Corona Vaccine
Search Pattern (Z-algorithm)
Longest substring to form a Palindrome
Minimum X (xor) A
Sorted Linked List to BST
Palindrome Pairs
Count occurrences of a given word in a 2-d array
Number of distinct words with K maximum contiguous vowels
Reverse a sublist of a linked list
Shortest Unique prefix for every word
Split Array Largest Sum
Find number of closed islands
Scrambled String
Shortest Path by Removing K walls
Find Optimally 2
Maximum Number of Toys
Articulation Point - I
Min Chars to Add for Palindrome
Minimum time to fulfil all orders
Geek in a Maze
Stable Array
Construct smallest string
Expression Add Operators
MaxSkill
Count the Subarrays
Count Lucky Permutations
Count the Substring
Shortest Path
Select Nodes
Largest Sum Cycle
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
Elixir of Life
Minimum BST Sum Subtree
Special Digits
Cake Distribution Problem
Maximum Selling cost
Game Of Subsets
Geek's Birthday Party
Shortest Path
Forest Escape
Friendly Neighborhood
Candy Distribution And Geeks' Queries
Sum Except First and Last
Anagram of String
First n Fibonacci
Immediate Smaller Element
Repeated Character
Elements in the Range
Game with nos
One odd Occuring
Ishaan Loves Chocolates
1s Complement
Find position of set bit
Binary number to decimal number
Max Min
Naughty Geek
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 !