Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
A
ianurag
Current POTD Streak
STREAK
207
/1537
days
Longest streak/Global longest streak
Institution
National Institute of Technology, Durgapur (NIT Durgapur)
22 Rank
Institute Rank
Language Used
C++, Python, C
Coding Score
2342
Problem Solved
740
Contest Rating
__
Campus Mantri
algo_artisan_sandip
372 points
Contributor
372 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
8 submissions in current year
Current
2024
2023
2022
2021
2020
January
February
March
April
May
June
July
August
September
October
SCHOOL (0)
BASIC (47)
EASY (233)
MEDIUM (399)
HARD (61)
The Conversion To One
Get the Shadow
Without Adjacent
Reverse alternate nodes in Link List
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Add 1 to a Linked List Number
Detect Loop in linked list
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
Check for BST
Merge Sort
Quick Sort
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
Sum Tree
Flattening a Linked List
Diagonal Tree Traversal
Stack using Queue
Tree Boundary Traversal
Implement stack using array
Directed Graph Cycle
Undirected Graph Cycle
Lowest Common Ancestor in a BST
Two Stacks in an Array
Binary Heap Operations
Max sum path in two arrays
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Find the number of islands
Find kth element of spiral matrix
Max sum in the configuration
Get Min from Stack
Wildcard Pattern Matching
Generate IP Addresses
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Strongly Connected
Rat in a Maze
Bipartite Graph
Closest in BST
BST with Dead End
Pots of Gold Game
Merge k Sorted Arrays
Longest Palindrome in Linked List
Find triplets with zero sum
Duplicate Subtree
Top View of Binary Tree
k-th Smallest in BST
Find Common Nodes in two BSTs
Peak element
Polynomial Addition
Delete nodes greater than k
Union of Two Linked Lists
Euler circuit and Path
Binary Tree to CDLL
Pair Sum in BST
Root to Leaf Paths
Complete Binary Tree
Counting elements in two arrays
K Sum Paths
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Construct Tree from Inorder & Preorder
Vertical sum
Isomorphic Trees
Maximum path sum
Predecessor and Successor
Find length of Loop
Median of BST
Normal BST to Balanced BST
Kth Ancestor in a Tree
ZigZag Tree Traversal
Pairwise swap of nodes in Linked List
Swap Kth nodes from ends
Mother Vertex
Ceil in BST
Count set bits
Tower Of Hanoi
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Maximum occured integer
Wave Array
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Merge Without Extra Space
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray with 0 sum
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Strings Rotations of Each Other
Case-specific Sorting of Strings
Stock span problem
Next Greater Element
K Sized Subarray Maximum
Minimum Cost of ropes
Nearly sorted
Find median in a stream
Activity Selection
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Black and White
Target Sum Combinations
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
Lucky Numbers
Sort according to an Array
Allocate Minimum Pages
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Count subsequences of type a^i, b^j, c^k
Rotate by 90 degree
Top K Frequent in Array
Stock Buy and Sell – Multiple Transaction Allowed
Word Search
Prerequisite Tasks
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Complement
Maximum Sub Array
Pascal Triangle
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Sum of Middle elements of two sorted arrays
Equivalent Sub-Arrays
Single Among Doubles in a Sorted
Count of Subarrays
Single Among Doubles
Pythagorean Triplet
Search in Rotated Sorted Array
Smallest number with at least n trailing zeroes in factorial
Count Full Binary Trees
Form the Largest Number
Alternate Vowel and Consonant String
Add Binary Strings
Maximum Product Subarray
Row with max 1s
Swapping pairs make sum equal
Column name from a given column number
Substrings with K Distinct
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Next Smaller Element
Number of positive integral solutions
Cutting Binary String
Sum of two large numbers
Max Sum without Adjacents
Factorials of large numbers
Shuffle integers
Length of the longest substring
k largest elements
Sum of XOR of all pairs
Magnet Array Problem
Longest Common Substring
Smallest distinct window
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
String formation from substring
Triplets with Smaller Sum
Rod Cutting
Minimum swaps and K together
Maximize the sum of selected numbers from a sorted array to make it empty
Longest Palindromic Subsequence
First negative in every window of size k
Minimum sum
Build the smallest
Minimize the Heights II
First and Last Occurrences
Reaching the heights
Smaller on Left
Minimum Deletions
Find patterns
Permutations of a String
Number following a pattern
Friends Pairing Problem
String Subsequence Game
CamelCase Pattern Matching
Lexicographically smallest string
Subarrays Product Less than K
Unique Number II
Bleak Numbers
Largest prime factor
3 Divisors
Minimum number of deletions and insertions
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Santa Banta
Coin Change (Minimum Coins)
Perfect Sum Problem
Power Of 2 and Subsequences
Firing employees
Shreyansh and his bits
Power Set
Minimum Cost To Make Two Strings Identical
Knapsack with Duplicate Items
nCr
Number of ways
Maximum path sum in matrix
Partition Equal Subset Sum
Longest Bitonic subsequence
Min Coin
Count possible ways to construct buildings
Count digit groupings of a number
Magic Triplets
Brain Game
Fill up buckets
Matchsticks game
Subset Sums
Unique partitions
Fill the Tank
Number of paths
Knight Walk
Stepping Numbers
LCM Triplet
Find nth root of m
Fact Digit Sum
Jumping Numbers
Grouping Of Numbers
Find the Safe Position
Next Permutation
Smaller on Left
Geek and knots
Filling Bucket
How Many X's?
Matrix Exponentiation
Longest Repeating Subsequence
Composite and Prime
Finding Profession
Decode the string
Stream First Non-repeating
Maximum Sub-String after at most K changes
2D Hopscotch
Print leaf nodes from preorder traversal of BST
Longest Perfect Piece
Geek and Strings
The Smurfs
Satisfy the equation
Transitive closure of a Graph
Replace O's with X's
Two odd Occuring
Find all distinct subset (or subsequence) sums
Special Matrix
Queries on a Matrix
Express as sum of power of natural numbers
Find the string in grid
Shortest Uncommon Subsequence
Help a Thief!!!
Count the paths
Floyd Warshall
Flood fill Algorithm
Shortest Source to Destination Path
Base Equivalence
Reverse Spiral Form of Matrix
Geek and Number String
Save Your Life
Hamiltonian Path
Jump Game
Subset Sum Problem
3 Sum Closest
Bellman-Ford
Capacity To Ship Packages Within D Days
Substrings of length k with k-1 distinct elements
Count pairs in array divisible by K
Number of Provinces
Prefix match with other strings
Binary Matrix with at most K 1s
Maximum sum leaf to root path
Maximum GCD of siblings of a binary tree
BST to max heap
BST to greater sum tree
Minimize the Heights I
Subsets
Flatten binary tree to linked list
IPL 2021 - Match Day 2
Course Schedule
Find and Replace in String
Target Sum
Overlapping Intervals
Longest Possible Route in a Matrix with Hurdles
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
K-th Largest Sum Contiguous Subarray
Maximum Meetings in One Room
Enemy
Max Equal sum of 3 Stacks
Levels Of Game
Smallest sum contiguous subarray
Array Removals
Minimum Cost to cut a board into squares
Validate Stack Operations
Replace every element with the least greater element on its right
Minimum Swaps
Construct Binary Tree from String with bracket representation
Check if all levels of two trees are anagrams or not
Remove and Reverse
Jumping Towers
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Number Of Enclaves
Eventual Safe States
City With the Smallest Number of Neighbors at a Threshold Distance
Number Of Islands
Merging Details
Number of Ways to Arrive at Destination
Path With Minimum Effort
Cheapest Flights Within K Stops
Connecting the graph
Shortest Path in Undirected Graph
Maximum Stone Removal
Shortest path in Directed Acyclic Graph
Sum of Beauty of All Substrings
Koko Eating Bananas
Search in Rotated Array 2
Maximum Consecutive Ones
Frog Jump
Stock Buy and Sell – with Cooldown
Aggressive Cows
Smallest Divisor
Combination Sum II
Check if there exists a subsequence with sum K
Shortest Path in Weighted undirected graph
Minimum days to make M bouquets
Task Scheduler
Hands of Straights
Buy Stock with Transaction Fee
Number of Longest Increasing Subsequence
Maximum Sum Combination
Longest String Chain
Partitions with Given Difference
Floor in BST
Triangle Path Sum
Largest Divisible Subset
Find the first node of loop in linked list
Connect Nodes at Same Level
Unique Paths in a Grid
Fill the Matrix
Maximum Intersecting Lines
Count Total Setbits
Tree Transformation
Construct a Full Binary Tree
Modify Linked List-1
Find Kth permutation
Remove the balls
Fraction pairs with sum 1
Total pairs
Subarray of length 2
Minimum Distance Graph
Search in an almost Sorted Array
Nearest Perfect Square
A Boolean Matrix Problem
Toggle The Middle
Reverse a linked list
Pairwise swap elements of a linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Insertion Sort
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
Delete Middle of Linked List
Decimal Equivalent of Binary Linked List
Intersection Sorted Linked Lists
Find Transition Point
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Postorder Traversal
Level Order in spiral form
DFS of Graph
Insert a node in a BST
BFS of graph
Identical Trees
Square Root
Insertion at doubly linked list
Binary Search
Remove Duplicates Sorted Array
Binary Tree to BST
Unique rows in boolean matrix
Josephus problem
Delete in a Singly Linked List
Kth largest element in BST
Minimum distance in an Array
Array Duplicates
Three way partitioning
Inorder Successor in BST
Index of an Extra Element
Insert in a Sorted List
More than n/k Occurrences
Symmetric Tree
Next Right Node
Leaf under budget
Queue Reversal
Find Sum Pairs Across Two BSTs
Delete Mid of a Stack
Predict the Column
Find the Frequency
Frequency in Queue
Get min at pop
Deque Implementations
Frequency Game
Duplicate Elements
Max and Second Max
First Set Bit
Rightmost different bit
Check K-th Bit
Factorial Of Number
Digits In Factorial
GP Term
Primality Test
Longest Consecutive 1's
Exactly 3 Divisors
Mean And Median of Array
Modular Inverse
Power of 2
Minimum adjacent difference in a circular array
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Count 1's in binary array
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Roof Top
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Matrix Boundary Traversal
Anagram
String Rotated by 2 Places
Isomorphic Strings
Reverse Words
Non Repeating Character
Parenthesis Checker
K largest elements
N meetings in one room
Union-Find
Count number of hops
Deque deletion
Rotate Deque By K
First Repeating Element
Union of Arrays with Duplicates
Check Equal Arrays
Missing in Array
Product array puzzle
Roman Number to Integer
Intersection of Arrays with Distinct
Max Value Permutation
Missing And Repeating
Non-Repeating Element
Find Kth Rotation
Sort by Set Bit Count
k sorted array
Maximize sum after K negations
Adding Ones
Pairs with certain difference
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Sum of elements between k1'th and k2'th smallest elements
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Min sum formed by digits
Minimize the sum of product
Move all negative elements to end
Chocolate Distribution Problem
Swap and Maximize
Bitonic Point
Smallest subarray with sum greater than x
Sort Array II
Alternate Positive Negative
Count Substrings
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Rotate Bits
Find all pairs with a given sum
Number of occurrence
Reversing the equation
Check if array is sorted
Sum Pair closest to target
Longest Common Prefix of Strings
Two sum -Pairs with 0 Sum
At Least K Occurrences
Element with left side smaller and right side greater
Find the closest pair from two arrays
Count the Zeros
Merge two binary Max heaps
Palindrome String
Search array with adjacent diff at most k
Fitting The Array
K-th missing element
Balanced string
Is Binary Number Multiple of 3
Minimum Operations
Adding Array Elements
Number of 1 Bits
Nth Fibonacci Number
Change Bits
Copy Set Bits in Range
Shortest path from 1 to n
Sum 1 to n Divisors
The Bit Game
Minimum number of Coins
Number Of Open Doors
Perfect Numbers
Smallest number with sum of digits as N and divisible by 10^N
Largest number possible
Form a number divisible by 3 using array digits
Least Prime Factor
Sum of First N Natural Numbers
Tom and Jerry
Maximum Diamonds
Make Zeroes
Surround the 1's
Help Ishaan
Trace Path
Inorder Traversal and BST
Sequence Fun
Letters Collection
Print Pattern
Primes sum
Print the pattern
Chicks in a Zoo
Maximum Sum LCM
Check if it is possible to convert one string into another with given constraints
Minimum Exchange
Earthquake and the Paint Shop
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Ball coloring
Modified Numbers and Queries
Sum of k smallest elements in BST
Print Diagonally
Plus One
Maximum number of 2X2 squares
License Key Formatting
Find all possible paths from top to bottom
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Move Last Element to Front of a Linked List
Find pairs with given sum in doubly linked list
Equal Left and Right Subarray Sum
Seating Arrangement
Maximum occurring digit
Assign Tasks
Maximum Depth Of Binary Tree
Bus Ticket Change
Parent of Max GCD Siblings in a Binary Tree
Frogs and Jumps
Make Array Elements Equal
Remainder on dividing by 11
Maximum Identical Bowls
Bus Conductor
Minimum Integer
Make Palindrome
Dominant Pairs
Minimum Thorns
Ticket Counter
Geek's Plants
Happy Friends
Weight Problem
Level of Node in Tree
Unique Number of Occurrences
Separate Stone
Balloon Everywhere
Maximum Number
Two Swaps
Strong Students in School
Complete the Staircase
String Matching
Silver and Gold
Mean BST
High Frequency
Weird Island
Find Bots on Geeklandster
Ceil in a Sorted Array
Linked List Group Reverse
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Distinct occurrences
AVL Tree Insertion
Partition array to k subsets
Alien Dictionary
Smallest range in K lists
AVL Tree Deletion
Nodes at given distance in binary tree
Number of Turns in Binary Tree
String Permutations
Trapping Rain Water
Histogram Max Rectangular Area
Solve the Sudoku
Minimum Cost Path
Word Ladder I
Median of 2 Sorted Arrays of Different Sizes
Burning Tree
Next Smallest Palindrome
The Painter's Partition Problem-II
Count Smaller elements
Number of distinct subsequences
Sum-string
Edit Distance
Minimum sum partition
Number Formation
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Bike Racing
Word Break - 2
N-Queen Problem
Brackets in Matrix Chain Multiplication
Phone directory
Assignment Problem
Search Pattern (Rabin-Karp Algorithm)
Minimum X (xor) A
Sorted Linked List to BST
Array Partition
Count occurrences of a given word in a 2-d array
Reverse a sublist of a linked list
Word Ladder II
Split Array Largest Sum
Find number of closed islands
Shortest Path by Removing K walls
Find the String
Articulation Point - I
Min Chars to Add for Palindrome
Minimum time to fulfil all orders
Maximum Connected group
Expression Add Operators
Count Reverse Pairs
Account Merge
Chocolates Pickup
Better String
Min Time
Making A Large Island
Rotate Array
Print Linked List
Find Length of Linked List
Queue Using Array
Replace all 0's with 5
Preorder Traversal
First Occurence
Sum Except First and Last
Palindromic Array
Linked List Insertion At End
Identical Linked Lists
Insert in Middle of Linked List
Alternates in an Array
Who has the majority?
Strongest Neighbour
Array insert at index
Array insert at end
Absolute Value
Convert Celsius To Fahrenheit
Quadratic Equation Roots
Bit Difference
Number is sparse or not
Binary To Gray Code Conversion
Array Search
Sorted Array Search
Left Index
Addition Under Modulo
Multiplication Under Modulo
Reverse a String
Insertion in deque
Deque Traversal
First n Fibonacci
Binary Array Sorting
Value equal to index value
Repeated Character
First 1 in a Sorted Binary Array
Max and Min Product from 2 Arrays
Elements in the Range
Largest Element in Array
Rotate Array by One
Game with nos
One odd Occuring
Array Subset
Min and Max in Array
Set kth bit
House Robber
Max Min
close
A
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri