Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
the_ri6v
Current POTD Streak
STREAK
703
/1431
days
Longest streak/Global longest streak
Institution
DY Patil Institute of Engineering & Technology Ambi
1 Rank
Institute Rank
Language Used
Python, C++, C
Coding Score
2817
Problem Solved
860
Contest Rating
__
Apply for Campus Mantri
81 points
Contributor
81 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
183 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
SCHOOL (10)
BASIC (55)
EASY (294)
MEDIUM (428)
HARD (73)
Reverse alternate nodes in Link List
Reverse a Linked List in groups of given size
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
Detect Loop in linked list
Delete nodes having greater value on right
Quick Sort on Linked List
Insert in Sorted Circular Linked List
Merge Sort
Quick Sort
Construct Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Intersection Point in Y Shaped Linked Lists
Diameter of a Binary Tree
Heap Sort
Merge two sorted linked lists
Sum Tree
Construct Binary Tree from Parent Array
Connect Nodes at Same Level
Flattening a Linked List
Tree Boundary Traversal
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
Lowest Common Ancestor in a Binary Tree
Min distance between two given nodes of a Binary Tree
Square root of a number
Maximum difference between node and its ancestor
Absolute List Sorting
Max sum path in two arrays
The Celebrity Problem
Topological sort
Vertical Traversal of Binary Tree
Merge K sorted linked lists
Find the number of islands
Find kth element of spiral matrix
Max sum in the configuration
Get Min from Stack
Serialize and deserialize a binary tree
Gas Station
Make Binary Tree From Linked List
Toeplitz matrix
Check if subtree
Extreme nodes in alternate order
Kth element in Matrix
Is Binary Tree Heap
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Distinct occurrences
Max length chain
Minimum Spanning Tree
Additive sequence
Largest BST
Interleaved Strings
Sorted subsequence of size 3
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Palindrome Linked List
Strongly Connected Components (Kosaraju's Algo)
Rat in a Maze Problem - I
Bipartite Graph
Number of root to leaf paths
Find the Closest Element in BST
BST with Dead End
Merge two BST 's
Root to leaf paths sum
Bridge edge in a graph
Find triplets with zero sum
Duplicate subtree in Binary Tree
Top View of Binary Tree
k-th Smallest in BST
Peak element
Merge Sort for Linked List
Euler Circuit in an Undirected Graph
Euler circuit and Path
Merge Sort on Doubly Linked List
Ancestors in Binary Tree
Binary Tree to CDLL
Pair Sum in BST
Root to Leaf Paths
Populate Inorder Successor for all nodes
XOR Linked List
Counting elements in two arrays
Linked List that is Sorted Alternatingly
K Sum Paths
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Arrange Consonants and Vowels
Count the nodes at distance K from leaf
Vertical sum
Insert in Sorted way in a Sorted DLL
Check if Tree is Isomorphic
Maximum path sum from any node
Predecessor and Successor
Check for Children Sum Property in a Binary Tree
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Duplicate Subtrees
Sum of nodes on the longest path
Kth Ancestor in a Tree
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Maximum sum of Non-adjacent nodes
Mother Vertex
Count total set bits
Gray to Binary equivalent
Tower Of Hanoi
Smallest Positive Missing Number
Power Of Numbers
Maximum occured integer
Rotate and delete
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Trapping Rain Water
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Union of Two Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Triplet Sum in Array
Number of pairs
Possible paths between 2 vertices
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Distance of nearest cell having 1
Subarray with 0 sum
Subarray range with given sum
Sorting Elements of an Array by Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Evaluation of Postfix Expression
Stock span problem
Next Greater Element
K Sized Subarray Maximum
Nearly sorted
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Minimum Jumps
Detect Cycle using DSU
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Allocate Minimum Pages
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Shortest Common Supersequence
Nth catalan number
Rotten Oranges
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
Closest Three Sum
Word Break
Stock buy and sell II
Word Search
Find All Four Sum Numbers
Excel Sheet | Part - 1
Paths to reach origin
Missing And Repeating
Pascal Triangle
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Top k numbers in a stream
Longest Span in two Binary Arrays
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Consecutive 1's not allowed
Pythagorean Triplet
Painting the Fence
Search in Rotated Sorted Array
Sum of bit differences
Largest Number formed from an Array
Alternate Vowel and Consonant String
Add Binary Strings
Maximum Product Subarray
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
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Column name from a given column number
Substrings with K Distinct
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Rotate a 2D array without using extra space
Longest Subarray with Sum K
Factorials of large numbers
Search Pattern (KMP-Algorithm)
Shuffle integers
Find the N-th character
k largest elements
Sum of XOR of all pairs
Find missing in second array
Longest Common Substring
Smallest distinct window
Longest K unique characters substring
Longest Palindrome in a String
Look and Say Pattern
K-th element of two Arrays
String formation from substring
Longest Arithmetic Progression
Rod Cutting
K closest elements
Missing element of AP
Minimum swaps and K together
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Longest Prefix Suffix
Equalize the Towers
Minimum sum
Not a subset sum
Minimize the Heights II
Transform to prime
First and last occurrences of x
Reaching the heights
Minimum Deletions
A difference of values and indexes
Print N-bit binary numbers having more 1s than 0s
Valid Substring
Permutations of a String
Number following a pattern
Friends Pairing Problem
Longest repeating and non-overlapping substring
Sum of Products
Count the subarrays having product less than k
Unique Number II
Bleak Numbers
Ways to sum to N
Modular Exponentiation for large numbers
Edit Distance
Game of XOR
Largest prime factor
Maximum Tip Calculator
Min cut Square
Modified Game of Nim
Minimum number of deletions and insertions
Maximum sum increasing subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Sequence of Sequence
Count of n digit numbers whose sum of digits equals to given sum
String Subsequence
Minimum Time
Mobile numeric keypad
Gold Mine Problem
Coin Change (Minimum Coins)
Dice throw
Perfect Sum Problem
Smallest number
Longest subsequence-1
Power Set
Count ways to N'th Stair(Order does not matter)
Knapsack with Duplicate Items
nCr
Geek and its Game of Coins
Minimum steps to destination
Partition Equal Subset Sum
Get Minimum Squares
Count possible ways to construct buildings
Count digit groupings of a number
Array Pair Sum Divisibility Problem
Prime Pair with Target Sum
Number of paths
Nth Natural Number
Number of paths in a matrix with k coins
Count in array
Game with String
Smith Number
Count of AP Subsequences
Next Permutation
Maximum sum of hour glass
How Many X's?
Longest Repeating Subsequence
Longest alternating subsequence
Left Rotate Matrix K times
Decode the string
Total Decoding Messages
First non-repeating character in a stream
Check If two Line segments Intersect
Villain Con
Possible paths
Print leaf nodes from preorder traversal of BST
Number of Rectangles in a Circle
Largest square formed in a matrix
Integral Points Inside Triangle
Transitive closure of a Graph
Replace O's with X's
Count all Possible Path
Find the string in grid
Count the paths
Floyd Warshall
Flood fill Algorithm
Techfest and the Queue
Largest subsquare surrounded by X
Shortest Source to Destination Path
Divisibility tree
Police and Thieves
Hamiltonian Path
Recursively remove all adjacent duplicates
Subset Sum Problem
Form a palindrome
Search Pattern (Rabin-Karp Algorithm)
All Palindromic Partitions
3 sum closest
Bellman-Ford
Subarrays with sum K
Coin Piles
Remove K Digits
Substrings of length k with k-1 distinct elements
Maximum XOR of two numbers in an array
Construct list using given q XOR queries
Number of Provinces
Find duplicate rows in a binary matrix
Find rectangle with corners as 1
Paths from root with a specified sum
Shortest Prime Path
Insertion Sort for Singly Linked List
Remove all occurences of duplicates in a linked list
Minimize the Heights I
Anti Diagonal Traversal of Matrix
Unique Number III
All Unique Permutations of an array
Course Schedule
Clone an Undirected Graph
Min Cost Climbing Stairs
Overlapping Intervals
Buy and Sell a Share at most twice
Find Kth permutation
Reverse a Stack
Maximum product subset of an array
K-th Largest Sum Contiguous Subarray
Node in subtree or not
Maximum Meetings in One Room
Buy Maximum Stocks if i stocks can be bought on i-th day
Exactly one swap
Interleave the First Half of the Queue with Second Half
Find shortest safe route in a matrix
Check if a given graph is tree or not
Number of Distinct Islands
Minimum Multiplications to reach End
Number Of Enclaves
Eventual Safe States
City With the Smallest Number of Neighbors at a Threshold Distance
Path With Minimum Effort
Shortest path in Undirected Graph
Shortest path in Directed Acyclic Graph
Majority Element II
Koko Eating Bananas
Longest subarray with Atmost two distinct integers
Minimal Cost
Aggressive Cows
Smallest Divisor
Combination Sum II
Shortest Path in Weighted undirected graph
Minimum Absolute Difference In BST
Maximum Sum Combination
Non-overlapping Intervals
Stickler Thief II
Insert Interval
Longest String Chain
Partitions with Given Difference
Floor in BST
Largest Divisible Subset
Make array elements unique
Minimum repeat to make substring
Prime List
Water the plants
Unique Paths in a Grid
Number of Good Components
Remove the balls
Find Kth permutation
Subarray Counting
Fraction pairs with sum 1
New Year Resolution
Grinding Geek
Flatten BST to sorted list
Minimize the Difference
Pairs violating the BST property
Kth common ancestor in BST
Kth Missing Positive Number in a Sorted Array
Count Subarrays with given XOR
Set Matrix Zeroes
Minimum cost to connect all houses in a city
Meeting Rooms
Find All Triplets with Zero Sum
Split array in three equal sum subarrays
Search in an almost Sorted Array
Find H-Index
Longest Subarray with Majority Greater than K
Count all triplets with given sum in sorted array
Implement Pow
K Closest Points to Origin
Longest Bounded-Difference Subarray
Lexicographically Largest String After K Deletions
Group Balls by Sequence
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Wildcard Pattern Matching
Max rectangle
Subtraction in Linked List
LRU Cache
AVL Tree Insertion
Alien Dictionary
Smallest range in K lists
AVL Tree Deletion
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Maximum Path Sum between 2 Special Nodes
String Permutations
Max Circular Subarray Sum
Merge Without Extra Space
Smallest window in a string containing all the characters of another string
Histogram Max Rectangular Area
Maximum of minimum for every window size
Find median in a stream
Solve the Sudoku
Allocate minimum number of pages
Minimum Cost Path
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
Next Smallest Palindrome
Count Pairs in an Array
The Painter's Partition Problem-II
Count Smaller elements
Largest rectangle of 1s with swapping of columns allowed
Number of distinct subsequences
Wildcard string matching
Circle of strings
Sum-string
Sub-arrays with equal number of occurences
Minimum Points To Reach Destination
Minimum sum partition
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Strictly Increasing Array
Median in a row-wise sorted Matrix
The Palindrome Pattern
Nth Natural Number
Generalised Fibonacci numbers
Boolean Parenthesization
Longest valid Parentheses
Possible Paths in a Tree
N-Queen Problem
Brackets in Matrix Chain Multiplication
Rohan's Love for Matrix
Articulation Point - II
Find all Critical Connections in the Graph
Distribute candies in a binary tree
Split Array Largest Sum
Find the String
Kth Smallest Number in Multiplication Table
Min Chars to Add for Palindrome
Subset sums between the given range
Largest rectangular sub-matrix whose sum is 0
Vertex Cover
Maximum Connected group
Minimize Max Distance to Gas Station
Candy
Account Merge
Better String
Max min Height
Geekina Hate 1s
Making A Large Island
Meeting Rooms III
Minimum Weight Cycle
Reverse a linked list
Occurence of an integer in a Linked List
Pairwise swap elements of a linked list
Given a linked list of 0s, 1s and 2s, sort it.
Linked list of strings forms a palindrome
Detect Loop in linked list
Remove duplicates from an unsorted linked list
Sorted insert for circular linked list
Delete node in Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Insertion Sort
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Delete without head pointer
Height of Binary Tree
Check for Balanced Tree
Nth node from end of linked list
Middle of a Linked List
Left View of Binary Tree
Delete Middle of Linked List
Decimal Equivalent of Binary Linked List
Intersection of two sorted Linked lists
Find Transition Point
Queue using two Stacks
Remove duplicate element from sorted Linked List
Stack using two queues
Level Order in spiral form
Reverse Level Order Traversal
DFS of Graph
Insert a node in a BST
BFS of graph
Determine if Two Trees are Identical
Root to leaf path sum
Print all nodes that don't have sibling
Lowest Common Ancestor in a BST
Implement two stacks in an array
Max sum path in two arrays
Largest subarray of 0's and 1's
Remove duplicate elements from sorted Array
Print BST elements in given range
Largest subarray with 0 sum
Minimum Depth of a Binary Tree
Remove duplicates in array
Binary Tree to BST
Unique rows in boolean matrix
Remove every kth node
Check if all leaves are at same level
Multiply two linked lists
You and your books
Max distance between same elements
Print matrix in diagonal pattern
Check whether BST contains Dead End
Delete a Node in Single Linked List
Kth largest element in BST
Minimum distance between two numbers
Find duplicates in an array
Count distinct elements in every window
Three way partitioning
Find Common Nodes in two BSTs
Level order traversal
Peak element
Inorder Successor in BST
Index of an Extra Element
Insert in a Sorted List
Split Linked List Alternatingly
Sum of leaf nodes in BST
Count More than n/k Occurences
Symmetric Tree
Delete Alternate Nodes
Find the Sum of Last N nodes of the Linked List
Count Pairs whose sum is equal to X
Find length of Loop
Median of BST
Normal BST to Balanced BST
Leaf under budget
Linked List Matrix
Reverse First K elements of Queue
Remove Half Nodes
Closest Neighbour in BST
Brothers From Different Roots
ZigZag Tree Traversal
Delete middle element of a stack
The New Line
Data Types
Learn to Comment
Swap the array elements
Predict the Column
Xoring and Clearing
Learning Structs
Reverse an Array
Find first set bit
Rightmost different bit
Check whether K-th bit is set or not
Maximum occured integer
Wave Array
Frequencies of Limited Range Array Elements
Equilibrium Point
Leaders in an array
Rotate Array
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Two Repeated Elements
Roof Top
Union of Two Sorted Arrays
Subarray with given sum
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Rotate by 90 degree
Determinant of a Matrix
Boundary traversal of matrix
Anagram
Subarray with 0 sum
Winner of an election
Check if string is rotated by two places
Strings Rotations of Each Other
Isomorphic Strings
Reverse Words
Panagram Checking
Non Repeating Character
Parenthesis Checker
Minimum Cost of ropes
N meetings in one room
Reach a given score
Union-Find
Count ways to N'th Stair
Count number of hops
First Repeating Element
Union of Arrays with Duplicates
Missing in Array
Product array puzzle
Roman Number to Integer
Top K Frequent Elements in Array - |
Three Sum Closest
Intersection of two arrays
Sort 0s, 1s and 2s
Count the pairs with maximum difference
Maximize Array Value After Rearrangement
Pascal Triangle
Count the elements
Rotation
Find the closest number
k modulus array element
k sorted array
Common elements
Split the Array
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Remove all duplicates from a given string
Move all negative elements to end
Chocolate Distribution Problem
Search in a Rotated Array
Count pairs Sum in matrices
Count the triplets
Find Pair Given Difference
Pairs with difference k
Swap and Maximize
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Single Number
Alternate positive and negative numbers
Remaining String
Kth distance
Rearrange a string
Rearrange string as alternate x and y occurences
Remove Duplicates
Nearest multiple of 10
Reorganize The Array
Facing the sun
Max Sum without Adjacents
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Rotate Bits
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Does array represent Heap
Modify the Array
Check if array is sorted
Sum Pair closest to target
String's Count
Longest Common Prefix of Strings
Longest substring with distinct characters
Smallest number in one swap
Substrings with same first and last characters
Count pairs with given sum
Segregate 0s and 1s
Large number division
Play With OR
First element to occur k times
Element with left side smaller and right side greater
Find the closest pair from two arrays
Array Subset of another array
First negative integer in every window of size k
Palindrome String
Total count
Pair with given sum in a sorted array
Print Bracket Number
Divisible by 5 or not
Minimum number of deletions.
Odd Even Problem
Binary representation of next number
Is Binary Number Multiple of 3
Padovan Sequence
Extract the Number from the String
Minimum Operations
Check if a number is divisible by 8
Number of 1 Bits
Find the Highest number
Armstrong Numbers
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Swap two nibbles in a byte
Copy Set Bits in Range
Product of Prime Factors
Maximum Sum Problem
Party of Couples
Maximize dot product
Shortest path from 1 to n
Count Odd Factors
Sum of all divisors from 1 to n
Count numbers containing 4
Amicable Pair
Find maximum number
N-divisors
Trail of ones
K-Palindrome
Happy Number
Reach the Nth point
Perfect Numbers
Minimum Cost To Make Two Strings Identical
Count numbers which can be constructed using two numbers
Largest number possible
Recamans sequence
Compare two fractions
Form a number divisible by 3 using array digits
Reverse Coding
Left Index
Recursive sequence
Juggler Sequence
Summed Matrix
Arithmetic Number
Row with minimum number of 1's
Surround the 1's
Coverage of all Zeros in a Binary Matrix
Exit Point in a Matrix
Inorder Traversal and BST
Letters Collection
Print Pattern
Type Conversion
Array to BST
Sum of dependencies in a graph
Sum of k smallest elements in BST
Find maximum volume of a cuboid
Return Size
Kth call
Add - Auto Keyword
Convert to Hexadecimal
Global variable
Be Precise
Scientific Format
Type Inference
Smallest window containing 0, 1 and 2
Insert an Element at the Bottom of a Stack
Is it a tree?
Sort a k sorted doubly linked list
Fibonacci series up to Nth term
Stock Buy and Sell – Max one Transaction Allowed
Divisor Game
Max and Second Max
Find the first node of loop in linked list
Unique Number of Occurrences
Two Smallests in Every Subarray
Split an array into two equal Sum subarrays
Largest Pair Sum
Two Swaps
Maximize partitions in a String
Count pairs with given sum
Count Pairs whose sum is less than target
Union of Two Sorted Arrays with Distinct Elements
Intersection of Two arrays with Duplicate Elements
Find All Triplets with Zero Sum
Search in a row-wise sorted matrix
Find Only Repetitive Element from 1 to n-1
Unique Number I
Print Linked List elements
Count Linked List Nodes
Inorder Traversal
Check If Circular Linked List
Postorder Traversal
Implement Stack using Linked List
Implement stack using array
Implement Queue using array
Binary Search
Preorder Traversal
Implement strstr
Linked List Insertion
Minimum element in BST
Is Linked List Length Even?
Identical Linked Lists
Queue Reversal
Triplet Family
Magical Number
Power of 2
Reverse array in groups
Search an Element in an array
Searching an element in a sorted array
Check if strings are rotations of each other or not
Reverse a String
Union of two arrays
Check if two arrays are equal or not
Print first n Fibonacci Numbers
Maximize sum(arr[i]*i) of an Array
Find the closest number
Searching a number
Minimum Difference among K
Alternative Sorting
The problem of identical arrays
Immediate Smaller Element
Largest Element in Array
Cyclically rotate an array by one
First element to occur k times
Find minimum and maximum element in an array
Binary representation of next number
Check set bits
Check an Integer is power of 3 or not
Find position of set bit
Factorial
Prime Number
Input Integer
Print Statement
Print With Space
Print With Separator
Swap The Numbers
Arithmetic Operators
Print Without Space
Count Squares
Print GeeksForGeeks
Print GeeksForGeeks with quotes
Print Boolean value
Print the pattern | Set-1
Palindromic Array
Print alternate elements of an array
Print 1 To N Without Loop
Sum of Array Elements
Perfect Arrays
Find Index
Sum of Series
Value equal to index value
Count Digits
close
R
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 !