Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
ayushagnihotri2025
Current POTD Streak
STREAK
426
/1426
days
Longest streak/Global longest streak
Institution
Pranveer Singh Institute of Technology (PSIT) Kanpur
2 Rank
Institute Rank
Organization
Atishir
Language Used
Python, C++, Java, C#, C, Javascript
Coding Score
6308
Problem Solved
1732
Contest Rating
__
Campus Ambassador
ayush_gupta45
181 points
Contributor
181 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
179 submissions in current year
Current
2024
2023
2022
January
February
March
April
May
June
SCHOOL (5)
BASIC (125)
EASY (408)
MEDIUM (990)
HARD (204)
Reverse a linked list
Occurence of an integer in a Linked List
Delete N nodes after M nodes of a linked list
Pairwise swap elements of a linked list
Given a linked list of 0s, 1s and 2s, sort it.
linked list of strings forms a palindrome
Detect Loop in linked list
Remove duplicates from an unsorted linked list
Sorted insert for circular linked list
Split a Circular Linked List into two halves
Delete node in Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Selection Sort
Insertion Sort
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Maximum Width of Tree
Delete without head pointer
Height of Binary Tree
Check for Balanced Tree
Nth node from end of linked list
Middle of a Linked List
Left View of Binary Tree
Delete Middle of Linked List
Decimal Equivalent of Binary Linked List
Transform to Sum Tree
Intersection of two sorted Linked lists
Find Transition Point
Queue using two Stacks
Remove duplicate element from 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
Determine if Two Trees are Identical
Root to leaf path sum
Square root of a number
Print all nodes that don't have sibling
Lowest Common Ancestor in a BST
Implement two stacks in an array
Max sum path in two arrays
Run Length Encoding
Largest subarray of 0's and 1's
Remove duplicate elements from sorted Array
Level order traversal Line by Line
Print BST elements in given range
Largest subarray with 0 sum
Minimum Depth of a Binary Tree
Remove duplicates in array
Odd even level difference
Binary Tree to BST
Unique rows in boolean matrix
Remove every kth node
Check if all leaves are at same level
Multiply two linked lists
Josephus problem
You and your books
Max distance between same elements
Print matrix in diagonal pattern
Check whether BST contains Dead End
Delete a Node in Single Linked List
Kth largest element in BST
Minimum distance between two numbers
Find duplicates in an array
Count distinct elements in every window
Check if two strings are k-anagrams or not
Special Stack
Root to leaf paths sum
Three way partitioning
Find Common Nodes in two BSTs
Level order traversal
Peak element
Inorder Successor in BST
Index of an Extra Element
Union of Two Linked Lists
Intersection of Two Linked Lists
Insert in a Sorted List
Split Linked List Alternatingly
Sum of leaf nodes in BST
Count More than n/k Occurences
Root to Leaf Paths
Reverse a string using Stack
Symmetric Tree
Delete Alternate Nodes
Huffman Decoding
Find the Sum of Last N nodes of the Linked List
Count Pairs whose sum is equal to X
Children Sum Parent
Find length of Loop
Median of BST
Normal BST to Balanced BST
Leaf under budget
Linked List Matrix
Reverse First K elements of Queue
Remove Half Nodes
Closest Neighbour in BST
Brothers From Different Roots
ZigZag Tree Traversal
Delete middle element of a stack
The New Line
Learn to Comment
For Loop- primeCheck
The New Line - Java
Learn to Comment - Java
Precise Format - Java
For Loop- primeCheck - Java
Count Odd Even
Swap the array elements
Predict the Column
Xoring and Clearing
Find the Frequency
Reverse an Array
Queue Operations
Get min at pop
Frequency Game
Find first set bit
Rightmost different bit
Check whether K-th bit is set or not
Longest Consecutive 1's
Modular Multiplicative Inverse
Swap all odd and even bits
Maximum occured integer
Wave Array
Frequencies of Limited Range Array Elements
Equilibrium Point
Leaders in an array
Rotate Array
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Two Repeated Elements
Roof Top
Union of Two Sorted Arrays
Subarray with given sum
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Rotate by 90 degree
Determinant of a Matrix
Boundary traversal of matrix
Anagram
Subarray with 0 sum
Winner of an election
Check if string is rotated by two places
Strings Rotations of Each Other
Isomorphic Strings
Reverse Words
Minimum indexed character
Non Repeating Character
Parenthesis Checker
Evaluation of Postfix Expression
Generate Binary Numbers
Minimum Cost of ropes
Activity Selection
N meetings in one room
Largest number with given sum
Reach a given score
Union-Find
Count ways to N'th Stair
Count number of hops
Number of Unique Paths
First Repeating Element
Union of Arrays with Duplicates
Numbers containing 1, 2 and 3
Missing in Array
Product array puzzle
Roman Number to Integer
Top K Frequent Elements in Array - |
Intersection of two arrays
Sort 0s, 1s and 2s
Maximize Array Value After Rearrangement
Pascal Triangle
Non-Repeating Element
Count the elements
Rotation
Find the closest number
Sort by Set Bit Count
Maximize sum after K negations
Adding Ones
Common elements
Find the element that appears once in sorted array
Split the Array
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Remove all duplicates from a given string
Minimize the sum of product
Move all negative elements to end
Chocolate Distribution Problem
Search in a Rotated Array
Count pairs Sum in matrices
Count the triplets
Find Pair Given Difference
Pairs with difference k
Swap and Maximize
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Single Number
Alternate positive and negative numbers
Remaining String
Check if frequencies can be equal
Kth distance
Rearrange string as alternate x and y occurences
Remove Duplicates
Nearest multiple of 10
Reorganize The Array
Facing the sun
Max Sum without Adjacents
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Rotate Bits
Second most repeated string in a sequence
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Reversing the equation
Does array represent Heap
Modify the Array
Convert an array to reduced form
Check if array is sorted
Sum Pair closest to target
String's Count
Longest Common Prefix of Strings
Longest substring with distinct characters
Smallest number in one swap
Find first repeated character
Product Pair
Min Number of Flips
Substrings with same first and last characters
Count pairs with given sum
Segregate 0s and 1s
Play With OR
Three Great Candidates
First element to occur k times
Element with left side smaller and right side greater
Find the closest pair from two arrays
Array Subset of another array
Count the Zeros
First negative integer in every window of size k
Four Elements
Palindrome String
Total count
Save Ironman
Pair with given sum in a sorted array
Print Bracket Number
Divisible by 5 or not
Shop in Candy Store
Odd Even Problem
Binary representation of next number
Last Match
Split the string
Is Binary Number Multiple of 3
Padovan Sequence
Extract the Number from the String
Minimum Operations
Check if a number is divisible by 8
Check if divisible by 10
Number of 1 Bits
Find the Highest number
Armstrong Numbers
Compute sum of digits in all numbers from 1 to n
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Swap two nibbles in a byte
Count digits in a factorial
Copy Set Bits in Range
Count Digits
Maximum Sum Problem
Number of digits
Party of Couples
Maximize dot product
Shortest path from 1 to n
Count Odd Factors
Sum of all divisors from 1 to n
Count numbers containing 4
Find maximum number
Trail of ones
K-Palindrome
Longest subsequence-1
Power Set
Reach the Nth point
Minimum number of Coins
Number Of Open Doors
Break a number
Perfect Numbers
Minimum Cost To Make Two Strings Identical
Nth item through sum
Geek and its Game of Coins
Maximize Toys
Largest number possible
Check if it is possible to survive on Island
Recamans sequence
Compare two fractions
Trailing zeroes in factorial
Choose and Swap
Form a number divisible by 3 using array digits
Sum of all prime numbers between 1 and N.
Series GP
Least Prime Factor
Reverse Coding
Find Nth root of M
Fact Digit Sum
Recursive sequence
Juggler Sequence
Tom and Jerry
Summed Matrix
Maximum Diamonds
Arithmetic Number
Surround the 1's
Coverage of all Zeros in a Binary Matrix
Exit Point in a Matrix
Trace Path
Inorder Traversal and BST
Letters Collection
Overlapping rectangles
Print Pattern
Array to BST
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Shortest distance in infinite tree
Find maximum volume of a cuboid
Plus One
Search insert position of K in a sorted array
Maximum GCD of siblings of a binary tree
Max Min
Count the Substrings
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Smallest window containing 0, 1 and 2
Insert an Element at the Bottom of a Stack
Sort a k sorted doubly linked list
Pattern 1
Pattern 2
Pattern 3
Fibonacci series up to Nth term
Stock Buy and Sell – Max one Transaction Allowed
Maximum Depth Of Binary Tree
Divisor Game
Introduction to Trees
Minimize the sum
Absolute difference divisible by K
Last modified ball
Transform to Sum Tree
Make array elements unique
Find the Node with maximum GCD of the siblings of a Binary Tree
Find the first node of loop in linked list
Maximum Weight Node
Type it!
Min operations
Last cell in a Matrix
Max Sum without Adjacents
Count number of free cell
Balloon Everywhere
Apple Sequences
Reverse both parts
Cutting Rectangles
Frogs and Jumps
Make Array Elements Equal
Equal Left and Right Subarray Sum
Make the array beautiful
Remainder on dividing by 11
Is it Fibonacci
Taxi Booking
Max Level Sum in Binary Tree
Binary matrix having maximum number of 1s
Number of Subarrays of 0's
Distinct Difference
Maximum Identical Bowls
Bus Conductor
Wifi Range
Minimum Number
Minimum Integer
Seating Arrangement
String Mirror
Powerfull Integer
Make Palindrome
Binary Modulo
Total Cuts
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Ticket Counter
Unique Number of Occurrences
Is it a Leap Year
Find Mode in BST
Two Smallests in Every Subarray
Split an array into two equal Sum subarrays
Largest Pair Sum
Two Swaps
Maximize partitions in a String
Count pairs with given sum
Count Pairs whose sum is less than target
Union of Two Sorted Arrays with Distinct Elements
Intersection of Two arrays with Duplicate Elements
Find All Triplets with Zero Sum
Search in a row-wise sorted matrix
Find Only Repetitive Element from 1 to n-1
Unique Number I
Linked List Group Reverse
Reorder List
Binary Tree to DLL
Clone List with Next and Random
Wildcard Pattern Matching
Max rectangle
Subtraction in Linked List
LRU Cache
Points in Straight Line
AVL Tree Insertion
Partition array to K subsets
Maximum subset XOR
Merge two BST 's
Longest Palindromic Substring in Linear Time
Alien Dictionary
Smallest range in K lists
AVL Tree Deletion
Nodes at given distance in binary tree
Fixing Two nodes of a BST
Maximum Path Sum between 2 Special Nodes
Number of Turns in Binary Tree
String Permutations
Trapping Rain Water
Max Circular Subarray Sum
Merge Without Extra Space
Smallest window in a string containing all the characters of another string
Histogram Max Rectangular Area
Maximum of minimum for every window size
Find median in a stream
Solve the Sudoku
Strongly connected component (Tarjans's Algo)
Allocate minimum number of pages
Minimum Cost Path
Word Ladder I
Median of 2 Sorted Arrays of Different Sizes
Stock Buy and Sell – Multiple Transaction Allowed
Burning Tree
Next Smallest Palindrome
Count Pairs in an Array
The Painter's Partition Problem-II
Form a palindrome
Numbers with one absolute difference
Distinct palindromic substrings
Count Smaller elements
Largest rectangle of 1s with swapping of columns allowed
Sid and his prime money
Longest Prefix Suffix
Number of distinct subsequences
Minimum number to make median X
Wildcard string matching
Circle of strings
Longest repeating and non-overlapping substring
Sum-string
Print all LCS sequences
All numbers with specific difference
Sub-arrays with equal number of occurences
Edit Distance
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
Check Tree Traversal
Matrix Chain Multiplication
Strictly Increasing Array
Bit Difference
Find Last Digit Of a^b for Large Numbers
The Palindrome Pattern
Very Tough Problem
Nth Natural Number
Kill Captain America
Path of greater than equal to k length
Return two prime numbers
Generalised Fibonacci numbers
Boolean Parenthesization
Longest valid Parentheses
Longest Zig-Zag Sub Sequence
Bike Racing
Possible Paths in a Tree
Word Break - Part 2
N-Queen Problem
Brackets in Matrix Chain Multiplication
Joey doesn't share food
nCr mod M | Part 1
Convex Hull
Phone directory
Next Optimal Move in Tic Tac Toe
Rohan's Love for Matrix
Queries on a Matrix
Adventure in a Maze
Closest Palindrome
Articulation Point - II
Optimal binary search tree
Find the pattern
Assignment Problem
Travelling Salesman Problem
Longest Path in a matrix
Akku and Arrays
Interesting Queries
Word Wrap
Hexadecimal to decimal counter
Create your own Calculator
Let's Play!!!
Nth digit of pi
Find the Maximum Flow
Find minimum s-t cut in a flow network
Smallest Positive Integer that can not be represented as Sum
Secret Cipher
132 Geeky Buildings
Corona Vaccine
Shortest Range In BST
Elixir of Life
Find all possible palindromic partitions of a String
Number of subsets with product less than k
Longest substring to form a Palindrome
Minimum X (xor) A
Find all Critical Connections in the Graph
Word Break (Trie)
Minimum operations to convert array A to B
Sorted Link List to BST
Find duplicate rows in a binary matrix
Longest Increasing Path in a Matrix
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
Word Ladder II
Distribute candies in a binary tree
Shortest Unique prefix for every word
Search Query Auto Complete
IPL 2021 - Match Day 6 - Semi Final
IPL 2021 - Final
Split Array Largest Sum
Find number of closed islands
Scrambled String
Shortest Path by Removing K walls
Count the number of subarrays
Find the String
Maximum Number of Toys
Articulation Point - I
Kth Smallest Number in Multiplication Table
Rearrange the array
Stock Buy and Sell – Max 2 Transactions Allowed
Min Chars to Add for Palindrome
Optimum location of point to minimize total distance
Subset sums between the given range
Maximum difference between pair in a matrix
Concatenate Equal to Target
Largest rectangular sub-matrix whose sum is 0
Minimum swap required to convert binary tree to binary search tree
Minimum time to fulfil all orders
Maximum number of overlapping Intervals
Longest Path in a Directed Acyclic Graph
Cut woods
Geek in a Maze
Vertex Cover
Partition a set into two subsets such that the difference of subset sums is minimum (Set-2)
Check if all levels of two trees are anagrams or not
K Centers Problem
Maximum Triple Product
Maximum Connected group
Minimum travel time
Expression Add Operators
Burst Balloons
Minimum Cost to Merge Stones
Minimize Max Distance to Gas Station
LFU cache
Count Reverse Pairs
Candy
Minimum Window Subsequence
Account Merge
Maximum XOR With an Element From Array
Chocolates Pickup
Better String
Count Lucky Permutations
Count the Substring
Minimum Number Of Sprinkler
Select Nodes
Largest Sum Cycle
Greater or Less
Fixing Two swapped nodes of a BST
Shortest Path Using Atmost One Curved Edge
Avoid Explosion
Walls Coloring II
Redundant Parenthesis
Partition the Array
Count Binary Strings With No Consecutive 1s
Divide in Incremental Groups
Max min Height
Maximum Number of coins
Median of the Subarrays
Minimum BST Sum Subtree
Special Digits
Cake Distribution Problem
Min Time
Game Of Subsets
Geekina Hate 1s
Making A Large Island
Meeting Rooms III
Minimum Weight Cycle
Reverse alternate nodes in Link List
Reverse a Linked List in groups of given size
Rotate a Linked List
Add Number Linked Lists
Rearrange a linked list
Add 1 to a Linked List Number
Merge 2 sorted linked list in reverse order
Delete nodes having greater value on right
Quick Sort on Linked List
QuickSort on Doubly Linked List
Count BST nodes that lie in a given range
Merge Sort
Quick Sort
Construct Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Intersection Point in Y Shaped Linked 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 at Same Level
Flattening a Linked List
Diagonal Traversal of Binary Tree
Tree Boundary Traversal
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
Lowest Common Ancestor in a Binary Tree
Min distance between two given nodes of a Binary Tree
Square root of a number
Maximum difference between node and its ancestor
Range Minimum Query
Absolute List Sorting
Binary Heap Operations
The Celebrity Problem
Topological sort
Vertical Traversal of Binary Tree
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
Make Binary Tree From Linked List
Toeplitz matrix
Generate IP Addresses
Check if subtree
Extreme nodes in alternate order
Kth element in Matrix
Is Binary Tree Heap
Clone a Binary Tree
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Distinct occurrences
Max length chain
Minimum Spanning Tree
Additive sequence
Largest BST
Interleaved Strings
Sum of permutations
Sorted subsequence of size 3
LRU Cache
Box Stacking
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Count of distinct substrings
Palindrome Linked List
Strongly Connected Components (Kosaraju's Algo)
Rat in a Maze Problem - I
Bipartite Graph
Max sum subarray by removing at most one element
Number of root to leaf paths
Find the Closest Element in BST
Pots of Gold Game
Merge two BST 's
Trie | (Delete)
Merge k Sorted Arrays
Length of longest palindrome in linked list
Bridge edge in a graph
Print Nodes having K leaves
Find triplets with zero sum
Sort a stack
Duplicate subtree in Binary Tree
Find the missing no in string
Top View of Binary Tree
k-th Smallest in BST
Polynomial Addition
Delete nodes greater than k
Merge Sort for Linked List
Maximum Bipartite Matching
Euler Circuit in an Undirected Graph
Euler circuit and Path
Merge Sort on Doubly Linked List
Ancestors in Binary Tree
Binary Tree to CDLL
Pair Sum in BST
Occurences of 2 as a digit
Complete Binary Tree
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
Construct Tree from Inorder & Preorder
Construct tree from Inorder and LevelOrder
Arrange Consonants and Vowels
Count the nodes at distance K from leaf
Vertical sum
Mirror of a given node
Pairs violating BST property
Insert in Sorted way in a Sorted DLL
Check if Tree is Isomorphic
Maximum path sum from any node
pth common ancestor in BST
Predecessor and Successor
Leaves to DLL
Largest Independent Set Problem
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Duplicate Subtrees
Construct Tree from Preorder Traversal
Sum of nodes on the longest path
Kth Ancestor in a Tree
Construct a Full Binary Tree
Check if two Nodes are Cousins
Convert Level Order Traversal to BST
Count Number of SubTrees having given Sum
Vertical Width of a Binary Tree
C++ Friend function
C++ Generic sort
Cat and Hat - Python
Zero Converter - Python
Swap Kth nodes from ends
Add two numbers represented by Linked List
Maximum sum of Non-adjacent nodes
Mother Vertex
Ceil in BST
Count total set bits
Gray to Binary equivalent
Maximum AND Value
Tower Of Hanoi
Smallest Positive Missing Number
Power Of Numbers
Possible Words From Phone Digits
Rotate and delete
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Product of Increasing Subsequence of Size 3
Maximum Index
Trapping Rain Water
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Unique BST's
Count the number of possible triangles
Triplet Sum in Array
Number of pairs
Possible paths between 2 vertices
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray range with given sum
Subarrays with equal 1s and 0s
Sorting Elements of an Array by Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
K largest elements
Nearly sorted
Fractional Knapsack
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Black and White
Combination Sum
Unique Subsets
M-Coloring Problem
Minimum Jumps
Detect Cycle using DSU
Ways to write n as sum
Stickler Thief
Ways to Reach the n'th Stair
Count ways to N'th Stair(Order does not matter)
Egg Dropping Puzzle
Optimal Strategy For A Game
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Lucky Numbers
Sort an array according to the other
Allocate Minimum Pages
Preorder to PostOrder
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Shortest Common Supersequence
Nth catalan number
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Closest Three Sum
Word Break
Stock buy and sell II
Generate Parentheses
Word Search
Word Boggle
Prerequisite Tasks
Find All Four Sum Numbers
Excel Sheet | Part - 1
Paths to reach origin
Taking 1 out of 3 consecutives
Missing And Repeating
Complement
Maximum Sub Array
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Sum of Subarrays
Equal Sum
Top k numbers in a stream
Large Factorial
Longest Span in two Binary Arrays
Maximize Number of 1's
Max and Min Products
Median of two sorted arrays
Equivalent Sub-Arrays
Mr. Modulo and Arrays
Count Number
Consecutive 1's not allowed
Count Occurences of Anagrams
Count of Subarrays
Find the element that appears once
Pythagorean Triplet
Happiest Triplet
Mr Modulo and Pairs
Painting the Fence
Sum of two elements with sum nearest to zero
Smallest factorial number
Sum of bit differences
Sonam Bewafa asks questions
Print Binary Tree levels in sorted order
Count the Number of Full Binary Trees
Maximum Intervals Overlap
Minimums in Array
Maximize The Array
Largest Number formed from an Array
Efficiently sorting numbers in range from 0 to n^2 - 1
Marks of PCM
Water Collection
Alternate Vowel and Consonant String
Add Binary Strings
Super Primes
Maximum Product Subarray
Longest subarray with sum divisible by K
Check if a string is repetition of its substring of k-length
Sort the given array after applying the given equation
Archana and her tricky string
Row with max 1s
Max value after m range operation
Swapping pairs make sum equal
Column name from a given column number
Comment Removal
Concatenation of Zig-Zag String in n Rows
Design a tiny URL or URL shortener
Substrings with K Distinct
Count of Palindromic substrings in an Index range
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Rotate a 2D array without using extra space
Longest Subarray with Sum K
Transform String
Count the Reversals
count special palindromic
Number of positive integral solutions
Cutting Binary String
Sum of two large numbers
Sick Pasha
Equal 0, 1 and 2
Beautiful SubSequence
Factorials of large numbers
Search Pattern (KMP-Algorithm)
Find length of longest subsequence
Maximum length Bitonic Subarray
Shuffle integers
Reverse each word in a given string
Find the N-th character
Length of the longest substring
Remove leading zeros from an IP address
The Tiny Miny
Maximum Sum Path in Two Arrays
k largest elements
Sum of XOR of all pairs
Find missing in second array
Magnet Array Problem
Longest Common Substring
Smallest distinct window
Longest common substring value of two numbers
Count of substrings containing K ones
Longest K unique characters substring
Longest Palindrome in a String
Look and Say Pattern
Save Winterfell
Minimum steps to get desired array
Pass the semester
Find the position
Valid Expression
Tic Tac Toe
Integer to Words
String Conversion
K-th element of two Arrays
Arranging the array
String formation from substring
Possible groups
Longest Arithmetic Progression
Count triplets with sum smaller than X
Rod Cutting
Save Gotham!
Aditya and his building blocks
K closest elements
Number of pairs
Fill array with 1's
Subset with no pair sum divisible by K
Smallest Subarray GCD
Missing element of AP
Minimum swaps and K together
Maximize the sum of selected numbers from a sorted array to make it empty
Smallest Absolute Difference
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Longest Common Increasing Subsequence
Smallest Non-Zero Number
Find the number of subarrays having even sum
Find k-th character in string
Longest Prefix Suffix
Maximum difference of zeros and ones in binary string
Equalize the Towers
Number of palindromic strings
Minimum sum
Not a subset sum
Build the smallest
Subarray Inversions
Minimize the Heights II
Large Factorials
Surpasser Count
Transform to prime
Rubik's Cube
First and last occurrences of x
Reaching the heights
Construct binary palindrome by repeated appending and trimming
Next higher number in one swap
Next higher palindromic number using the same set of digits
Smaller on Left
Minimum Deletions
A difference of values and indexes
Maximum Product of Increasing Subsequence of Size 3
Print N-bit binary numbers having more 1s than 0s
Nine Divisors
Valid Substring
Find patterns
Minimum number of deletions.
Minimum Swaps for Bracket Balancing
Permutations of a String
Missing Intervals
Print kth character
Number following a pattern
Previous number in one swap
Challenge by Nikitasha
Substring - Subsequence problem
Find largest word in dictionary
Circle of strings
Rotate String
Friends Pairing Problem
Longest repeating and non-overlapping substring
String Subsequence Game
Special Numbers
CamelCase Pattern Matching
Sum-string
Pallindrome Patterns
Count divisors of product of array elements
Maximum Sum Subsequence of length k
Lexicographically smallest string
Sum of Products
Maximum XOR subset
Count the subarrays having product less than k
Unique Number II
Bleak Numbers
Queries for counts of multiples in an array
Ways to sum to N
Skip the work
Maximum bitonic subarray sum
Max possible amount
Maximum calorie
Modular Exponentiation for large numbers
Edit Distance
Game of XOR
Largest prime factor
3 Divisors
Maximum Tip Calculator
Find the element at given index
Min cut Square
Modified Game of Nim
Disarrangement of balls
Minimum number of deletions and insertions
Maximum sum increasing subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Sequence of Sequence
Count of n digit numbers whose sum of digits equals to given sum
Santa Banta
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)
Dice throw
Number of subsequences in a string divisible by n
Palindromic Strings
Perfect Sum Problem
Fibonacci Sum
Smallest number
Power Of 2 and Subsequences
Dyck Path
Kth Smallest Factor
Firing employees
Shreyansh and his bits
Find the largest number
Count ways to N'th Stair(Order does not matter)
First Digit
Find distinct elements
Subset with sum divisible by m
Knapsack with Duplicate Items
Numbers with 0 as a digit
Temple Offerings
nCr
Number of ways
Count Integral Points
Count of sum of consecutives
Subsets with XOR value
Maximum path sum in matrix
Minimum steps to destination
Special Keyboard
Partition Equal Subset Sum
XOR Game
Longest Bitonic subsequence
Min Coin
Get Minimum Squares
Maximum GCD Pair
Part of it.
Lucky alive person in a circle
Handshakes
Count possible ways to construct buildings
Count distinct pairs with difference k
Count digit groupings of a number
Jumbled Strings
Dimensions of Rectangle
Probability of Knight
Page Faults in LRU
Array Pair Sum Divisibility Problem
Digit multiplier
Magic Triplets
Brain Game
Money Distributions
Fill up buckets
Matchsticks game
Median in a row-wise sorted Matrix
N trailing zeroes in factorials
Killing Spree
Subset Sums
Unique partitions
Prime Pair with Target Sum
N Digit numbers with digits in increasing order
Carmichael Numbers
Square Numbers
Count Numbers in Range
Yes XOR No
Fill the Tank
Akku and Binary Numbers
Number of paths
Sisters and coins
Nth Natural Number
Knight Walk
Stepping Numbers
Permutation with Spaces
Coins and Game
Number of paths in a matrix with k coins
Card Rotation
Bell Numbers
Game of Chocolates
Find the last digit when factorial of A divides factorial of B
LCM Triplet
Pasha and Primes
Count Total Setbits
Sum of Query II
Find Prime numbers in a range
Nth digit in sequence
Arrange Balls
Power of Largest Prime
Count Divisors of Factorial
Jumping Numbers
A Game of LCM
Count in array
Party in Town
Game with String
Two water Jug problem
Count even length
A Simple Fraction
Numbers with alternative 1's
Grouping Of Numbers
Find the Safe Position
Smith Number
Cows of FooLand
Count of AP Subsequences
Count ways to increase LCS length of two strings by one
Next Permutation
Missing number in matrix
Rank The Permutations
Prime factorization and geek number
Element left after performing alternate OR & XOR operation
Smallest number on left
Maximum sum of hour glass
Geek and knots
Total number of Equal Partition
Nitika and her queries
Filling Bucket
Divisibility
How Many X's?
Large Product-2
Series with largest GCD and sum equals to N
Matrix Exponentiation
Longest Repeating Subsequence
Longest alternating subsequence
Composite and Prime
Finding Profession
Left Rotate Matrix K times
Let's Go Shopping!
Decode the string
Is Sudoku Valid
Preorder Traversal and BST
ThrowBall at Fair
Total Decoding Messages
Distributing Balls
First non-repeating character in a stream
Maximum Sub-String after at most K changes
Big Numbers Series
Count Divisors
Mathematical manipulation
Letters Collection
Check If two Line segments Intersect
2D Hopscotch
Buying Vegetables
Villain Con
Possible paths
Segregate even and odd nodes in a Link List
Print leaf nodes from preorder traversal of BST
Geek collects the balls
Number of Rectangles in a Circle
Largest square formed in a matrix
Pizza Mania
Tricky Subset Problem
Pyramid form
Water Overflow
Longest Perfect Piece
Rat Maze With Multiple Jumps
Integral Points Inside Triangle
Kth largest element in a stream
Easy Query
Snake and Ladder Problem
Geek and Strings
Sum of Query I
Pairs of Non Coinciding Points
The Smurfs
Divide and Subtract Game
Satisfy the equation
7 Segment Display
Product of Primes
Transitive closure of a Graph
Replace O's with X's
nCr mod M | Part 2
Two numbers with odd occurrences
Mail System Design
Find all distinct subset (or subsequence) sums
Cost of Sweets
Lots of Work
Check Mirror in N-ary tree
Your Social Network
Queries on Strings
Special Matrix
Broken blocks
Recurrence Matrix
Factorial and numbers
Leftmost Divisor
Express as sum of power of natural numbers
Count all Possible Path
Find the string in grid
Shortest Uncommon Subsequence
Number of Palindromic paths in a Matrix
Nodes at even distance
The Infinite String
Biconnected Graph
Reverse Delete Algorithm for Minimum Spanning Tree
Crazy Equations
Help a Thief!!!
Largest Divisibility Test
Count the paths
Floyd Warshall
Negative weight cycle
Flood fill Algorithm
Form coils in a matrix
Techfest and the Queue
Largest subsquare surrounded by X
Shortest Source to Destination Path
Divisibility tree
Base Equivalence
Rahul and The Lift
Maximum sum Rectangle
Shortest Path between Cities
Fun With Expresions
Height Using Parent Array
Reverse Spiral Form of Matrix
Police and Thieves
Geek in a Maze
Geek and Number String
Print the Sequence
Save Your Life
Image Multiplication
Missing Point of a Parallelogram
Huffman Encoding
Hamiltonian Path
Recursively remove all adjacent duplicates
Magical Box
Water Connection Problem
Number of minimum picks to get 'k' pairs of socks from a drawer
Spiral Matrix
Coins of Geekland
Valid Pair Sum
Dam of Candies
Transfiguration
Repeated String Match
Ruling Pair
Count Triplets
Restrictive Candy Crush
Help Classmates
Restricted Pacman
Valentine Sum
Lucy's Neighbours
Spidey Sense
Project Manager
Water the plants
Escape the Forbidden Forest
Jump Game
Maximum value of difference of a pair of elements and their Index
Inorder Traversal (Iterative)
Triplets with sum with given range
Preorder traversal (Iterative)
Postorder Traversal (Iterative)
Subset Sum Problem
Longest Palindromic Substring
Form a palindrome
Search Pattern (Z-algorithm)
Search Pattern (Rabin-Karp Algorithm)
All Palindromic Partitions
Covid Spread
3 sum closest
Bellman-Ford
Player with max score
Gray Code
Subarrays with sum K
Remove BST keys outside given range
Partition a Linked List around a given value
Minimum XOR value pair
Searching an element in a sorted array (Ternary Search)
Word Boggle - II
Maximum XOR subarray
Capacity To Ship Packages Within D Days
Sort a 2D vector diagonally
Coin Piles
Rearrange characters
Distribute N candies among K people
Remove K Digits
Substrings of length k with k-1 distinct elements
Binary Searchable elements
Clone a stack without using extra space
Maximum XOR of two numbers in an array
Count pairs in array divisible by K
Construct list using given q XOR queries
Number of Provinces
Prefix match with other strings
Binary Matrix with at most K 1s
Maximum sum leaf to root path
Find duplicate rows in a binary matrix
Single valued subtree
BST to max heap
Maximum sum of elements not part of LIS
BST to greater sum tree
Find rectangle with corners as 1
Paths from root with a specified sum
Shortest Prime Path
Shortest Prime Path
Cousins of a given node
Division without using multiplication, division and mod operator
Insertion Sort for Singly Linked List
Remove all occurences of duplicates in a linked list
Minimize the Heights I
Subsets
Flatten binary tree to linked list
Rank The Permutations
Anti Diagonal Traversal of Matrix
Design Browser History
Design Twitter
IPL 2021 - Match Day 1
IPL 2021 - Match Day 2
IPL 2021 - Match Day 3
IPL 2021 - Match Day 4
Neeman's Shoes
Unique Number III
All Unique Permutations of an array
Course Schedule
License Key Formatting
Find and Replace in String
Clone an Undirected Graph
Min Cost Climbing Stairs
Target Sum
Minimum times A has to be repeated such that B is a substring of it
Bitwise AND of the Array
Overlapping Intervals
Bitwise AND of the Array
Remove and Reverse
Buy and Sell a Share at most twice
Find Kth permutation
Maximum number of events that can be attended
Split the binary string into substrings with equal number of 0s and 1s
Longest Possible Route in a Matrix with Hurdles
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
Number of pairs
Farthest number
Maximum product subset of an array
Robots
K-th Largest Sum Contiguous Subarray
Node in subtree or not
Hit most Balloons
Maximum Meetings in One Room
Enemy
Find Maximum Equal sum of Three Stacks
Buy Maximum Stocks if i stocks can be bought on i-th day
Exactly one swap
Maximum Winning score
Compute Before Matrix
Interleave the First Half of the Queue with Second Half
Levels Of Game
Smallest sum contiguous subarray
Array Removals
Max Sum without Adjacents 2
Find shortest safe route in a matrix
Minimum Cost to cut a board into squares
Stack Permutations
Largest subtree sum in a tree
Remove Invalid Parentheses
Calculate the coefficient
Expression contains redundant bracket or not
Assembly Line Scheduling
Wine Buying and Selling
Maximum trains for which stoppage can be provided
Is it a tree ?
Replace every element with the least greater element on its right
Geek fight
Special Keyboard 2
Minimum time taken by each job to be completed given by a Directed Acyclic Graph
Total Number Of Spanning Trees In A Graph
Maximum selections
LCP
Next element with greater frequency
Sum of nodes within k distance from target
Minimum increment/decrement to make array non-Increasing
Minimize Cash Flow
Minimum edges
Minimum Swaps
Construct Binary Tree from String with bracket representation
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
Alex Travelling
Number Of Islands
Merging Details
Number of Ways to Arrive at Destination
Pattern
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
Maximum Frequency
Majority Element II
Sum of Beauty of All Substrings
Koko Eating Bananas
Search in Rotated Array 2
Count Good numbers
Fruit Into Baskets
Longest Repeating Character Replacement
Maximum Consecutive Ones
Count Subarray with k odds
Count Substring
Binary subarray with sum
Sum of subarray minimum
Asteroid Collision
Minimal Cost
Geek's Training
Grid Path 2
Sum of subarray ranges
Maximum point you can obtain from cards
Subarrays with K Different Integers
Buy Stock 2
Buy Stock with Cooldown
Combination Sum III
Aggressive Cows
Smallest Divisor
Subset II
Combination Sum II
Check if there exists a subsequence with sum K
Next Greater Element 2
Ugly Number II
Combination Sum II
Shortest Path in Weighted undirected graph
Prime Factorization using Sieve.
Prefix to Infix Conversion
Prefix to Postfix Conversion
Word Search
Minimum days to make M bouquets
Generate all binary strings
Delete all occurrences of a given key in a doubly linked list
Postfix to Prefix Conversion
Postfix to Infix Conversion
Task Scheduler
Hands of Straights
Minimum Absolute Difference In BST
Buy Stock with Transaction Fee
Number of Longest Increasing Subsequence
Lemonade Change
Maximum Sum Combination
Non-overlapping Intervals
Stickler Thief II
Replace elements by its rank in the array
Convert Min Heap to Max Heap
Insert Interval
Shortest Job first
Implementation of Priority Queue using Binary Heap
Partition Array for Maximum Sum
Count Square Submatrices with All Ones
Introduction to DP
Longest String Chain
Printing Longest Increasing Subsequence
Bit's basic operations
Partitions with Given Difference
Index of the First Occurrence of pattern in a text
Floor in BST
Triangle Path Sum
Largest Divisible Subset
GCD Array
Minimize number of Students to be removed
Maximum Value
Shortest Prime Path
Flattening a Linked List
Next Greater Element
Carpet into Box
Minimum X (xor) A
Find minimum number of Laptops required
Geeks And The String
Tree Transformation
Find the longest string
Maximum Profit By Choosing A Subset Of Intervals
Minimum repeat to make substring
Distinct Coloring
Intersection Point in Y Shaped Linked Lists
BST Downward Traversal
Length of the longest subarray with positive product
Maximum Bipartite Matching
Minimum Days
Prime List
Walls Coloring
Water the plants
Geeks Island
Connect Nodes at Same Level
Unique Paths in a Grid
Valid Compressed String
Fill the Matrix
Number of Good Components
Optimal Array
Best Node
Update Queries
Good Stones
Maximum Intersecting Lines
String rp or pr
Knight in Geekland
Shy Geek
Count Special Numbers
Minimum Steps Required
Minimum Platforms 2
Count Cyclic Paths
Maximum Triplet product
Second smallest number
Special Palindrome Substrings
Maximum Possible Value
Find anagrams in linked list
Yet another query problem
Geek hates too many 1s
Maximum Length
Remove the balls
Unequal Arrays
Job Sequencing Problem
Bheem Wants Ladoos
Prefix Suffix String
Smaller Sum
Shortest XY distance in Grid
BST Maximum Difference
Nearest smaller tower
Another Coin Change Problem
Geek's Village and Wells
Find Number
Max Coins
Good Subtrees
Subtree In N-ary Tree
Easy Task
Add Minimum Characters
Maximum subset sum
Palindrome with minimum sum
Count Total Setbits
Tree Transformation
Construct a Full Binary Tree
Modify Linked List-1
Find Kth permutation
Fraction pairs with sum 1
Shortest Subarray with Sum K
New Year Resolution
Grinding Geek
Flatten BST to sorted list
Minimize the Difference
Pairs violating the BST property
Kth common ancestor in BST
Maximum Skill 2
Kth Missing Positive Number in a Sorted Array
Count Subarrays with given XOR
Set Matrix Zeroes
Minimum cost to connect all houses in a city
Meeting Rooms
Split array in three equal sum subarrays
Search in an almost Sorted Array
Find H-Index
Longest Subarray with Majority Greater than K
Count all triplets with given sum in sorted array
Implement Pow
K Closest Points to Origin
Longest Bounded-Difference Subarray
Lexicographically Largest String After K Deletions
Group Balls by Sequence
Print Linked List elements
Count Linked List Nodes
Node at a given index in linked list
Delete node in Doubly Linked List
Size of Binary Tree
Inorder Traversal
Count Leaves in Binary Tree
Check If Circular Linked List
Postorder Traversal
Implement Stack using Linked List
Implement stack using array
Implement Queue using Linked List
Implement Queue using array
Doubly linked list Insertion at given position
Binary Search
Replace all 0's with 5
Count zeros in a sorted matrix
Third largest element
Convert to Roman No
Preorder Traversal
Implement strstr
Search a node in BST
Smallest divisible number
Remainder with 7
Operating an array
Linked List Insertion
Minimum element in BST
Anagram of String
Is Linked List Length Even?
Delete Alternate Nodes
Identical Linked Lists
Find the Sum of Last N nodes of the Linked List
Find n/k th node in Linked list
Maximum in Struct Array
Queue Reversal
Triplet Family
Sum of Binary Tree
Insert in Middle of Linked List
longest substring containing '1'
Product of array elements
Start Coding
Bit Difference
Number is sparse or not
Power of 2
Reverse array in groups
Search an Element in an array
Searching an element in a sorted array
Binary Array Sorting
Print Matrix in snake Pattern
Check if a string is Isogram or not
Binary String
Check if strings are rotations of each other or not
Maximum Occuring Character
Remove common characters and concatenate
Sum of numbers in string
Reverse a String
Union of two arrays
Check if two arrays are equal or not
Print first n Fibonacci Numbers
C++ Hello World
Maximize sum(arr[i]*i) of an Array
Rearranging array
Find the closest number
Searching a number
Missing number
Balanced Array
Sort The Array
Alternative Sorting
Maximum product of two numbers
Check for subsequence
Remove Consecutive Characters
Sort in specific order
Fighting the darkness
Greater on right side
Immediate Smaller Element
Uncommon characters
Quick Left Rotation
Convert array into Zig-Zag fashion
Repeated Character
Index of first 1 in a sorted array of 0s and 1s
Missing number in shuffled array
Product of maximum in first array and minimum in second
Elements in the Range
Last index of One
Largest Element in Array
Cyclically rotate an array by one
Print an array in Pendulum Arrangement
Inverse Permutation
Game with nos
Play With OR
First element to occur k times
Exceptionally odd
Ishaan Loves Chocolates
Rotating an Array
Remove Duplicates from unsorted array
Find the smallest and second smallest element in an array
Min and Max in Array
Multiply left and right array sum.
Print first letter of every word in the string
Remove character
Binary representation of next number
Difference between highest and lowest occurrence
GCD of Array
Minimum product pair
Find unique element
Check if a number is power of another number
Find position of set bit
Set kth bit
Find the fine
LCM And GCD
Maximum money
Leap Year
Factorial
Binary number to decimal number
Prime Number
Closest Number
Angle between hour and minute hand
Sum of first n terms
Shortest path from 1 to n
Sieve of Eratosthenes
Ways To Tile A Floor
Count Squares
Middle of Three
Print the Kth Digit
Sorted matrix
Sum of Series
Display longest name
Delete alternate characters
Reverse a String
1s Complement
close
A
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 !