Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
M
man_preet
Current POTD Streak
STREAK
00
/1402
days
Longest streak/Global longest streak
Institution
Dr B R Ambedkar National Institute of Technology Jalandhar (NIT Jalandhar)
37 Rank
Institute Rank
Language Used
C++, C, Java
Coding Score
2185
Problem Solved
844
Contest Rating
__
Campus Ambassador
suhanijarwwx
234 points
Contributor
234 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
2 submissions in current year
Current
2024
2023
2022
2021
2020
2019
2018
January
February
March
April
May
June
SCHOOL (0)
BASIC (81)
EASY (281)
MEDIUM (418)
HARD (64)
Rearrange characters
Nearly Sorted Algorithm
The FIFA Fever
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
Detect Loop in linked list
Rearrange linked list in-place
Insert in Sorted Circular Linked List
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
Merge Sort
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
Reverse alternate levels of a perfect binary tree
Delete a node from BST
Directed Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Absolute List Sorting
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
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
Wildcard Pattern Matching
Linked List to Binary Tree
Generate IP Addresses
Check if subtree
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
Additive sequence
Largest BST
Interleaved Strings
Sorted subsequence of size 3
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Maximum Difference
Count of distinct substrings
Palindrome Linked List
Strongly Connected
Print matrix in diagonal pattern
Rat in a Maze Problem - I
Bipartite Graph
Max sum subarray by removing at most one element
Number of root to leaf paths
Closest in BST
BST with Dead End
Pots of Gold Game
Delete keys in a Linked list
Merge two BST 's
Minimum four sum subsequence
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
k-th Smallest in BST
Find Common Nodes in two BSTs
Polynomial Addition
Delete nodes greater than k
Merge Sort for Linked List
Maximum Bipartite Matching
Union of Two Linked Lists
Euler Circuit in an Undirected Graph
Euler circuit and Path
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
Construct expression tree
Linked List that is Sorted Alternatingly
K Sum Paths
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Modify Linked List-1
Construct Tree from Inorder & Preorder
Arrange Consonants and Vowels
Count the nodes at distance K from leaf
Vertical sum
Mirror of a given node
Insert in Sorted way in a Sorted DLL
Isomorphic Trees
Maximum path sum from any node
pth common ancestor in BST
Predecessor and Successor
Leaves to DLL
Largest Independent Set Problem
Children Sum in a Binary Tree
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Normal BST to Balanced BST
Right Sibling in Binary Tree
Duplicate Subtrees
Construct Tree from Preorder Traversal
Sum of nodes on the longest path
Construct a Full Binary Tree
Convert Level Order Traversal to BST
ZigZag Tree Traversal
Count Number of SubTrees having given Sum
Vertical Width of a Binary Tree
Path Count in Directed Graph
Swap Kth nodes from ends
Add two numbers represented by Linked List
Maximum sum of Non-adjacent nodes
Mother Vertex
Tower Of Hanoi
Smallest Positive Missing
Power Of Numbers
Possible Words From Phone Digits
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Unique BST's
Indexes of Subarray Sum
Count the number of possible triangles
Possible paths between 2 vertices
Spirally traversing a matrix
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray range with given sum
Longest Consecutive Subsequence
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Minimum Platforms
Largest number in K swaps
Black and White
Combination Sum
Unique Subsets
M-Coloring Problem
Ways to write n as sum
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Minimum number of jumps
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Equal Sum Partition
Sort according to an Array
Preorder to BST
X Total Shapes
Find whether path exist
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Print Anagrams Together
Rotate by 90 degree
Overlapping Intervals
Word Break
Word Boggle
Excel Sheet | Part - 1
Paths to reach origin
How many pizzas ?
Taking 1 out of 3 consecutives
Maximum Index
Flip Bits
Top k numbers in a stream
Count Increasing Subsequences
Maximize Number of 1's
Pair array product sum
Equivalent Sub-Arrays
Consecutive 1's not allowed
Count Occurences of Anagrams
Count of Subarrays
Pythagorean Triplet
Mr Modulo and Pairs
Painting the Fence
Pair Sum Closest to 0
Search in Rotated Sorted Array
Sum of bit differences
Print Binary Tree levels in sorted order
Count Full Binary Trees
Max absolute difference
Max Score from Subarray Mins
Form the Largest Number
Add Binary Strings
Maximum Product Subarray
Row with max 1s
Substrings with K Distinct
Count of Palindromic substrings in an Index range
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Maximum distinct elements after removing K elements
Count the Reversals
Cutting Binary String
Max Sum without Adjacents
Equal 0, 1 and 2
Find length of longest subsequence
Shuffle integers
Reverse each word in a given string
Length of the longest substring
k largest elements
Sum of XOR of all pairs
Longest Common Substring
Smallest distinct window
Look and Say Pattern
Save Winterfell
Pass the semester
Cut rope to maximise product
Tic Tac Toe
Integer to Words
String Conversion
Arranging the array
String formation from substring
Possible groups
Longest Arithmetic Subsequence
Triplets with Smaller Sum
Rod Cutting
Greater tower sum
Fill array with 1's
Smallest Subarray GCD
Pick Values
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Longest Common Increasing Subsequence
First negative in every window of size k
Maximum difference of zeros and ones in binary string
Number of palindromic strings
Check if any valid sequence is divisible by M
Construct binary palindrome by repeated appending and trimming
Minimum Deletions
Print N-bit binary numbers having more 1s than 0s
Valid Substring
Minimum number of deletions
Permutations of a String
Number following a pattern
Substring - Subsequence problem
Friends Pairing Problem
Special Numbers
CamelCase Pattern Matching
Maximum Sum Subsequence of length k
Combination Sum - Part 2
Unique Number II
Bleak Numbers
Ways to sum to N
Collecting Trees
Skip the work
Max possible amount
Maximum calorie
Game of XOR
Maximum Tip Calculator
Minimum number of deletions and insertions
Maximize dot product
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Distinct Transformations
Coin Change (Count Ways)
Count numbers with given sum
Minimum steps to delete a string
String Subsequence
Minimum Time
Mobile numeric keypad
Modify array to maximize sum of adjacent differences
Gold Mine Problem
Non-decreasing subsequence
Coin Change (Minimum Coins)
Number of permutation with K inversions
Number of subsequences in a string divisible by n
Palindromic Strings
Perfect Sum Problem
Smallest number
Shreyansh and his bits
Longest subsequence-1
Power Set
Minimum Cost To Make Two Strings Identical
Subset with sum divisible by k
Knapsack with Duplicate Items
Number of substrings divisible by 8 but not by 3
Printing Maximum Sum Increasing Subsequence
Temple Offerings
nCr
Number of ways
Subsets with XOR value
Geek and its Game of Coins
Maximum path sum in matrix
Minimum steps to destination
Special Keyboard
Longest Bitonic subsequence
Min Coin
Get Minimum Squares
Handshakes
Count possible ways to construct buildings
Count digit groupings of a number
Jumbled Strings
Probability of Knight
Array Pair Sum Divisibility Problem
Count the number of ways to tile the floor of size n x m using 1 x m size tiles
Magic Triplets
Subset Sums
Unique partitions
N Digit numbers with digits in increasing order
Last non-zero digit in factorial
Number of paths
Sisters and coins
Stepping Numbers
Permutation with Spaces
Path of greater than equal to k length
Coins and Game
Number of paths in a matrix with k coins
Card Rotation
Bell Numbers
Fact Digit Sum
Arrange Balls
Jumping Numbers
Count in array
Game with String
Two water Jug problem
Count even length
Find the Safe Position
Count of AP Subsequences
Count ways to increase LCS length of two strings by one
Next Permutation
Element left after performing alternate OR & XOR operation
Smaller on Left
Geek and knots
Nitika and her queries
Exit Point in a Matrix
Longest Repeating Subsequence
Longest alternating subsequence
Composite and Prime
Finding Profession
Decode the string
Preorder Traversal and BST
Total Decoding Messages
Distributing Balls
Stream First Non-repeating
Buying Vegetables
Villain Con
Possible paths
Segregate even and odd nodes in a Linked List
Print leaf nodes from preorder traversal of BST
Largest square formed in a matrix
Pizza Mania
Pyramid form
Water Overflow
Rat Maze With Multiple Jumps
Easy Query
Snake and Ladder Problem
Geek and Strings
Eulerian Path in an Undirected Graph
Transitive closure of a Graph
Replace O's with X's
Mail System Design
Find all distinct subset (or subsequence) sums
Check Mirror in N-ary tree
Your Social Network
Queries on Strings
Special Matrix
Queries on a Matrix
Broken blocks
Express as sum of power of natural numbers
Traverse All Edges And Vertices
Find the string in grid
Shortest Uncommon Subsequence
Nodes at even distance
Biconnected Graph
Reverse Delete Algorithm for Minimum Spanning Tree
Floyd Warshall
Negative weight cycle
Flood fill Algorithm
Shortest Source to Destination Path
Divisibility tree
Maximum sum Rectangle
Image Multiplication
Hamiltonian Path
Recursively Remove Adjacent Duplicates
BST to greater sum tree
Graph is Tree or Not
Replace by X
String Ignorance
Geeky Parity
Reverse a linked list
Frequency in 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
Linked list of strings forms a palindrome
Compare two linked lists
Delete nodes having greater value on right
Split a Linked List into two halves
Inorder Traversal
Reverse a Doubly Linked List
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Two Mirror Trees
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
Decimal Equivalent of Binary Linked List
Transform to Sum Tree
Intersection Sorted Linked Lists
Find Transition Point
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
Stack using Linked List
Insert a node in a BST
BFS of graph
Identical Trees
Root to leaf path sum
Nodes without a Sibling
Postorder from Inorder and Preorder
Lowest Common Ancestor in a BST
Binary Search
Largest subarray of 0's and 1's
Level Order Line by Line
BST Keys in a Range
Print all possible strings
Minimum Depth of a Binary Tree
Odd even level difference
Binary Tree to BST
K-Palindrome
Unique rows in boolean matrix
Remove every k'th node
Leaves at Same Level or Not
Third largest element
Convert to Roman No
Match specific pattern
Multiply two linked lists
Josephus problem
You and your books
Expression Tree
Max distance between same elements
Repetition of k length substring
Count Occurrence of digit k
Generate Grey Code Sequences
Delete in a Singly Linked List
Kth largest element in BST
Minimum distance in an Array
Max Level Sum in Binary Tree
Special Stack
String Modification
Level order traversal
Inorder Successor in BST
Index of an Extra Element
Operating an array
Convert Ternary Expression to Binary Tree
Intersection of Two Linked Lists
Insert in a Sorted List
Level of a Node in Binary Tree
Sum of leaf nodes in BST
Max and min element in Binary Tree
Perfect Binary Tree
Reverse Using Stack
XOR of a given range
Full Binary Tree
Triplet with 0 sum in BST
Symmetric Tree
Delete Alternate Nodes
Construct BST from Postorder
Merge Lists Alternatingly
Huffman Decoding-1
Next Right Node
Count Pairs whose sum is equal to X
Depth of node
Maximum Node Level
Find length of Loop
Change of Key in BST
Linked List Matrix
Queue Reversal
Reverse first K of a Queue
Remove Half Nodes
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
Tilt of Binary Tree
Move all zeros to the front of the linked list
Delete Mid of a Stack
Rotate doubly Linked List
Product of an Array
Swap the array elements
Matrix Interchange
Even Subsets
Matrix Interchange - Java
Stack Operations
Frequency in Queue
Operations on PriorityQueue
Get min at pop
Deque Implementations
Min Heap implementation
First Set Bit
Wave Array
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Print adjacency list
Print Matrix in snake Pattern
Rotate by 90 degree
Anagram
The Modified String
Reverse Words
Panagram Checking
Parenthesis Checker
Minimum indexed character
Generate Binary Numbers
Minimum Cost of ropes
N meetings in one room
Count ways to N'th Stair
Count number of hops
Reach a given score
Check Equal Arrays
Nth number made of prime digits
Missing in Array
Product array puzzle
Excel Sheet | Part - 2
Longest Increasing subarray
Maximum value
Subarrays with given sum
Buildings receiving sunlight
Pairs of equals Sum
Find Kth Rotation
Find the closest number
Finding-Pairs
Adding Ones
Pairs with certain difference
Pairs with Difference less than K
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
String Duplicates Removal
Min sum formed by digits
String Manipulation
Maximum Sum Bitonic Subsequence
Permutations in array
Swap and Maximize
Sum of length
Minimize Difference in Task Priorities
Bitonic Point
Find Duplicate Element
Partition Point in the Array
Single Number
Alternate Positive Negative
Closing bracket index
Remove b and ac from a given string
Addition of submatrix
Stuffs Division
Sort in specific order
Form largest number from digits
Ordering of strings
Rearrange string as alternate x and y occurences
Sherlock a Detective
Arya's Long String
Sorting Employees
Greater on right side
Distinct Substrings
Convert array into Zig-Zag fashion
Rearrange to Make arr[i] = i
Equal point in a string of brackets
Maximum repeating number
Does array represent Heap
Rope Cutting
Find minimum adjustment cost of an array
String's Count
Largest Fibonacci Subsequence
Min Number of Flips
Maximum number of characters between any two same character
Sum of distinct elements for a limited range
Counts Zeros Xor Pairs
Two sum -Pairs with 0 Sum
Sum of f(a[i], a[j]) over all pairs in an array of n integers
Large number division
Print an array in Pendulum Arrangement
Inverse Permutation
Play With OR
At Least K Occurrences
Element with left side smaller and right side greater
Total distance travelled in an array
Merge two binary Max heaps
Sum of Lengths of Non-Overlapping SubArrays
Charul and vessels
Total count
Left out candies
Delete Array Elements
Chocolate Station
Pattern Searching
Equalization of an array
Print Bracket Number
Easy string
Does robot moves circular
Minimal moves to form a string
Mr. Binary
Lucas Number
Colorful Strings
Is Binary Number Multiple of 3
Maximum prefix sum for a given range
Padovan Sequence
Karatsuba Algorithm
Minimum Operations
Check if divisible by 10
Check if a Integer is power of 8 or not
Compute sum of digits in all numbers from 1 to n
Set Bits
Reverse Bits
Rearrange the array
Powers game
Maximum Number of 1s
Maximum Sum Problem
Maximum Product Cutting
High Effort vs Low Effort
Minimum insertions to sort an array
Minimum number of deletions to make a sorted sequence
Shortest path from 1 to n
Count binary strings
Minimum steps to minimize n as per given condition
Sieve of Eratosthenes
Count numbers containing 4
Faithful Numbers
Reach the Nth point
Minimum number of Coins
Number of Groups
Numbers with same first and last digit
Maximum weight transformation of a given string
Optimal walk
Adjacents are not allowed
Letter Writer
Recamans sequence
Count ways to express N as the sum of 1,3 and 4
Recursive sequence
Increasing Sub Sequence
Sum of average of all subsets
Summed Matrix
Maximum Diamonds
LCS of '0' K Repeated String
Maximum Collatz sequence length
Primitive Typing
Geeky Year
Next sparse binary number
Trace Path
Inorder Traversal and BST
Largest zigzag sequence
Help the Old Man!!!
Print Pattern
Chicks in a Zoo
Count the paths
Array to BST
Sum of dependencies in a graph
Shortest distance in infinite tree
Sum of k smallest elements in BST
Riddle the Middle
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
Box Stacking
AVL Tree Insertion
Partition array to k subsets
Maximum subset XOR
Alien Dictionary
Smallest range in K lists
AVL Tree Deletion
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
Huffman Decoding
Number of Turns in Binary Tree
Trapping Rain Water
Smallest window containing all characters of another string
Histogram Max Rectangular Area
Max of min for every window size
Find median in a stream
Solve the Sudoku
Minimum Cost Path
The Painter's Partition Problem-II
Distinct palindromic substrings
Count Smaller elements
Number of distinct subsequences
Circle of strings
Longest repeating and non-overlapping substring
Sum-string
Maximum XOR subset
Edit Distance
Min cut Square
Minimum number of elements
Minimum Points To Reach Destination
Doctor Strange
Minimum sum partition
Number Formation
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Strictly Increasing Array
Bit Difference
Boolean Parenthesization
Longest valid Parentheses
Longest Zig-Zag Sub Sequence
Word Break - 2
N-Queen Problem
Brackets in Matrix Chain Multiplication
Phone directory
Adventure in a Maze
Optimal binary search tree
Longest Path in a matrix
Let's Play!!!
Huffman Encoding
Find the Maximum Flow
Find minimum s-t cut in a flow network
Rotate Array
Count Linked List Nodes
Size of Binary Tree
Count Leaves in Binary Tree
Postorder Traversal
Queue Using Array
Count zeros in a sorted matrix
Largest product
Preorder Traversal
First Occurence
Sum Except First and Last
Equal Sum and XOR
Peak element
Play with an array
Minimum element in BST
Is Linked List Length Even?
Identical Linked Lists
Triplet Family
Sum of Binary Tree
Pairwise Consecutive Elements
Stack designer
Queue Push & Pop
Sum Array Puzzle
Reverse array in groups
Binary Array Sorting
Binary String
Keypad typing
Merge and Sort
Rearranging array
Count number of elements between two given elements in array
Minimum move to front operations
Count pair sum
Elements before which no element is bigger
Friendly Array
Balanced Array
Farthest Index
Check Arithmetic Progression
Type of array
Anagram Palindrome
Fibonacci in the array
Make Co-prime Array
Segregate Even and Odd numbers
Count Pairs Odd Xor
The problem of identical arrays
Sum of alternate product
Immediate Smaller Element
Quick Left Rotation
Stable Sort and Position
A guy with a mental problem
First 1 in a Sorted Binary Array
Elements in the Range
Last index of One
Distinct Adjacent Element
String with numbers at its end
Sum Triangle for given array
Exceptionally odd
Ishaan Loves Chocolates
Rotating an Array
First and Second Smallests
Multiply left and right array sum
Maximum Perimeter of Triangle from array
Average Count Array
Positive and negative elements
Smallest number repeating K times
Factor OR Multiple
Smallest power of 2 greater than or equal to n
Check if a number can be expressed as x^y
Longest Increasing Subarray
Shortest un-ordered subarray
Sort first half in ascending and second half in descending
Tough Competitors
Absolute Difference of 1
Angle between hour and minute hand
G.F Series
Anshuman's Favourite Number
Height of Heap
Number of Integer solutions
Largest subarray with GCD one
Finding Position
Sorted matrix
Starting Point
close
M
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 !