Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
its_just_me
Current POTD Streak
STREAK
108
/1480
days
Longest streak/Global longest streak
Institution
National Institute of Technology, Raipur (NIT Raipur)
60 Rank
Institute Rank
Language Used
C++, C, Java
Coding Score
2414
Problem Solved
892
Contest Rating
__
Campus Mantri
hardeepsingh04
271 points
Contributor
271 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
2020
2019
2018
January
February
March
April
May
June
July
August
SCHOOL (2)
BASIC (80)
EASY (359)
MEDIUM (382)
HARD (69)
Sorting Elements of an Array by Frequency
Rearrange characters
Nearly Sorted Algorithm
The Conversion To One
Get the Shadow
K<sup>th</sup> Maximum element of Max-Heap
Reverse alternate nodes in Link List
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Rearrange a linked list
Add 1 to a Linked List Number
Merge 2 sorted linked list in reverse order
Linked List in Zig-Zag fashion
Detect Loop in linked list
Quick Sort on Linked List
Count BST nodes that lie in a given range
Merge 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
Merge two sorted linked lists
Add all greater values to every node in a BST
Sum Tree
Connect Nodes of Levels
Flattening a Linked List
Diagonal Tree Traversal
Tree Boundary Traversal
Reverse alternate levels of a perfect binary tree
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Absolute List Sorting
Binary Heap Operations
Max sum path in two arrays
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Find the number of islands
Max sum in the configuration
Get Min from Stack
Gas Station
Wildcard Pattern Matching
Linked List to Binary Tree
Check if subtree
Extreme nodes in alternate order
Kth smallest element in a Matrix
Is Binary Tree Heap
Clone a Binary Tree
Remove loop in Linked List
Minimum Spanning Tree
Largest BST
Interleaved Strings
Sorted subsequence of size 3
Sum of subset differences
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Palindrome Linked List
Rat in a Maze Problem - I
Bipartite Graph
Closest in BST
Pots of Gold Game
Delete keys in a Linked list
Merge two BST 's
Count distinct elements in every window
Merge k Sorted Arrays
Root to leaf paths sum
Bridge edge in a graph
Find triplets with zero sum
Sort a stack
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
Level order traversal
Peak element
Polynomial Addition
Merge Sort for Linked List
Union of Two Linked Lists
Euler Circuit in an Undirected Graph
Ancestors in Binary Tree
Root to Leaf Paths
Occurences of 2 as a digit
Counting elements in two arrays
Construct expression tree
Linked List that is Sorted Alternatingly
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Vertical sum
Isomorphic Trees
Leaves to DLL
Children Sum in a Binary Tree
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Construct Tree from Preorder Traversal
Sum of nodes on the longest path
Check if two Nodes are Cousins
ZigZag Tree Traversal
Count Number of SubTrees
Vertical Width of a Binary Tree
C++ Friend function
C++ Generic sort
Pairwise swap of nodes in Linked List
Swap Kth nodes from ends
Add two numbers represented by Linked List
Count set bits
Tower Of Hanoi
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Wave Array
Possible Words From Phone Digits
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Possible paths between 2 vertices
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Rotate by 90 degree
Unit Area of largest region of 1's
Subarray with 0 sum
Subarrays with equal 1s and 0s
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Kth smallest element
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Combination Sum
Unique Subsets
Minimum Jumps
Stickler Thief
Ways to Reach the n'th Stair
Minimum number of jumps
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Number of Unique Paths
Equal Sum Partition
Sort according to an Array
Allocate Minimum Pages
Preorder to BST
Zero Sum Subarrays
Find whether path exist
Implement Trie
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Add a Digit
Lazy Kid
Shortest Distance to Every Character
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Overlapping Intervals
Top K Frequent in Array
Generate Parentheses
Number of Sweets
Prerequisite Tasks
4 Sum - All Quadruples
Excel Sheet | Part - 1
Distorted Needle in Haystack
Mandatory Flip Bit
Pruning a Tree
Sort 0s, 1s and 2s
Valid Pair Sum
Paths to reach origin
Pascal Triangle
Equal Sum
Top k numbers in a stream
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count Occurences of Anagrams
Single Among Doubles
Happiest Triplet
Pair Sum Closest to 0
Search in Rotated Sorted Array
Smallest number with at least n trailing zeroes in factorial
Maximum Intervals Overlap
Maximize The Array
Form the Largest Number
Marks of PCM
Water Collection
Alternate Vowel and Consonant String
Maximum Product Subarray
Check if a string is repetition of its substring of k-length
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Column name from a given column number
Concatenation of Zig-Zag String in n Rows
Design a tiny URL or URL shortener
Count of Palindromic substrings in an Index range
Form a palindrome
Nuts and Bolts Problem
Rotate a Matrix
Longest Subarray with Sum K
Count the Reversals
Equal 0, 1 and 2
Factorials of large numbers
Shuffle integers
Reverse each word in a given string
Length of the longest substring
The Tiny Miny
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Longest Palindrome in a String
Look and Say Pattern
Integer to Words
K-th element of two Arrays
Longest Arithmetic Subsequence
Triplets with Smaller Sum
Rod Cutting
Number of pairs
Missing element of AP
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
Large Factorials
First and Last Occurrences
Next higher palindromic number using the same set of digits
Minimum Deletions
Ruling Pair
Print N-bit binary numbers having more 1s than 0s
Valid Substring
Permutations of a String
Number following a pattern
Find largest word in dictionary
Special Numbers
Combination Sum - Part 2
Subarrays Product Less than K
Unique Number II
Bleak Numbers
Ways to sum to N
Maximum bitonic subarray sum
Max possible amount
Help Classmates
Maximize dot product
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Count numbers with given sum
String Subsequence
Gold Mine Problem
Coin Change (Minimum Coins)
Perfect Sum Problem
Dyck Path
K-Palindrome
Find the largest number
Count ways to N'th Stair(Order does not matter)
nCr
Number of ways
Maximum path sum in matrix
Minimum steps to destination
Special Keyboard
Partition Equal Subset Sum
Longest Bitonic subsequence
Get Minimum Squares
Handshakes
Dimensions of Rectangle
Array Pair Sum Divisibility Problem
Digit multiplier
Money Distributions
Find Last Digit Of a^b for Large Numbers
Matchsticks game
Subset Sums
N Digit numbers with digits in increasing order
Yes XOR No
Last non-zero digit in factorial
Nth Natural Number
Knight Walk
Stepping Numbers
Permutation with Spaces
Path of greater than equal to k length
Card Rotation
Choose and Swap
Return two prime numbers
Find nth root of m
Sum of Query II
Find Prime numbers in a range
Prime Factors and their Powers
Two water Jug problem
Fraction to Repeating Decimal
Numbers with alternative 1's
Find the Safe Position
Dudeney's Cow Problem
Rotate a Matrix by 180 Counterclockwise
Next Permutation
Smaller on Left
Longest Repeating Subsequence
Finding Profession
Decode the string
Is Sudoku Valid
Total Decoding Messages
Stream First Non-repeating
Possible paths
Segregate even and odd nodes in a Linked List
Largest square formed in a matrix
Water Overflow
Kth Largest in a Stream
Snake and Ladder Problem
7 Segment Display
Eulerian Path in an Undirected Graph
Transitive closure of a Graph
Rohan's Love for Matrix
Special Matrix
Queries on a Matrix
Express as sum of power of natural numbers
Count the paths
Floyd Warshall
Flood fill Algorithm
Shortest Source to Destination Path
Shortest Path between Cities
Reverse Spiral Form of Matrix
Police and Thieves
Recursively Remove Adjacent Duplicates
Number of minimum picks to get 'k' pairs of socks from a drawer
Spiral Matrix
Coins of Geekland
Valid Pair Sum
Dam of Candies
Transfiguration
Repeated String Match
Bit Difference
Ruling Pair
Triplets in Sorted Linked List
Restrictive Candy Crush
Help Classmates
Restricted Pacman
Valentine Sum
Lucy's Neighbours
Spidey Sense
Project Manager
Closest Similar Elements
Escape the Forbidden Forest
Iterative Inorder
Triplets with sum with given range
Preorder traversal (Iterative)
Iterative Postorder
Form a palindrome
Gray Code
Subarrays with sum K
Partition a Linked List around a given value
Rearrange characters
Find duplicate rows in a binary matrix
Division without using multiplication, division and mod operator
Subsets
IPL 2021 - Match Day 2
All Unique Permutations of an array
Overlapping Intervals
Bitwise AND of the Array
Kth Smallest Difference
Special Primes
Linked List Group Reverse
Reorder List
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
Distinct occurrences
Box Stacking
Points in Straight Line
AVL Tree Insertion
Alien Dictionary
Smallest range in K lists
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Max Path Sum 2 Special Nodes
String Permutations
Trapping Rain Water
Max Circular Subarray Sum
Histogram Max Rectangular Area
Max of min for every window size
Find median in a stream
Solve the Sudoku
Strongly connected component (Tarjans's Algo)
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
Merge Without Extra Space
Next Smallest Palindrome
Palindrome SubStrings
Ugly Numbers
Largest rectangle of 1s with swapping of columns allowed
Minimum number to make median X
Maximum XOR subset
Edit Distance
Minimum number of elements
Doctor Strange
Minimum sum partition
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Check Tree Traversal
Matrix Chain Multiplication
Bit Difference
Median in a row-wise sorted Matrix
Bike Racing
Word Break - 2
N-Queen Problem
Brackets in Matrix Chain Multiplication
nCr mod M | Part 1
Phone directory
Adventure in a Maze
Closest Palindrome
Articulation Point - II
Create your own Calculator
Let's Play!!!
Nth digit of pi
Huffman Encoding
Water Connection Problem
Smallest Positive Integer that can not be represented as Sum
Secret Cipher
132 Geeky Buildings
Corona Vaccine
Shortest Range In BST
Elixir of Life
Minimum operations to convert array A to B
Number of distinct words with K maximum contiguous vowels
Word Ladder II
Count the number of subarrays
Kth Smallest Number in Multiplication Table
Sahil loves gfg
Sahil love good scorer
Nearest Perfect Square
A Boolean Matrix Problem
Toggle The Middle
K Sum
XOR Pair
Average of String
Closest friends!
Pairing the brackets
Continuous Series
The Manipulator
Maximize The Profit
Triangle and Square
M and N
Tower Construction
Continuous Series
Geek and his Marks
Geek-onacci Number
Geeks's Garden
Geek and Contest ||
3 Data structures
Reverse a linked list
Frequency in a Linked List
Delete N nodes after M nodes of a linked list
Pairwise swap elements of a linked list
Node at a given index in linked list
Linked list of strings forms a palindrome
Compare two linked lists
Remove duplicates from an unsorted linked list
Split a Linked List into two halves
Inorder Traversal
Reverse a Doubly Linked List
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Two Mirror Trees
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
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Stack using two queues
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
Lowest Common Ancestor in a BST
Binary Search
Run Length Encoding
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
Odd even level difference
Binary Tree to BST
K-Palindrome
Equilibrium index of an array
Leaves at Same Level or Not
Convert to Roman No
Match specific pattern
Josephus problem
Expression Tree
Max distance between same elements
Delete in a Singly Linked List
Kth largest element in BST
Array Duplicates
Max Level Sum in Binary Tree
Special Stack
Three way partitioning
Longest consecutive sequence in Binary tree
Inorder Successor in BST
Index of an Extra Element
Intersection of Two Linked Lists
Level of a Node in Binary Tree
Sum of leaf nodes in BST
More than n/k Occurrences
Counting Sort
Max and min element in Binary Tree
Perfect Binary Tree
Reverse Using Stack
Full Binary Tree
Symmetric Tree
Delete Alternate Nodes
Count Pairs whose sum is equal to X
Maximum Node Level
Find length of Loop
Median of BST
Find n/k th node in Linked list
Reverse first K of a Queue
Height of Spiral Tree
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Sum of Left Leaf Nodes
Brothers From Different Roots
Delete Mid of a Stack
C++ Multi-level inheritance
C++ Template
The New Line
Controlled_Printing
Coding with Operators
Bridge of Stones
Data Types
Taking input
Learn to Comment
GetLine and Ignore
Learning to be precise
Bitwise Operators
Even Odd
While loop- printTable
Learning Macros
Start Coding - Java
The New Line - Java
Data Types - Java
Learn to Comment - Java
logical Operators - Java
Bitwise Operators - Java
Even Odd - Java
While loop- printTable - Java
Swap the array elements
Matrix Interchange
Xoring and Clearing
Xoring and Clearing - Java
Swap values using References
Swap the objects
Two Dimensional World
Learning Structs
Delete Array
Sum of Big Integers
BigInteger Multiply
Find the Frequency
Back to Front
Pair Sum in Vector
Frequency in Queue
Get min at pop
Min Heap implementation
Multimap Operations
Pair Sum Existence
Pair Sum Existence- Revisited
First Set Bit
Rightmost different bit
Check K-th Bit
Longest Consecutive 1's
Power of 2
Swap odd and even bits
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Print adjacency list
Anagram
Winner of an election
String Rotated by 2 Places
Reverse Words
Minimum indexed character
Panagram Checking
Non Repeating Character
Parenthesis Checker
Minimum indexed character
Generate Binary Numbers
K largest elements
Minimum Cost of ropes
N meetings in one room
Largest number with given sum
Reach a given score
Count ways to N'th Stair
Count number of hops
Doubly Linked List Conversion
Level them All!
Strange Median!
The BFS traversal
Pattern searching
First Repeating Element
Union of Arrays with Duplicates
Reach a given score
Check Equal Arrays
Positive Negative Pair
Missing in Array
Product array puzzle
Roman Number to Integer
Intersection of Arrays with Distinct
Excel Sheet | Part - 2
Lucy's home
StayHomeTask
Maximum selections
LCP
Sum of XOR of all sub-arrays
Sort strings lexicographically according to given sequence of characters
Perfect Pair Sum
Equal Distribution
Rotate Clockwise
Cousins in Tree
Game of digits
Minimize Max difference between adjacent elements by inserting k new elements
Max Value Permutation
Missing And Repeating
Buildings receiving sunlight
Non-Repeating Element
Max value
Count the elements
Maximum Gap
Find Kth Rotation
Sort by Set Bit Count
Minimum Energy
Maximize sum after K negations
Pairs with certain difference
Common in 3 Sorted Arrays
Good Pairs
Sum of elements between k1'th and k2'th smallest elements
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Min Subsets with Consecutive Numbers
Minimize the sum of product
Chocolate Distribution Problem
Find Pair Given Difference
Bitonic Point
Smallest subarray with sum greater than x
Amend The Sentence
Single Number
Check if actual binary representation of a number is palindrome
Closing bracket index
Remove Consecutive Characters
Remove b and ac from a given string
Palindrome Sentence
Addition of submatrix
Check if the number is balanced
Rearrange a string
Remove Duplicates
Facing the sun
Count Substrings
Twice Counter
Distinct Substrings
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Second most repeated string in a sequence
Check if array contains contiguous integers
Number of occurrence
Divisible by 8
Longest common prefix
Convert an array to reduced form
Find missing in second array
String's Count
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
First Repeated Character
Meta Strings
Min Number of Flips
Counts Zeros Xor Pairs
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
Hungry Pizza Lovers
At Least K Occurrences
Element with left side smaller and right side greater
Merging two unsorted arrays in sorted order
Count the Zeros
Sum of Lengths of Non-Overlapping SubArrays
Four Elements
First and Second Smallests
Palindrome String
Left out candies
Chocolate Station
Smallest greater elements in whole array
Maximum Happiness
Shop in Candy Store
Minimum changes to make all substrings distinct
Minimal moves to form a string
Lucas Number
Encrypt the string - 2
Common Subsequence OldP
Is Binary Number Multiple of 3
Kth LSB
Replace a word
Minimum Operations
Number of 1 Bits
Find the Highest number
Armstrong Numbers
Set Bits
Nth Fibonacci Number
Change Bits
Number of factors
Palindrome
Toggle bits in the given range
Game of Nim
Set all the bits in given range of a number
Prime Number
Maximum Sum Problem
Maximum Product Cutting
High Effort vs Low Effort
Shortest path from 1 to n
Find sum of divisors
Amicable Pair
Assign Mice Holes
Find maximum number
Reach the Nth point
Minimum number of Coins
Break a number
Palindrome numbers
Optimal walk
Maximum height of the staircase
Next in Series
Game of cells
Maximize Toys
Raju and coins
Largest number possible
Page Faults in LRU
Recamans sequence
Print this pattern!
Integral Root
Rectangles in N*N Board
Squares in N*N Chessboard
Deficient Number
Form a number divisible by 3 using array digits
Total number of Strings
Subtraction and two numbers
Triangular Number
Sum of First N Natural Numbers
Circular Prime Number
Recursive sequence
Sum of product of all pairs
Tom and Jerry
Maximum Height Tree
Maximum Diamonds
Arithmetic Number
Geeky Year
Inorder Traversal and BST
Letters Collection
Examination Papers
Overlapping rectangles
Help the Old Man!!!
Inverted triangle of stars
Print Pattern
Crazy Equations
Array to BST
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Rearrange Geek and his Classmates
Sum of k smallest elements in BST
Print Diagonally
Gadgets of Doraland
Reverse Bits
Sum of two numbers without using arithmetic operators
Rotate Array
Alternate Leaf Nodes Sum
Print Linked List
Find Length of Linked List
Size of Binary Tree
Count Leaves in Binary Tree
Postorder Traversal
Queue using Linked List
Queue Using Array
Preorder Traversal
First Occurence
Sum Except First and Last
Palindromic Array
Linked List Insertion At End
Minimum element in BST
Is Linked List Length Even?
Sum of Binary Tree
The Size of
Count Odd and Even
Sort and Reverse Vector
Front to Back
Queue Push & Pop
Bit Difference
Number is sparse or not
Print 1 To N Without Loop
Sorted Array Search
Minimum At Pop
Reverse a String
C++ Hello World
Sum of Natural Numbers
Searching in an Array
Doubling the value
Balanced Array
Maximum product of two numbers
Value equal to index value
Uncommon characters
Reversing the vowels
Repeated Character
Last index of One
Merge two strings
Rotate Array by One
Array Subset
Multiply left and right array sum
Print first letter of every word in the string
Red OR Green
Check set bits
Number of Diagonals
Binary representation
Set kth bit
Java Hello World
Smallest power of 2 greater than or equal to n
Check perfect square
LCM And GCD
House Robber
C++ Data Types
Find n-th term of series 1, 3, 6, 10, 15, 21
Strong Numbers
Median of an Array
Celsius to Fahrenheit Conversion
Factorial
Greatest of three numbers
Simple Interest
Difference series
Series AP
The dice problem
G.F Series
Remainder Evaluation
Count Squares
Find the position of M-th item
Check if the number is Fibonacci
Middle of Three
Anshuman's Favourite Number
Swap two numbers
Unique Numbers
Series X1
Doctors Clinic
12 hour clock addition
Pattern Jumping
Finding Position
Sorted matrix
Reverse an Array
Search in a 2D Matrix
close
A
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 !