Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
aganjali10
Current POTD Streak
STREAK
00
/1477
days
Longest streak/Global longest streak
Language Used
C++, C
Coding Score
1487
Problem Solved
769
Contest Rating
__
627 points
Contributor
627 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
2017
January
February
March
April
May
June
July
August
SCHOOL (5)
BASIC (182)
EASY (287)
MEDIUM (263)
HARD (32)
Replace by X
String Ignorance
GeeksforGeeks New System
Maximum number of customers that can be satisfied with given quantity
Crack the password
Possible square
SP - Palindrome Family
SP - Beautiful Pairs
SP - Stack Design
Reverse a linked list
Frequency in 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
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Insertion Sort
Check for BST
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
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
Implement stack using array
Insert a node in a BST
BFS of graph
Identical Trees
Root to leaf path sum
Insertion at doubly linked list
Postorder from Inorder and Preorder
Lowest Common Ancestor in a BST
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
Odd even level difference
Binary Tree to BST
Unique rows in boolean matrix
Remove every k'th node
Leaves at Same Level or Not
Third largest element
Match specific pattern
Expression Tree
Max distance between same elements
Longest Consecutive Subsequence
Repetition of k length substring
Delete in a Singly Linked List
Kth largest element in BST
Max Level Sum in Binary Tree
Special Stack
Inorder Successor in BST
Operating an array
Increment a variable
Convert Ternary Expression to Binary Tree
Intersection of Two Linked Lists
Insert in a Sorted List
Split Linked List Alternatingly
Level of a Node in Binary Tree
Max and min element in Binary Tree
Perfect Binary Tree
Full Binary Tree
Symmetric Tree
Delete Alternate Nodes
Merge Lists Alternatingly
Find the Sum of Last N nodes of the Linked List
Count Pairs whose sum is equal to X
Depth of node
Find length of Loop
Change of Key in BST
Median of BST
Linked List Matrix
Queue Reversal
Reverse first K of a Queue
Remove Half Nodes
Height of Spiral Tree
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Sum of Left Leaf Nodes
Deletion in a Binary Tree
Nodes at Odd Levels
Brothers From Different Roots
Exchange the Leaf Nodes
Sum of Leaf Nodes at Min Level
C++ STL Priority Queue
Tilt of Binary Tree
Move all zeros to the front of the linked list
Product of an Array
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
Minimum Number in a sorted rotated array
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Check if a string is Isogram or not
Anagram
Winner of an election
String Rotated by 2 Places
Reverse Words
Sum of numbers in string
Minimum indexed character
Non Repeating Character
Parenthesis Checker
Generate Binary Numbers
Minimum Cost of ropes
N meetings in one room
Count number of hops
Union of Arrays with Duplicates
Check Equal Arrays
Numbers containing 1, 2 and 3
Missing in Array
Max Value Permutation
Cumulative frequency of count of each element in an unsorted array
Find Index
Non-Repeating Element
Pairs of equals Sum
Count the elements
Find the closest number
Maximize sum after K negations
Max Length Removal
Common in 3 Sorted Arrays
Good Pairs
First Come First Serve
Sorted and Rotated Minimum
Maximum no of 1's row
Sum of elements between k1'th and k2'th smallest elements
Next greater number set digits
Search in a Row-Column sorted matrix
Move All Zeroes to End
Find pairs with given relation
Min sum formed by digits
Min Subsets with Consecutive Numbers
Minimize the sum of product
Unusual String Sort
Chocolate Distribution Problem
Minimum Distinct Ids
Punish the Students
Find Pair Given Difference
Minimum number of swaps needed
Finding Number
Swap and Maximize
Sum of length
Minimize Difference in Task Priorities
Bitonic Point
Left most and right most index
Amend The Sentence
Sort Array II
1[0]1 Pattern Count
Remaining String
Check if a given string is a rotation of a palindrome
Convert a sentence into its equivalent mobile numeric keypad sequence
Rearrange a string
Sherlock a Detective
Nearest multiple of 10
Facing the sun
Jumping Caterpillars
Difficulty of sentence
Twice Counter
Bitonic Generator Sort
Second Largest
Two Sum - Pair with Given Sum
Rotate Bits
Second most repeated string in a sequence
Check if array contains contiguous integers
Rearrange to Make arr[i] = i
Find the number of tabs opened
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Find the most frequent digit
Divisibility by 999
Does array represent Heap
Check if array is sorted
Find missing in second array
String's Count
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
First Repeated Character
Prime String
Numbers with prime frequencies greater than or equal to k
Min Manipulations to make Strings Anagram
Maximum number of characters between any two same character
Substrings with same first and last characters
Sum of f(a[i], a[j]) over all pairs in an array of n integers
Segregate 0s and 1s
Print an array in Pendulum Arrangement
At Least K Occurrences
Find the closest pair from two arrays
LCS with permutations
Count the Zeros
Distinct absolute array elements
Length of longest subarray
Total distance travelled in an array
Merge two binary Max heaps
Four Elements
First and Second Smallests
Palindrome String
Smallest greater elements in whole array
Print Bracket Number
Divisible by 5 or not
Tom and String
Odd Even Problem
Colorful Strings
Is Binary Number Multiple of 3
Padovan Sequence
Replace a word
Number of 1 Bits
Armstrong Numbers
AND operation
Love For The Twins
K Smallests in the Original Order
Lucky Number
Reverse Bits
Nth Fibonacci Number
Change Bits
Swap two nibbles in a byte
Copy Set Bits in Range
Count Digits
Sum Of Digits
Palindrome
Toggle bits in the given range
Maximum 0s between two immediate 1s
Element that appears once where every element occurs twice
Completing tasks
Party of Couples
Shortest path from 1 to n
Count numbers containing 4
Assign Mice Holes
Swap bits
Euler Totient Function
Reach the Nth point
Number of Groups
Pair cube count
Maximum height of the staircase
Incomplete Array
Kth Prime Factor
Grouping values
Sum Indexes
Recamans sequence
Number that are not divisible
Sum of all prime numbers between 1 and n
Total number of Strings
Smallest number by rearranging digits of a given number
Summed Matrix
Maximum Diamonds
Row with Minimum 1s
Make Zeroes
Boundary Elements of Matrix
Coverage of all Zeros in a Binary Matrix
Trace Path
Inorder Traversal and BST
Binary Tree K level sum
Array to BST
Sum of dependencies in a graph
Shortest distance in infinite tree
Matrix Game - 1
Print Diagonally
Rotate Array
Sort String
Print Linked List
Find Length of Linked List
Check for Binary String
Size of Binary Tree
Count Leaves in Binary Tree
Postorder Traversal
Queue using Linked List
Queue Using Array
Replace all 0's with 5
Print number pattern
Preorder Traversal
C++ STL | Set 5 (queue)
Middle Pattern
Search a node in BST
Remainder with 7
Palindromic Array
Multiply Matrices
Linked List Insertion At End
Operating a sorted array- copy
C++ Functions (Sum of numbers) | Set 1
Minimum element in BST
Anagram of String
Is Linked List Length Even?
Identical Linked Lists
Modular Node
Sum of Binary Tree
Count Non-Leaf Nodes in Tree
Alternates in an Array
Sum of diagonals
Bit Difference
Number is sparse or not
Array Search
Sorted Array Search
Binary String
Remove common characters and concatenate
Reverse a String
Keypad typing
First n Fibonacci
C++ Hello World
Find second largest element
Count number of elements between two given elements in array
Sum of Array
Doubling the value
Count pair sum
Remove consonants from a string
Friendly Array
Balanced Array
At least two greater elements
Check Arithmetic Progression
Ishwar and his proposals
Type of array
Anagram Palindrome
Distinct Elements in a Stream
Fibonacci in the array
Check if divisible by 11
Check if divisible by 4
Check Binary String
Maximum product of two numbers
Value equal to index value
Check for subsequence
Check String
Convert a list of characters into a String
Compare two Large Numbers
Count number of equal pairs in a string
Encrypt the string - 1
Immediate Smaller Element
Sum of distinct elements
Count the characters
Count type of Characters
Uncommon characters
Quick Left Rotation
Swap kth elements
Reversing the vowels
Max-Min conversion
Stable Sort and Position
Duck Number
Extract the integers
Fake Profile
Lower case to upper case
Remove repeated digits in a given number
Remove Spaces
Replace the Bit
Find the Number which contain the digit d
Missing number in shuffled array
Elements in the Range
Find element at a given Index
Last index of One
URLify a given string
Sort the string in descending order
String with numbers at its end
Last duplicate element in a sorted array
Rotate Array by One
Sum Triangle for given array
One odd Occuring
Split Strings
Array Subset
Rotating an Array
C++ Strings
Count of smaller elements
Min and Max in Array
Extract Maximum
Smallest number repeating K times
Print first letter of every word in the string
Perfect Reversible String
Remove character
Demonitisation
Difference between highest and lowest occurrence
GCD of Array
Find unique element
C++ if-else (Decision Making)
Addition of Two Numbers
1s Complement
Odd or Even
Check set bits
C++ Operators (Relational) | Set 2
C++ Switch Case Statement
Number of Diagonals
XOR of all elements
Invert the Bits
The OR Gate
The AND Gate
Binary representation
Check for Power
Even Odd Sum
Find position of set bit
Set kth bit
Vowel or Not
The XOR Gate
Combinational Logic
XOR play
Find the fine
Check if divisible by 5
Check if a number can be expressed as x^y
LCM And GCD
House Robber
Repeated IDs
C++ Data Types
Fibonacci to N
Krishnamurthy number
Median of an Array
Parity of unsigned integer
Sum of Digit is Palindrome or not
Sum of AP series
Pairs with given XOR
Power of Pow | Odd Numbers
Binary number to decimal number
Absolute Difference of 1
Closest Number
Common Divisors
Sum of divisors
Count numbers divisible by M
Sum of elements in a matrix
Check if the door is open or closed
Identical Matrices
Find difference between sum of diagonals
Ways To Tile A Floor
Ladoo problem
Remainder Evaluation
Count Squares
Middle of Three
Repeated sum of digits
Sum of Digits Divisibility
K-th distinct element
Print the Kth Digit
Unique Numbers
Height of Heap
12 hour clock Multiplication
12 hour clock subtraction
Half N by M
Pairs of prime number
Sum Palindrome
Minimum difference pair
Thief trying to escape
Squares in a Matrix
Sums of i-th row and i-th column
Addition of two square matrices
Diagonal sum
Count Sorted Rows
Interesting Patterns
Sorted matrix
Sorting Elements of an Array by Frequency
Rearrange characters
Nearly Sorted Algorithm
SP - Special Subsequences
SP - Playing with Stacks
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
Rearrange linked list in-place
Quick Sort on Linked List
Insert in Sorted Circular Linked List
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
Merge Sort
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
Add all greater values to every node in a BST
Sum Tree
Construct Binary Tree from Parent Array
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
Two Stacks in an Array
Binary Heap Operations
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Merge K sorted linked lists
Find the number of islands
Max sum in the configuration
Get Min from Stack
Gas Station
Linked List to Binary Tree
Check if subtree
Kth smallest element in a Matrix
Is Binary Tree Heap
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Strongly Connected
Bipartite Graph
Number of root to leaf paths
Closest in BST
BST with Dead End
Delete keys in a Linked list
Merge two BST 's
Count distinct elements in every window
k-Anagram
Merge k Sorted Arrays
Root to leaf paths sum
Longest Palindrome in Linked List
Find triplets with zero sum
k-th Smallest in BST
Level order traversal
Polynomial Addition
Union of Two Linked Lists
Euler Circuit in an Undirected Graph
Euler circuit and Path
Ancestors in Binary Tree
Binary Tree to CDLL
Pair Sum in BST
Complete Binary Tree
Populate Inorder Successor for all nodes
Construct expression tree
K Sum Paths
Foldable Binary Tree
Construct Tree from Inorder & Preorder
Arrange Consonants and Vowels
Vertical sum
Isomorphic Trees
Predecessor and Successor
Leaves to DLL
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Normal BST to Balanced BST
Sum of nodes on the longest path
Construct a Full Binary Tree
Check if two Nodes are Cousins
Convert Level Order Traversal to BST
ZigZag Tree Traversal
Count Number of SubTrees
Vertical Width of a Binary Tree
Path Count in Directed Graph
Count set bits
Reverse array in groups
Smallest Positive Missing
Wave Array
Rotate and delete
Rearrange Array Alternately
Kadane's Algorithm
Majority Element
Binary Array Sorting
Indexes of Subarray Sum
Count the number of possible triangles
Sort by Absolute Difference
Triplet Sum in Array
Boolean Matrix
Spirally traversing a matrix
Rotate by 90 degree
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarrays with equal 1s and 0s
Longest Consecutive Subsequence
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Activity Selection
Job Sequencing Problem
Stickler Thief
Egg Dropping Puzzle
Minimum number of jumps
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Equal Sum Partition
Sort according to an Array
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Implement Trie
Shortest Common Supersequence
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Print Anagrams Together
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Paths to reach origin
Equivalent Sub-Arrays
Single Among Doubles in a Sorted
Count Occurences of Anagrams
Single Among Doubles
Pythagorean Triplet
Happiest Triplet
Mr Modulo and Pairs
Pair Sum Closest to 0
Search in Rotated Sorted Array
Count pairs Sum in matrices
Sum of bit differences
Print Binary Tree levels in sorted order
Max absolute difference
Form the Largest Number
Efficiently sorting numbers in range from 0 to n^2 - 1
Longest subarray with sum divisible by K
Check if a string is repetition of its substring of k-length
Sort the given array after applying the given equation
Swapping pairs make sum equal
Check if frequencies can be equal
Substrings with K Distinct
Sort in specific order
Form a palindrome
Smallest subarray with all occurrences of a most frequent element
Maximum distinct elements after removing K elements
Longest Subarray with Sum K
Sum of two large numbers
Equal 0, 1 and 2
The Tiny Miny
k largest elements
Smallest distinct window
Count of substrings containing K ones
Longest Substring with K Uniques
Longest Palindrome in a String
Product Pair
K-th element of two Arrays
Arranging the array
Possible groups
Rod Cutting
Missing element of AP
Maximize the sum of selected numbers from a sorted array to make it empty
Longest substring with equal number of 0s and 1s
First negative in every window of size k
Maximum possible sum
Transform to prime
Minimum Swaps for Bracket Balancing
Find largest word in dictionary
Friends Pairing Problem
String Subsequence Game
CamelCase Pattern Matching
Unique Number II
Bleak Numbers
Collecting Trees
Angle between hour and minute hand
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Sieve of Eratosthenes
String Subsequence
Gold Mine Problem
Number of subsequences in a string divisible by n
Trail of ones
Find distinct elements
nCr
Subsets with XOR value
Maximum path sum in matrix
Count distinct pairs with difference k
Array Pair Sum Divisibility Problem
Knight Walk
Permutation with Spaces
Number of paths in a matrix with k coins
Game with String
Rotate a Matrix by 180 Counterclockwise
Multiply 2 matrices
Missing number in matrix
Maximum sum of hour glass
Exit Point in a Matrix
Longest Repeating Subsequence
Rotate Each Row of Matrix K Times
Decode the string
Is Sudoku Valid
Stream First Non-repeating
Check If two Line segments Intersect
2D Hopscotch
Possible paths
Kth Largest in a Stream
Snake and Ladder Problem
Geek and Strings
Satisfy the equation
Eulerian Path in an Undirected Graph
Transitive closure of a Graph
Replace O's with X's
Mail System Design
Rohan's Love for Matrix
Queries on Strings
Find the string in grid
Number of Palindromic paths in a Matrix
Nodes at even distance
Reverse Delete Algorithm for Minimum Spanning Tree
Help a Thief!!!
Count the paths
Floyd Warshall
Flood fill Algorithm
Largest subsquare surrounded by X
Shortest Source to Destination Path
Reverse Spiral Form of Matrix
Hamiltonian Path
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
LRU Cache
Alien Dictionary
Smallest range in K lists
Fixing Two nodes of a BST
Max Path Sum 2 Special Nodes
Trapping Rain Water
Smallest window containing all characters
Histogram Max Rectangular Area
Max of min for every window size
Find median in a stream
Solve the Sudoku
Minimum Cost Path
Merge Without Extra Space
Count Pairs in an Array
Ugly Numbers
Circle of strings
Sum-string
Minimum sum partition
Bit Difference
Median in a row-wise sorted Matrix
Convex Hull
Phone directory
Adventure in a Maze
Interesting Queries
Let's Play!!!
Reverse an Array
DELETED - Find Count Digit[Duplicate]
Arrays (Sum of array)
Print string N times
Convert standard time to military time
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 !