Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
sambhavkaul
Current POTD Streak
STREAK
02
/1426
days
Longest streak/Global longest streak
Institution
Panjab University
8 Rank
Institute Rank
Language Used
C++, C
Coding Score
1279
Problem Solved
456
Contest Rating
__
Apply for Campus Ambassador
39 points
Contributor
39 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
42 submissions in current year
Current
2024
2023
2022
2021
2020
January
February
March
April
May
June
SCHOOL (0)
BASIC (32)
EASY (169)
MEDIUM (224)
HARD (31)
Nearly Sorted Algorithm
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
Detect Loop in 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
Reverse alternate levels of a perfect binary tree
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
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
Get Min from Stack
Serialize and deserialize a binary tree
Gas Station
Wildcard Pattern Matching
Extreme nodes in alternate order
Kth element in Matrix
Is Binary Tree Heap
Clone a Binary Tree
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Sorted subsequence of size 3
Count Palindromic Subsequences
Minimum Swaps to Sort
Palindrome Linked List
Rat in a Maze Problem - I
Bipartite Graph
Closest in BST
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
Print Nodes having K leaves
Sort a stack
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
Polynomial Addition
Ancestors in Binary Tree
Pair Sum in BST
Root to Leaf Paths
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Vertical sum
Children Sum in a Binary Tree
Diagonal sum in binary tree
Check if two Nodes are Cousins
ZigZag Tree Traversal
Coin Change - Minimum number of coins
Pairwise swap of nodes in LinkedList
Mother Vertex
Floor in BST
Ceil in BST
Pair Sum in BST
Smallest Positive Missing
Possible Words From Phone Digits
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Rotate Array
Kadane's Algorithm
Count Inversions
Two Repeated Elements
Smallest Positive missing number
Unique BST's
Indexes of Subarray Sum
Count the number of possible triangles
Triplet Sum in Array
Possible paths between 2 vertices
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Level of Nodes
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray with 0 sum
Subarray range with given 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
K Sized Subarray Maximum
Kth largest element
Kth smallest element
K Most occurring elements
Nearly sorted
Rearrange characters
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Black and White
Combination Sum
Unique Subsets
M-Coloring Problem
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
nCr
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Largest number
K nearest Points
Number of Unique Paths
Equal Sum Partition
Sort according to an Array
Allocate Minimum Pages
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 only Repeated
Longest Subarray Of Evens And Odds
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Container With Most Water
Most Frequent Non Bad word
Top K Frequent in Array
K closest point to origin
Maximum Subarray Sum
Closest Three Sum
Generate Parentheses
Word Search
Word Boggle
Maximum Path Sum from Root to Leaf when flipped
Hard Arrangement
Prerequisite Tasks
Maximum Water Between Two Buildings
Row with max 1s
Maximize Number of 1's
Consecutive 1's not allowed
Painting the Fence
Search in Rotated Sorted Array
Subarray Sum Divisible By K
Row with max 1s
Palindrome SubStrings
Form a palindrome
Longest Subarray with Sum K
k largest elements
Longest Common Substring
Longest Palindrome in a String
K-th element of two Arrays
Rod Cutting
Min Swaps to Group 1s
Find the number of subarrays having even sum
Minimum sum
First and Last Occurrences
Minimum Deletions
Print N-bit binary numbers having more 1s than 0s
Minimum number of deletions and insertions
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Coin Change (Minimum Coins)
Knapsack with Duplicate Items
Maximum path sum in matrix
Partition Equal Subset Sum
Longest Bitonic subsequence
Get Minimum Squares
Subset Sums
Game with String
Find the Safe Position
Longest Repeating Subsequence
Total Decoding Messages
Stream First Non-repeating
Floyd Warshall
Shortest Source to Destination Path
Police and Thieves
Closest Similar Elements
Iterative Inorder
Subset Sum Problem
Longest Palindromic Substring
Form a palindrome
Covid Spread
Bellman-Ford
Player with max score
Gray Code
Check if a String is Subsequence of Other
Connect Nodes at Same Level
Minimize number of Students to be removed
Neeman's Shoes
All Unique Permutations of an array
Shortest Path in Undirected Graph
Frog Jump
Aggressive Cows
Floor in BST
Sahil love good scorer
Reverse a linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Inorder Traversal
Check for BST
Right View of Binary Tree
K distance from root
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
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
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
Largest subarray of 0's and 1's
Level Order Line by Line
BST Keys in a Range
Remove duplicates in array
Odd even level difference
Binary Tree to BST
Leaves at Same Level or Not
Third largest element
Josephus problem
Expression Tree
Max distance between same elements
Kth largest element in BST
Minimum distance in an Array
Array Duplicates
Max Level Sum in Binary Tree
Special Stack
Level order traversal
Inorder Successor in BST
Intersection of Two Linked Lists
Insert in a Sorted List
More than n/k Occurrences
Full Binary Tree
Symmetric Tree
Count Pairs whose sum is equal to X
Maximum Node Level
Find length of Loop
Queue Reversal
Reverse first K of a Queue
Height of Spiral Tree
Sum of Left Leaf Nodes
Deque Implementations
Max and Second Max
Hashing for pair - 1
Hashing for pair - 2
Fibonacci Numbers - Top Down DP
Fibonacci Numbers - Bottom Up DP
Coin Change - Number of ways
Inorder traversal of a BST
Levelorder traversal of a BST
Factorial Of Number
Digits In Factorial
GP Term
Primality Test
Minimum adjacent difference in a circular array
Wave Array
Equilibrium Point
Array Leaders
Count 1's in binary array
Floor in a Sorted Array
Roof Top
Print adjacency list
Print Matrix in snake Pattern
Transpose of Matrix
Matrix Boundary Traversal
Separate chaining in Hashing
Naive Pattern Search
Count Non-Repeated Elements
Anagram
Winner of an election
Isomorphic Strings
The Modified String
Reverse Words
Minimum indexed character
Panagram Checking
Non Repeating Character
Generate Binary Numbers
Minimum Cost of ropes
N meetings in one room
Count Total Digits in a Number
Power Set Using Recursion
Union-Find
Number of Connected Components
Count number of hops
Single Appearance
First Repeating Element
Union of Arrays with Duplicates
Reach a given score
Check Equal Arrays
Positive Negative Pair
Search Query for Strings
Two Sum
Missing in Array
First Non Repeating Character
Product array puzzle
Search an element in sorted and rotated array
Exhausted Giant
Math Query
Exploding Cars
Pizza Love
Most efficient way to reach end of array
Intersection of Arrays with Distinct
Lexicographical smallest sub-sequence of k length in a string
Find the rankings
Count number of nodes of a Complete Binary Tree
Trapping Rain Water
Left View of Binary Tree
Count ways to reach the n'th stair
Trie | (Insert and Search)
Mean And Median of Array
Maximize Number of 1's
Two Mirror Trees
Add two numbers represented by linked lists
Longest Palindrome Substring
Inversion of array
Largest BST
Sum of Left Leaf Nodes
Frequencies of Limited Range Array Elements
Check if two Nodes are Cousins
Unit Area of largest region of 1's
Longest Distinct characters in string
Merge k Sorted Arrays
Number of Rotations
Unique Words from Two Sentences
Convert Sorted Array to Binary Search Tree
Minimum Absolute Difference
Sum of M elements after Kth smallest element in BST
Check if a given graph is tree or not
Missing And Repeating
Find Kth Rotation
Search in a Row-Column sorted matrix
Chocolate Distribution Problem
Bitonic Point
Sort Unsorted Subarray
Number of occurrence
Palindrome String
Shop in Candy Store
Nth Fibonacci Number
Minimum number of deletions to make a sorted sequence
Minimum number of Coins
Trailing zeroes in factorial
Triangular Number
Find nth root of m
Farthest number
Plus One
Smallest window containing 0, 1 and 2
Silver and Gold
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Min distance between two given nodes of a Binary Tree
LRU Cache
Box Stacking
Alien Dictionary
Smallest range in K lists
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Pattern Search KMP
Trapping Rain Water
Max Circular Subarray Sum
Pattern Search
Histogram Max Rectangular Area
Find median in a stream
Solve the Sudoku
Minimum Cost Path
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
The Painter's Partition Problem-II
Edit Distance
Minimum sum partition
Palindromic Partitioning
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Geek collects the balls
Huffman Encoding
Smallest Positive Integer that can not be represented as Sum
Shortest path using atmost one Curved edge
Count Linked List Nodes
Postorder Traversal
Queue using Linked List
Queue Using Array
Preorder Traversal
Sum Except First and Last
Search a node in BST
Peak element
Linked List Insertion At End
Minimum element in BST
Insert in Middle of Linked List
Operations on Queue
Absolute Value
Convert Celsius To Fahrenheit
Quadratic Equation Roots
Left Index
Check if a string is Isogram or not
Binary String
Repeating Character - First Appearance Leftmost
Sum of Digits of a Number
Addition Under Modulo
Multiplication Under Modulo
Reverse a String
Insertion in deque
Deque Traversal
Deque deletion
Binary Array Sorting
Missing number in shuffled array
Find the element that appears once in sorted array
Factorial
Doctors Clinic
Minimum difference pair
close
S
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
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 !