Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
O
oj
Current POTD Streak
STREAK
101
/1432
days
Longest streak/Global longest streak
Institution
Motilal Nehru National Institute of Technology, Allahabad (MNNIT-A)
192 Rank
Institute Rank
Language Used
C++, Java, C
Coding Score
1754
Problem Solved
566
Contest Rating
__
Apply for Campus Mantri
97 points
Contributor
97 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
0 submissions in current year
Current
2024
2023
2022
2021
2020
2019
2018
January
February
March
April
May
June
July
SCHOOL (1)
BASIC (72)
EASY (167)
MEDIUM (280)
HARD (46)
Sahil love good scorer
Geek-onacci Number
Good Numbers
Ticket Counter
Frequency in a Linked List
Node at a given index in linked list
Linked list of strings forms a palindrome
Remove duplicates from an unsorted linked list
Split a Linked List into two halves
Delete in a Doubly Linked List
K distance from root
Mirror Tree
Maximum Width of Tree
Delete without head pointer
Height of Binary Tree
Balanced Tree Check
Middle of a Linked List
Check If Circular Linked List
Left View of Binary Tree
Delete Middle of Linked List
Find Transition Point
Queue using two Stacks
Stack using two queues
Level Order in spiral form
Reverse Level Order Traversal
Square Root
Nodes without a Sibling
Lowest Common Ancestor in a BST
Remove Duplicates Sorted Array
Level Order Line by Line
Almost Prime Numbers
Josephus problem
Delete in a Singly Linked List
Three way partitioning
Level order traversal
Insert in a Sorted List
Max and min element in Binary Tree
Reverse Using Stack
Delete Alternate Nodes
Next Right Node
Count Pairs whose sum is equal to X
Find length of Loop
Find n/k th node in Linked list
Linked List Matrix
Queue Reversal
Reverse first K of a Queue
Magical Number
Closest Neighbour in BST
Move all zeros to the front of the linked list
Delete Mid of a Stack
Xoring and Clearing
Stack Operations
Frequency in Queue
Get min at pop
Rightmost different bit
Digits In Factorial
GP Term
Primality Test
Longest Consecutive 1's
Exactly 3 Divisors
Modular Inverse
Power of 2
Swap odd and even bits
Wave Array
Equilibrium Point
Array Leaders
Minimum Number in a sorted rotated array
Sum of upper and lower triangles
Print Matrix in snake Pattern
Anagram
Reverse Words
Parenthesis Checker
Minimum indexed character
Generate Binary Numbers
K largest elements
Minimum Cost of ropes
Largest number with given sum
Union-Find
Count ways to N'th Stair
First Repeating Element
Positive Negative Pair
Find Immediate Smaller Than X
Excel Sheet | Part - 2
Max Value Permutation
Missing And Repeating
Count the elements
Sort by Set Bit Count
Maximize sum after K negations
Pairs with certain difference
Number and the Digit Sum
Sum of elements between k1'th and k2'th smallest elements
Move All Zeroes to End
Min sum formed by digits
Count the triplets
Find Pair Given Difference
Swap and Maximize
Alternate Positive Negative
Kth distance
Palindrome Sentence
Rearrange a string
Second Largest
Longest common prefix
Count even substrings
Find missing in second array
Longest Common Prefix of Strings
Special array reversal
Counts Zeros Xor Pairs
Play With OR
Hungry Pizza Lovers
Maximum sum of increasing order elements from n arrays
The Counting Game !!
Merge two binary Max heaps
Four Elements
Maximum average subarray
Smallest greater elements in whole array
Shop in Candy Store
Minimum changes to make all substrings distinct
Partition a number into two divisible parts
Encrypt the string - 2
Minimum Operations
Adding Array Elements
Empty The Tank
Number of 1 Bits
Find the Highest number
Midori and chocolates
Reverse Bits
Max Sum Subarray of size K
Change Bits
Swap two nibbles in a byte
Toggle bits in the given range
Party of Couples
Twisted Prime Number
Swap bits
Nth item through sum
Smallest number with sum of digits as N and divisible by 10^N
Find nth root of m
Circular Prime Number
Collection of pens
Find the highest occurring digit in prime numbers in a range
Rearrange Geek and his Classmates
Help the Old Man!!!
K-Ary Tree
Minimum Exchange
Array to BST
Ball coloring
Rearrange Geek and his Classmates
Fraction Trouble
Sum of k smallest elements in BST
Gadgets of Doraland
Sum of two numbers without using arithmetic operators
Even and Odd
Search insert position of K in a sorted array
Largest value in each level
Construction of a string
Count the Subarrays
Find all possible paths from top to bottom
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Smallest window containing 0, 1 and 2
Can Make Triangle
Matrix Operations
Find pairs with given sum in doubly linked list
Triangle and Square
Seating Arrangement
Divisor Game
Max Level Sum in Binary Tree
Powerfull Integer
Nearly Sorted Algorithm
Add 1 to a Linked List Number
Detect Loop in linked list
Quick Sort on Linked List
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
Merge two sorted linked lists
Add all greater values to every node in a BST
Connect Nodes of Levels
Diagonal Tree Traversal
Delete a node from BST
Maximum difference between node and its ancestor
Binary Heap Operations
The Celebrity Problem
Vertical Tree Traversal
Merge K sorted linked lists
Find the number of islands
Serialize and deserialize a binary tree
Gas Station
Generate IP Addresses
Check if subtree
Kth element in Matrix
Dijkstra Algorithm
Largest BST
Interleaved Strings
Count Palindromic Subsequences
Multiply two strings
Palindrome Linked List
Rat in a Maze Problem - I
Bipartite Graph
Pots of Gold Game
Count distinct elements in every window
Merge k Sorted Arrays
Longest Palindrome in Linked List
Find triplets with zero sum
Sort a stack
Top View of Binary Tree
Polynomial Addition
Delete nodes greater than k
Euler Circuit in an Undirected Graph
Root to Leaf Paths
Complete Binary Tree
Counting elements in two arrays
Construct expression tree
Foldable Binary Tree
Arrange Consonants and Vowels
Vertical sum
Insert in Sorted way in a Sorted DLL
Leaves to DLL
Deletion and Reverse in Circular Linked List
Count Number of SubTrees having given Sum
Swap Kth nodes from ends
Maximum sum of Non-adjacent nodes
Ceil in BST
Gray to Binary Conversion
Tower Of Hanoi
Possible Words From Phone Digits
Rearrange an array with O(1) extra space
Rotate Array
Kadane's Algorithm
Majority Element
Two Repeated Elements
Smallest Positive missing number
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Possible paths between 2 vertices
Make Matrix Beautiful
Spirally traversing a matrix
Unit Area of largest region of 1's
Subarray with 0 sum
Subarrays with equal 1s and 0s
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
K Sized Subarray Maximum
Nearly sorted
Activity Selection
Minimum Platforms
Unique Subsets
M-Coloring Problem
Minimum Jumps
Egg Dropping Puzzle
Sum of all substrings of a number
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Preorder to BST
X Total Shapes
Find whether path exist
Implement Trie
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Count subsequences of type a^i, b^j, c^k
Rotate by 90 degree
Generate Parentheses
Excel Sheet | Part - 1
Sort 0s, 1s and 2s
Paths to reach origin
Equivalent Sub-Arrays
Count Occurences of Anagrams
Pair Sum Closest to 0
Smallest factorial number
Maximize The Array
Form the Largest Number
Super Primes
Maximum Product Subarray
Longest subarray with sum divisible by K
Row with max 1s
Form a palindrome
Longest Subarray with Sum K
Count the Reversals
Number of positive integral solutions
Sum of two large numbers
Reverse each word in a given string
Remove leading zeros from an IP address
Magnet Array Problem
Longest Common Substring
Smallest distinct window
Longest Substring with K Uniques
Integer to Words
K-th element of two Arrays
String formation from substring
Triplets with Smaller Sum
Minimum swaps and K together
Smallest Absolute Difference
LCS of three strings
Longest Palindromic Subsequence
First negative in every window of size k
Minimum sum
First and Last Occurrences
Reaching the heights
Smaller on Left
Maximum Product of Increasing Subsequence of Size 3
Print N-bit binary numbers having more 1s than 0s
Nine Divisors
Valid Substring
Minimum number of deletions
Previous number in one swap
Friends Pairing Problem
Sum of Products
Unique Number II
Largest prime factor
Minimum number of deletions and insertions
Maximize dot product
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Coin Change (Minimum Coins)
Power Of 2 and Subsequences
Kth Smallest Factor
Firing employees
Knapsack with Duplicate Items
nCr
Number of ways
Subsets with XOR value
Partition Equal Subset Sum
XOR Game
Longest Bitonic subsequence
Min Coin
Handshakes
Count possible ways to construct buildings
Count digit groupings of a number
Probability of Knight
Brain Game
Money Distributions
Find Last Digit Of a^b for Large Numbers
Killing Spree
Subset Sums
N Digit numbers with digits in increasing order
Nth Natural Number
Knight Walk
Permutation with Spaces
Choose and Swap
Return two prime numbers
Find Prime numbers in a range
Party in Town
Next Permutation
Geek and knots
Longest Repeating Subsequence
Villain Con
Possible paths
Tricky Subset Problem
Rat Maze With Multiple Jumps
Pairs of Non Coinciding Points
7 Segment Display
Product of Primes
Eulerian Path in an Undirected Graph
nCr mod M | Part 2
Rohan's Love for Matrix
Check Mirror in N-ary tree
Queries on Strings
Special Matrix
Broken blocks
Shortest Uncommon Subsequence
Nodes at even distance
Biconnected Graph
Help a Thief!!!
Count the paths
Negative weight cycle
Form coils in a matrix
Maximum sum Rectangle
Shortest Path between Cities
Moving on grid
Height Using Parent Array
Recursively Remove Adjacent Duplicates
Theft at World Bank
Number of minimum picks to get 'k' pairs of socks from a drawer
Coins of Geekland
Transfiguration
Ruling Pair
Triplets in Sorted Linked List
Help Classmates
Lucy's Neighbours
Spidey Sense
Escape the Forbidden Forest
Jump Game
Triplets with sum with given range
Iterative Postorder
Subset Sum Problem
Form a palindrome
Search Pattern (Z-algorithm)
Bellman-Ford
Partition a Linked List around a given value
Capacity To Ship Packages Within D Days
Coin Piles
Substrings of length k with k-1 distinct elements
Clone a stack without using extra space
Count pairs in array divisible by K
Number of Provinces
Binary Matrix with at most K 1s
Maximum sum leaf to root path
Find duplicate rows in a binary matrix
Maximum GCD of siblings of a binary tree
BST to max heap
BST to greater sum tree
Find rectangle with corners as 1
Cousins of a given node
Division without using multiplication, division and mod operator
Insertion Sort for Singly Linked List
Subsets
Rank The Permutations
Course Schedule
Find and Replace in String
Minimum times A has to be repeated such that B is a substring of it
Bitwise AND of the Array
Distinct Elements
Maximum number of events that can be attended
Longest Possible Route in a Matrix with Hurdles
Farthest number
Robots
Hit most Balloons
Concatenate Equal to Target
Exactly one swap
Maximum Winning score
Compute Before Matrix
Levels Of Game
Smallest sum contiguous subarray
Minimum Cost to cut a board into squares
Special Keyboard 2
Maximum selections
LCP
Next element with greater frequency
Sum of nodes within k distance from target
Minimum increment/decrement to make array non-Increasing
Maximum Profit By Choosing A Subset Of Intervals
Merging Details
Combination Sum II
Minimum Absolute Difference In BST
Connect Nodes at Same Level
Fill the Matrix
Geek hates too many 1s
Pairs violating the BST property
Kth common ancestor in BST
Rotate Array
Print Linked List
Count Linked List Nodes
Size of Binary Tree
Implement stack using array
Queue using Linked List
Queue Using Array
Count zeros in a sorted matrix
Sum Except First and Last
C++ STL | Set 5 (queue)
Equal Sum and XOR
Smallest divisible number
Peak element
Linked List Insertion At End
Minimum element in BST
Anagram of String
Circular Linked List Traversal
Is Linked List Length Even?
Identical Linked Lists
Modular Node
Insert in Middle of Linked List
Stack designer
Queue Push & Pop
Who has the majority?
Absolute Value
Convert Celsius To Fahrenheit
Quadratic Equation Roots
Bit Difference
Print 1 To N Without Loop
Reverse array in groups
Sorted Array Search
Binary Array Sorting
Check if a string is Isogram or not
Addition Under Modulo
Doubling the value
Balanced Array
Sort the Half Sorted
Sort a String
Anagram Palindrome
Immediate Smaller Element
Lower case to upper case
A guy with a mental problem
Repeated Character
Find the Number which contain the digit d
Elements in the Range
Rotate Array by One
Game with nos
Exceptionally odd
Ishaan Loves Chocolates
Array Subset
Product is even or odd?
Multiply left and right array sum
Print first letter of every word in the string
Red OR Green
1s Complement
Find position of set bit
Set kth bit
Change all even bits in a number to 0
Strong Numbers
Binary Shift to Divide
Binary number to decimal number
Sum of elements in a matrix
The dice problem
Ways To Tile A Floor
Ladoo problem
Remainder Evaluation
Print 1 to n without using loops
Anshuman's Favourite Number
Unique Numbers
Sum of product of x and y with floor(n/x) = y
Sorted matrix
Starting Point
Binary Tree to DLL
Box Stacking
Partition array to k subsets
Max Path Sum 2 Special Nodes
Number of Turns in Binary Tree
Trapping Rain Water
Max of min for every window size
Count Smaller elements
Largest rectangle of 1s with swapping of columns allowed
Maximum XOR subset
Minimum Points To Reach Destination
Minimum sum partition
Palindromic Partitioning
Matrix Chain Multiplication
Strictly Increasing Array
Median in a row-wise sorted Matrix
Kill Captain America
Boolean Parenthesization
Bike Racing
Word Break - 2
Brackets in Matrix Chain Multiplication
nCr mod M | Part 1
Adventure in a Maze
Closest Palindrome
Optimal binary search tree
Assignment Problem
Longest Path in a matrix
Word Wrap
Huffman Encoding
Find the Maximum Flow
Smallest Positive Integer that can not be represented as Sum
Corona Vaccine
Shortest Range In BST
Longest substring to form a Palindrome
Minimum X (xor) A
Sorted Linked List to BST
Palindrome Pairs
Array Partition
Count occurrences of a given word in a 2-d array
Number of distinct words with K maximum contiguous vowels
Reverse a sublist of a linked list
Shortest Unique prefix for every word
Count the number of subarrays
Kth Smallest Number in Multiplication Table
Minimum time to fulfil all orders
Geek in a Maze
Maximum and Minimum Of Array Elements
close
O
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 !