Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
D
16gandhihemani
Current POTD Streak
STREAK
11
/1477
days
Longest streak/Global longest streak
Institution
Thapar Institute of Engineering and Technology University, Patiala (Thapar University)
91 Rank
Institute Rank
Language Used
C++, Java, C
Coding Score
1478
Problem Solved
449
Contest Rating
__
Apply for Campus Mantri
7 points
Contributor
7 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
11 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
August
SCHOOL (1)
BASIC (22)
EASY (131)
MEDIUM (247)
HARD (48)
Rearrange characters
Minimum Moves
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Add 1 to a Linked List Number
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
Quick Sort
Bottom View of Binary Tree
Intersection in Y Shaped Lists
Diameter of a Binary Tree
Heap Sort
Sum Tree
Connect Nodes of Levels
Flattening a Linked List
Tree Boundary Traversal
Reverse alternate levels of a perfect binary tree
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Absolute List Sorting
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
Gas Station
Generate IP Addresses
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
Interleaved Strings
Count Palindromic Subsequences
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Strongly Connected
Rat in a Maze Problem - I
Bipartite Graph
BST with Dead End
Merge two BST 's
Merge k Sorted Arrays
Root to leaf paths sum
Bridge edge in a graph
Sort a stack
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Level order traversal
Merge Sort for Linked List
Union of Two Linked Lists
Pair Sum in BST
Root to Leaf Paths
Populate Inorder Successor for all nodes
Construct Tree from Inorder & Preorder
Isomorphic Trees
Maximum path sum from any node
Predecessor and Successor
Children Sum in a Binary Tree
Deletion and Reverse in Circular Linked List
Normal BST to Balanced BST
Duplicate Subtrees
Sum of nodes on the longest path
Kth Ancestor in a Tree
ZigZag Tree Traversal
Add two numbers represented by Linked List
Ceil in BST
Count set bits
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Union of 2 Sorted Arrays
Triplet Sum in Array
Spirally traversing a matrix
Distance of nearest cell having 1
Subarray with 0 sum
Longest Consecutive Subsequence
Postfix Evaluation
Next Greater Element
Infix to Postfix
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Combination Sum
M-Coloring Problem
Minimum Jumps
Detect Cycle using DSU
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Allocate Minimum Pages
Preorder to BST
Zero Sum Subarrays
Kth Smallest
Implement Trie
Rotten Oranges
Steps by Knight
Maximize The Cut Segments
Print Anagrams Together
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Prerequisite Tasks
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Single Among Doubles
Pythagorean Triplet
Painting the Fence
Search in Rotated Sorted Array
Smallest number with at least n trailing zeroes in factorial
Max Score from Subarray Mins
Maximum Product Subarray
Row with max 1s
Substrings with K Distinct
Longest Subarray with Sum K
Count the Reversals
Max Sum without Adjacents
Factorials of large numbers
Shuffle integers
Length of the longest substring
k largest elements
Longest Common Substring
Smallest distinct window
Longest Substring with K Uniques
Longest Palindrome in a String
Look and Say Pattern
K-th element of two Arrays
Triplets with Smaller Sum
Rod Cutting
K closest elements
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
Not a subset sum
Minimize the Heights II
First and Last Occurrences
Valid Substring
Minimum Swaps for Bracket Balancing
Permutations of a String
Friends Pairing Problem
Unique Number II
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Mobile numeric keypad
Gold Mine Problem
Perfect Sum Problem
Smallest number
Longest subsequence-1
Power Set
Knapsack with Duplicate Items
nCr
Geek and its Game of Coins
Maximum path sum in matrix
Partition Equal Subset Sum
Longest Bitonic subsequence
Subset Sums
Choose and Swap
Find nth root of m
Sum of Query II
Game with String
Fraction to Repeating Decimal
Next Permutation
Longest Repeating Subsequence
Longest alternating subsequence
Preorder Traversal and BST
Stream First Non-repeating
Segregate even and odd nodes in a Linked List
Largest square formed in a matrix
Kth Largest in a Stream
Snake and Ladder Problem
Two odd Occuring
Check Mirror in N-ary tree
Find the string in grid
Floyd Warshall
Negative weight cycle
Shortest Source to Destination Path
Dam of Candies
Transfiguration
Repeated String Match
Restricted Pacman
Iterative Postorder
Subset Sum Problem
Longest Palindromic Substring
All Palindromic Partitions
Bellman-Ford
Subarrays with sum K
Rearrange characters
Number of Provinces
Division without using multiplication, division and mod operator
IPL 2021 - Match Day 2
Box Stacking
Min Cost Climbing Stairs
Overlapping Intervals
Reverse a Stack
Maximum product subset of an array
K-th Largest Sum Contiguous Subarray
Maximum Meetings in One Room
Max Equal sum of 3 Stacks
Buy Maximum Stocks
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 Multiplications to reach End
Shortest Path in Undirected Graph
Shortest path in Directed Acyclic Graph
Longest subarray with Atmost two distinct integers
Frog Jump
Minimal Cost
Geek's Training
Number of greater elements to the right
Prime Factorization using Sieve
Prefix to Infix Conversion
Prefix to Postfix Conversion
Delete all occurrences of a given key in a doubly linked list
Postfix to Prefix Conversion
Postfix to Infix Conversion
Replace elements by its rank in the array
Convert Min Heap to Max Heap
Shortest Job first
Introduction to DP
Print Longest Increasing Subsequence
Bit's basic operations
Partitions with Given Difference
Index of the First Occurrence of pattern in a text
Floor in BST
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
Reverse a Doubly Linked List
Bubble Sort
Insertion Sort
Check for BST
Right View of Binary 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
Transform to Sum Tree
Intersection Sorted Linked Lists
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Stack using two queues
Reverse Level Order Traversal
DFS of Graph
Stack using Linked List
Implement stack using array
Insert a node in a BST
BFS of graph
Square Root
Insertion at doubly linked list
Lowest Common Ancestor in a BST
Minimum Depth of a Binary Tree
Binary Tree to BST
Unique rows in boolean matrix
Leaves at Same Level or Not
Multiply two linked lists
Kth largest element in BST
Special Stack
Three way partitioning
Disjoint set (Union-Find)
Insert in a Sorted List
Reverse Using Stack
Full Binary Tree
Merge Lists Alternatingly
Find length of Loop
Queue Reversal
Reverse first K of a Queue
Brothers From Different Roots
Check K-th Bit
Power of 2
Array Leaders
Floor in a Sorted Array
Print adjacency list
Isomorphic Strings
Parenthesis Checker
Generate Binary Numbers
Minimum Cost of ropes
N meetings in one room
Reach a given score
Union-Find
Count number of hops
Union of Arrays with Duplicates
Missing in Array
Product array puzzle
Roman Number to Integer
Search an element in sorted and rotated array
Max Value Permutation
Missing And Repeating
Pairs of equals Sum
Find Kth Rotation
Sort by Set Bit Count
Maximize sum after K negations
Pairs with certain difference
Common in 3 Sorted Arrays
Maximum no of 1's row
Move all negative elements to end
Chocolate Distribution Problem
Punish the Students
Find Pair Given Difference
Swap and Maximize
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Alternate Positive Negative
Remove Consecutive Characters
Sum of two numbers represented as arrays
Second Largest
Convert array into Zig-Zag fashion
Number of occurrence
Does array represent Heap
Min Number of Flips
Two sum -Pairs with 0 Sum
Element with left side smaller and right side greater
Merge two binary Max heaps
Four Elements
Palindrome String
Search array with adjacent diff at most k
Shop in Candy Store
Number of 1 Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Ceil The Floor
Copy Set Bits in Range
Geek and his Binary Strings
Maximize Toys
Page Faults in LRU
Check if it is possible to survive on Island
Find the minimum time
BBT counter
Prime Factors
Arithmetic Number
Array to BST
Plus One
Queue using stack
Count the Substrings
Split the binary string into substrings with equal number of 0s and 1s
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Find pairs with given sum in doubly linked list
All divisors of a Number
Find XOR of numbers from L to R.
Search in Linked List
Remove duplicates from a sorted doubly linked list
Array to Linked List
Bit Manipulation
Introduction to Trees
Binary Search Trees
Introduction to Doubly Linked List
Implementation of Priority Queue using Binary Heap
Graph and Vertices
Unique Binary Tree Requirements
Binary Tree Representation
Is it a Leap Year
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
LRU Cache
Box Stacking
Partition array to k subsets
Alien Dictionary
Smallest range in K lists
Nodes at given distance in binary tree
Max Path Sum 2 Special Nodes
String Permutations
Trapping Rain Water
Max Circular Subarray Sum
Histogram Max Rectangular Area
Find median in a stream
Solve the Sudoku
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
Merge Without Extra Space
Next Smallest Palindrome
The Painter's Partition Problem-II
Longest Prefix Suffix
Wildcard string matching
Edit Distance
Minimum sum partition
Palindromic Partitioning
Stock Buy and Sell – Max K Transactions Allowed
Check Tree Traversal
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Word Break - 2
N-Queen Problem
Phone directory
Word Wrap
Maximum sum Rectangle
Huffman Encoding
Water Connection Problem
Smallest Positive Integer that can not be represented as Sum
Word Break (Trie)
Shortest Unique prefix for every word
Articulation Point - I
Stock Buy and Sell – Max 2 Transactions Allowed
Chocolates Pickup
Better String
Find Length of Linked List
Queue using Linked List
Queue Using Array
Preorder Traversal
Sum Except First and Last
Search a node in BST
Linked List Insertion At End
Minimum element in BST
Bit Difference
Sorted Array Search
Value equal to index value
Largest Element in Array
Rotate Array by One
Array Subset
Min and Max in Array
Odd or Even
Find position of set bit
Set the rightmost unset bit
Count Squares
Swap two numbers
Sorted matrix
Preorder Traversal
Reverse an Array
close
D
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 !