Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
gautamgoel962
Current POTD Streak
STREAK
179
/1470
days
Longest streak/Global longest streak
Institution
National Institute of Technology, Kurukshetra (NIT Kurukshetra)
116 Rank
Institute Rank
Language Used
C++, C, Java, Python
Coding Score
2001
Problem Solved
588
Contest Rating
__
Campus Mantri
piyushmittal_pm_
1015 points
Contributor
1015 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
0 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
August
SCHOOL (0)
BASIC (21)
EASY (186)
MEDIUM (322)
HARD (59)
Rearrange characters
Minimum sum of subarray
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
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
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
Sum Tree
Connect Nodes of Levels
Flattening a Linked List
Diagonal Tree Traversal
Tree Boundary Traversal
LCA in Binary Tree
Two Stacks in an Array
Binary Heap Operations
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Merge K sorted linked lists
Find the number of islands
Find kth element of spiral matrix
Get Min from Stack
Gas Station
Generate IP Addresses
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Strongly Connected
Rat in a Maze Problem - I
Closest in BST
BST with Dead End
Pots of Gold Game
Count distinct elements in every window
Merge k Sorted Arrays
Find triplets with zero sum
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
Peak element
Delete nodes greater than k
Merge Sort for Linked List
Union of Two Linked Lists
Binary Tree to CDLL
Pair Sum in BST
Complete Binary Tree
Counting elements in two arrays
Linked List that is Sorted Alternatingly
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Isomorphic Trees
Maximum path sum from any node
Predecessor and Successor
Largest Independent Set Problem
Normal BST to Balanced BST
Kth Ancestor in a Tree
ZigZag Tree Traversal
Mother Vertex
Ceil in BST
Smallest Positive Missing
Power Of Numbers
Rearrange an array with O(1) extra space
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Indexes of Subarray Sum
Triplet Sum in Array
Merge Without Extra Space
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Unit Area of largest region of 1's
Subarray with 0 sum
Longest Consecutive Subsequence
Strings Rotations of Each Other
Case-specific Sorting of Strings
K Sized Subarray Maximum
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Combination Sum
M-Coloring Problem
Minimum Jumps
Stickler Thief
Egg Dropping Puzzle
Optimal Strategy For A Game
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Allocate Minimum Pages
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Maximize The Cut Segments
Top K Frequent in Array
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Word Search
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Maximum Index
Flip Bits
Single Among Doubles in a Sorted
Single Among Doubles
Painting the Fence
Search in Rotated Sorted Array
Maximum Product Subarray
Remove minimum elements
Row with max 1s
Column name from a given column number
Palindrome SubStrings
Longest Subarray with Sum K
Cutting Binary String
Sum of two large numbers
Factorials of large numbers
Length of the longest substring
k largest elements
Sum of XOR of all pairs
Longest Common Substring
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
Triplets with Smaller Sum
Rod Cutting
Minimum swaps and K together
Maximize the sum of selected numbers from a sorted array to make it empty
LCS of three strings
Longest Palindromic Subsequence
Maximum difference of zeros and ones in binary string
First and Last Occurrences
Nine Divisors
Minimum Swaps for Bracket Balancing
Permutations of a String
Friends Pairing Problem
CamelCase Pattern Matching
Lexicographically smallest string
Subarrays Product Less than K
Unique Number II
Bleak Numbers
Largest prime factor
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Santa Banta
Mobile numeric keypad
Gold Mine Problem
Perfect Sum Problem
Smallest number
Power Of 2 and Subsequences
Firing employees
Shreyansh and his bits
Longest subsequence-1
Knapsack with Duplicate Items
nCr
Maximum path sum in matrix
Partition Equal Subset Sum
Longest Bitonic subsequence
Magic Triplets
Fill up buckets
Matchsticks game
Subset Sums
Unique partitions
Knight Walk
Stepping Numbers
Choose and Swap
Find nth root of m
Fact Digit Sum
Jumping Numbers
Grouping Of Numbers
Find the Safe Position
Smaller on Left
Filling Bucket
Longest Repeating Subsequence
Longest alternating subsequence
Decode the string
Stream First Non-repeating
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
Find all distinct subset (or subsequence) sums
Queries on a Matrix
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
Subset Sum Problem
Longest Palindromic Substring
Bellman-Ford
Substrings of length k with k-1 distinct elements
Prefix match with other strings
BST to max heap
Flatten binary tree to linked list
IPL 2021 - Match Day 2
Clone an Undirected Graph
Remove and Reverse
Find Kth permutation
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
Enemy
Max Equal sum of 3 Stacks
Smallest sum contiguous subarray
Array Removals
Minimum Cost to cut a board into squares
Stack Permutations
Replace every element with the least greater element on its right
Minimum Swaps
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Eventual Safe States
Rectangles and Squares
Number Of Islands
Merging Details
Maximum Multiple
Number of Ways to Arrive at Destination
Prime List
Shortest path in Directed Acyclic Graph
Sum of Beauty of All Substrings
Aggressive Cows
Subset II
Smaller Sum
Combination Sum II
Good Subtrees
Task Scheduler
Hands of Straights
Lemonade Change
Maximum Sum Combination
Floor in BST
Count number of free cell
Minimum Days
Prime List
Walls Coloring
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
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
Reverse 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
Reverse a Doubly Linked List
Check for BST
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
Delete Middle of Linked List
Transform to Sum Tree
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
Implement stack using array
Insert a node in a BST
BFS of graph
Identical Trees
Square Root
Lowest Common Ancestor in a BST
Binary Search
Remove Duplicates Sorted Array
Binary Tree to BST
Unique rows in boolean matrix
Leaves at Same Level or Not
Multiply two linked lists
Josephus problem
Delete in a Singly Linked List
Kth largest element in BST
Minimum distance in an Array
Array Duplicates
Level order traversal
Inorder Successor in BST
Insert in a Sorted List
Symmetric Tree
Next Right Node
Count Pairs whose sum is equal to X
Find length of Loop
Median of BST
Leaf under budget
Queue Reversal
Delete Mid of a Stack
Rotate doubly Linked List
Predict the Column
Frequency in Queue
Frequency Game
Pair Sum Existence
First Set Bit
Check K-th Bit
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
Isomorphic Strings
Non Repeating Character
K largest elements
Minimum Cost of ropes
N meetings in one room
Reach a given score
Product array puzzle
Roman Number to Integer
Search an element in sorted and rotated array
Max Value Permutation
Missing And Repeating
Sort by Set Bit Count
Maximize sum after K negations
Adding Ones
Pairs with certain difference
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Chocolate Distribution Problem
Find Pair Given Difference
Swap and Maximize
Minimize Difference in Task Priorities
Bitonic Point
Smallest subarray with sum greater than x
Alternate Positive Negative
Rotate Bits
Number of occurrence
Reversing the equation
String's Count
Min Number of Flips
Two sum -Pairs with 0 Sum
Palindrome String
Search array with adjacent diff at most k
Fitting The Array
Shop in Candy Store
Is Binary Number Multiple of 3
Number of 1 Bits
Nth Fibonacci Number
Ceil The Floor
Copy Set Bits in Range
Sum 1 to n Divisors
The Bit Game
Reach the Nth point
Minimum number of Coins
Perfect Numbers
Smallest number with sum of digits as N and divisible by 10^N
Largest number possible
Check if it is possible to survive on Island
Form a number divisible by 3 using array digits
Least Prime Factor
Sum of First N Natural Numbers
BBT counter
Tom and Jerry
Maximum Diamonds
Arithmetic Number
Surround the 1's
Help Ishaan
Trace Path
Sequence Fun
Letters Collection
Primes sum
Print the pattern
Chicks in a Zoo
Maximum Sum LCM
Minimum Exchange
Earthquake and the Paint Shop
Array to BST
Count all possible paths from top left to bottom right
Ball coloring
Modified Numbers and Queries
Sum of k smallest elements in BST
Print Diagonally
License Key Formatting
Count the Substrings
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Move Last Element to Front of a Linked List
Find pairs with given sum in doubly linked list
Even subarray sum
Kth Mex
Taxi Booking
Make sum even
Maximum Depth Of Binary Tree
Make Palindrome
Geek left with No Food
Minimize the sum
Balloon Everywhere
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
Valuable String
Ticket Counter
Unique Number of Occurrences
Linked List Group Reverse
Binary Tree to DLL
Clone List with Next and Random
Alien Dictionary
Nodes at given distance in binary tree
Number of Turns in Binary Tree
String Permutations
Trapping Rain Water
Histogram Max Rectangular Area
Max of min for every window size
Solve the Sudoku
Strongly connected component (Tarjans's Algo)
Median of 2 Sorted Arrays of Different Sizes
Merge Without Extra Space
Next Smallest Palindrome
The Painter's Partition Problem-II
Number of distinct subsequences
Edit Distance
Minimum sum partition
Number Formation
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Word Break - 2
N-Queen Problem
Phone directory
Optimal binary search tree
Maximum sum Rectangle
Huffman Encoding
Water Connection Problem
Number of subsets with product less than k
Count occurrences of a given word in a 2-d array
Find number of closed islands
Articulation Point - I
Min Chars to Add for Palindrome
Minimum time to fulfil all orders
Expression Add Operators
Count Reverse Pairs
Better String
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
Min Time
Game Of Subsets
Making A Large Island
Queue Using Array
Sum Except First and Last
Search a node in BST
Circular Linked List Traversal
Array Search
Sorted Array Search
Reverse a String
Value equal to index value
Immediate Smaller Element
Repeated Character
Elements in the Range
Rotate Array by One
Game with nos
One odd Occuring
Array Subset
Check set bits
Set kth bit
Count Squares
Middle of Three
Minimum difference pair
Max Min
close
G
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 !