Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
nik1996
Current POTD Streak
STREAK
00
/1464
days
Longest streak/Global longest streak
Language Used
C++, Python, C
Coding Score
1661
Problem Solved
671
Contest Rating
__
2211 points
Contributor
2211 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 (0)
BASIC (52)
EASY (235)
MEDIUM (325)
HARD (59)
SPP - Palindrome Family
SP - Beautiful Pairs
SP - Stack Design
SP - BST Traversal
SP - Second Smallest in Range
Alternating elements
Weigh the strings
Adjacent Equal
Out the Kth
K Frequent
Column with Minimum Difference
Game of Function
Power of Number
Index of Left
K Sum
Shatter the Cycle
Sum to Primes
Student Record
Check the Brackets
Transmutation
Sum Array
Maximum Integer Value
Triangle and Square
M and N
Minimum Cost of Gas
Tower Construction
Continuous Series
Maximize The Profit
The Manipulator
Facebook friend or not?
Does a solution exist
Repeating Digits
Scalene or Not
Reverse 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
Delete nodes having greater value on right
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
Check for BST
Right View of Binary Tree
Mirror Tree
Two Mirror Trees
Maximum Width of Tree
Delete without head pointer
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
Identical Trees
Root to leaf path sum
Square Root
Nodes without a Sibling
Insertion at doubly linked list
Lowest Common Ancestor in a BST
Run Length Encoding
Largest subarray of 0's and 1's
Level Order Line by Line
BST Keys in a Range
Minimum Depth of a Binary Tree
Odd even level difference
Binary Tree to BST
K-Palindrome
Remove every k'th node
Leaves at Same Level or Not
Convert to Roman No
Expression Tree
Max distance between same elements
Longest Consecutive Subsequence
Delete in a Singly Linked List
Minimum distance in an Array
Array Duplicates
Special Stack
Longest consecutive sequence in Binary tree
Level order traversal
Inorder Successor in BST
More than n/k Occurrences
Perfect Binary Tree
Full Binary Tree
Triplet with 0 sum in BST
Symmetric Tree
Delete Alternate Nodes
Merge Lists Alternatingly
Maximum Pairwise Computed Value
Queue Reversal
Reverse first K of a Queue
Height of Spiral Tree
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Sum of Left Leaf Nodes
Closest Neighbour in BST
Brothers From Different Roots
Exchange the Leaf Nodes
Sum of Leaf Nodes at Min Level
Tilt of Binary Tree
Convert To Doubly
First Set Bit
Rightmost different bit
Check K-th Bit
Longest Consecutive 1's
Power of 2
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Roof Top
Sort by Absolute Difference
Print Matrix in snake Pattern
Anagram
Isomorphic Strings
Reverse Words
Minimum indexed character
Non Repeating Character
Parenthesis Checker
Minimum indexed character
Generate Binary Numbers
Minimum Cost of ropes
N meetings in one room
Count number of hops
First Repeating Element
Check Equal Arrays
Missing in Array
Collecting wood
Product array puzzle
Excel Sheet | Part - 2
Sub array of given sum in 2-D array
Spiral Matrix
Lucy's home
StayHomeTask
Maximum selections
LCP
Mario & Pauline
Tom's Theater
Missing And Repeating
Subarrays with given sum
Pairs of equals Sum
Max value
Number of pairs with maximum sum
Pairs which are Divisible by 4
Pairs with certain difference
Greedy Fox
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Min sum formed by digits
Move all negative elements to end
String Manipulation
Chocolate Distribution Problem
Count pairs Sum in matrices
Count the triplets
Find Pair Given Difference
Drive the car
Smallest subarray with sum greater than x
Count increasing Subarrays
Alternate Positive Negative
Maximum Possible Sum of Products
1[0]1 Pattern Count
Sort in specific order
Nearest multiple of 10
Toppers Of Class
Reorganize The Array
Facing the sun
Difficulty of sentence
Distinct Substrings
Two Sum - Pair with Given Sum
Rearrange to Make arr[i] = i
Sort Unsorted Subarray
Find all pairs with a given sum
Number of occurrence
Maximum repeating number
Does array represent Heap
Convert an array to reduced form
Find missing in second array
String's Count
String comparison
Min Number of Flips
Substrings with same first and last characters
Two sum -Pairs with 0 Sum
At Least K Occurrences
Maximum sum of subarray less than or equal to x
Four Elements
Charul and vessels
Chocolate Station
Pangram Strings
Pair with given sum in a sorted array
Print Bracket Number
Is Binary Number Multiple of 3
Circle and Lattice Points
Number of 1 Bits
Reverse Bits
Nth Fibonacci Number
Copy Set Bits in Range
Toggle bits in the given range
Element that appears once where every element occurs twice
Maximum Sum Problem
Maximum Product Cutting
Shortest path from 1 to n
Minimum steps to minimize n as per given condition
Magic Number
Reach the Nth point
Minimum number of Coins
Number Of Open Doors
Perfect Numbers
Pair cube count
Ticket sellers
Adjacents are not allowed
Trailing zeroes in factorial
Sum of all prime numbers between 1 and n
Tom and Jerry
Rearrange the Digits
Row with Minimum 1s
Wave Array
COVID Spread
Largest zigzag sequence
Overlapping rectangles
Help the Old Man!!!
Print Pattern
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Print Diagonally
SPP - Range Queries
SP - Jumping the Subtree
The great one
Longest Substring
Santa and Gift
Add the Triangles
Increment and Move
Maximum Simultaneous Difference
Santa and Gift
Rotten Oranges
Queries in Array
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
Max rectangle
Subtraction in Linked List
Distinct occurrences
LRU Cache
Box Stacking
Alien Dictionary
Merge Sort on Doubly Linked List
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Max Path Sum 2 Special Nodes
Number of Turns in Binary Tree
Trapping Rain Water
Max Circular Subarray Sum
Smallest window containing all characters
Histogram Max Rectangular Area
Max of min for every window size
Find median in a stream
Solve the Sudoku
Merge K sorted linked lists
Word Ladder I
Check Tree Traversal
The Painter's Partition Problem-II
Count Smaller elements
Largest rectangle of 1s with swapping of columns allowed
Longest Prefix Suffix
Number of distinct subsequences
Circle of strings
Similar expressions
Edit Distance
Minimum sum partition
Palindromic Partitioning
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Longest valid Parentheses
Longest Zig-Zag Sub Sequence
Word Break - 2
N-Queen Problem
Phone directory
Longest Path in a matrix
Word Wrap
Maximum sum Rectangle
Smallest Positive Integer that can not be represented as Sum
Longest Even Length Substring
Sorting Elements of an Array by Frequency
Rearrange characters
Find the Maximum sum
SP - Special Subsequences
SP - Playing with Stacks
The Game of Digits
Pattern Matcher
Ups and Downs
Pick the one
Unknown Sort
Count Students
One in the Matrix
Reach top of stair
Unit Digit
The Game of Digits
Sorting distance
Maximum number evaluation
K<sup>th</sup> Maximum element of Max-Heap
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
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
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
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
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Two Stacks in an Array
Max sum path in two arrays
The Celebrity Problem
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
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
Validate an IP Address
Remove loop in Linked List
Largest BST
Interleaved Strings
Sorted subsequence of size 3
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Palindrome Linked List
Rat in a Maze Problem - I
Bipartite Graph
Max sum subarray by removing at most one element
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
Print Nodes having K leaves
Find triplets with zero sum
Sort a stack
Duplicate Subtree
Top View of Binary Tree
Find Common Nodes in two BSTs
Peak element
Polynomial Addition
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
Construct expression tree
K Sum Paths
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Construct tree from Inorder and LevelOrder
Vertical sum
Maximum path sum from any node
Predecessor and Successor
Leaves to DLL
Largest Independent Set Problem
Right Sibling in Binary Tree
Duplicate Subtrees
Construct Tree from Preorder Traversal
Sum of nodes on the longest path
Kth Ancestor in a Tree
Check if two Nodes are Cousins
Convert Level Order Traversal to BST
Count Number of SubTrees having given Sum
Vertical Width of a Binary Tree
SP - K Sum
Swap Kth nodes from ends
Count set bits
Reverse array in groups
Smallest Positive Missing
Wave Array
Possible Words From Phone Digits
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Indexes of Subarray Sum
Count the number of possible triangles
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
Subarray with 0 sum
Subarrays with equal 1s and 0s
Longest Consecutive Subsequence
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Kth smallest element
Minimum Platforms
Largest number in K swaps
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Minimum number of jumps
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Equal Sum Partition
Sort according to an Array
Allocate Minimum Pages
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Implement Trie
Shortest Common Supersequence
Rotten Oranges
Steps by Knight
Lazy Kid
Shortest Distance to Every Character
Maximize The Cut Segments
Container With Most Water
Overlapping Intervals
Word Break
Generate Parentheses
Number of Sweets
Word Search
Prerequisite Tasks
4 Sum - All Quadruples
Excel Sheet | Part - 1
Game of Corners
Hannah and her Cookie Box
Distorted Needle in Haystack
Mandatory Flip Bit
Connect the Ropes
Sort 0s, 1s and 2s
Paths to reach origin
Taking 1 out of 3 consecutives
Complement
Maximum Sub Array
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Sum of Subarrays
Equal Sum
Longest Span in two Binary Arrays
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count Occurences of Anagrams
Count of Subarrays
Single Among Doubles
Happiest Triplet
Painting the Fence
Pair Sum Closest to 0
Search in Rotated Sorted Array
Sum of bit differences
Maximum Intervals Overlap
Max absolute difference
Form the Largest Number
Add Binary Strings
Subarray Sum Divisible By K
Maximum Product Subarray
Longest subarray with sum divisible by K
Row with max 1s
Swapping pairs make sum equal
Form a palindrome
Nuts and Bolts Problem
Rotate a Matrix
Maximum distinct elements after removing K elements
Longest Subarray with Sum K
Transform String
Count the Reversals
Cutting Binary String
Sum of two large numbers
Max Sum without Adjacents
Reverse each word in a given string
Length of the longest substring
The Tiny Miny
Maximum Sum Path in Two Arrays
k largest elements
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
Minimum steps to get desired array
Product Pair
Tic Tac Toe
K-th element of two Arrays
Arranging the array
Possible groups
Triplets with Smaller Sum
Rod Cutting
Number of pairs
Maximize the sum of selected numbers from a sorted array to make it empty
Smallest Absolute Difference
Longest Palindromic Subsequence
First negative in every window of size k
Maximum difference of zeros and ones in binary string
Not a subset sum
Construct binary palindrome by repeated appending and trimming
Palindrome in Alphanumeric String
Minimum Deletions
Valid Substring
Permutations of a String
Number following a pattern
Friends Pairing Problem
Unique Number II
Bleak Numbers
Skip the work
Maximum bitonic subarray sum
Largest prime factor
Angle between hour and minute hand
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)
Dice throw
Perfect Sum Problem
Longest subsequence-1
Count ways to N'th Stair(Order does not matter)
Subset with sum divisible by k
Knapsack with Duplicate Items
Temple Offerings
nCr
Number of ways
Count of sum of consecutives
Subsets with XOR value
Maximum path sum in matrix
Special Keyboard
Longest Bitonic subsequence
Handshakes
Count distinct pairs with difference k
Array Pair Sum Divisibility Problem
Stepping Numbers
Find nth root of m
Jumping Numbers
Fraction to Repeating Decimal
Next Permutation
Next Permutation
Strange Matrix
Mics & Jury
Find a pair with given target in BST
Maximum Sum Component
Smaller on Left
Connect words
Longest alternating subsequence
Decode the string
Is Sudoku Valid
Total Decoding Messages
Stream First Non-repeating
Buying Vegetables
Largest square formed in a matrix
Kth Largest in a Stream
Snake and Ladder Problem
Geek and Strings
Replace O's with X's
Two odd Occuring
Mail System Design
Special Matrix
Queries on a Matrix
Broken blocks
Nodes at even distance
Help a Thief!!!
Count the paths
Largest subsquare surrounded by X
Longest Palindromic Substring
Rotate Array
Game of Function
Pairing the brackets
Unit Digit
Cyclic Left Shift
Print Linked List
Find Length of Linked List
Count Leaves in Binary Tree
Postorder Traversal
Preorder Traversal
First Occurence
Sum Except First and Last
Palindromic Array
Linked List Insertion At End
Minimum element in BST
Circular Linked List Traversal
Sum of Binary Tree
Insert in Middle of Linked List
longest substring containing '1'
Bit Difference
Number is sparse or not
Binary String
Remove common characters and concatenate
Sum of numbers in string
First n Fibonacci
Value equal to index value
Segregate Even and Odd numbers
Swap kth elements
Shortest direction
Replace the Bit
URLify a given string
One odd Occuring
Array Subset
Rotating an Array
Remove Duplicates from unsorted array
Boolean String Value
Minimize string value
Find unique element
Odd or Even
The OR Gate
Binary representation
Check for Power
Find position of set bit
The XOR Gate
Find the fine
Binary Shift to Divide
Sort first half in ascending and second half in descending
Parity of unsigned integer
Closest Number
Ways To Tile A Floor
Number of Integer solutions
Squares in a Matrix
close
N
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 !