Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
K
pkpatel1604
Current POTD Streak
STREAK
01
/1540
days
Longest streak/Global longest streak
Institution
A D Patel Institute of Technology
1 Rank
Institute Rank
Language Used
C++, C, Python, Java
Coding Score
2357
Problem Solved
900
Contest Rating
__
Apply for Campus Mantri
75 points
Contributor
75 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
January
February
March
April
May
June
July
August
September
October
SCHOOL (4)
BASIC (116)
EASY (319)
MEDIUM (399)
HARD (62)
Sorting Elements of an Array by Frequency
Rearrange characters
Nearly Sorted Algorithm
Reverse alternate nodes in Link List
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Rearrange a linked list
Add 1 to a Linked List Number
Linked List in Zig-Zag fashion
Detect Loop in linked list
Insert in Sorted Circular Linked List
Count BST nodes that lie in a given range
Check for BST
Merge Sort
Quick Sort
Binary Tree from Inorder and Postorder
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
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
Stack using Queue
Tree Boundary Traversal
Reverse alternate levels of a perfect binary tree
Implement stack using array
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Lowest Common Ancestor in a BST
Two Stacks in an Array
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
Gas Station
Linked List to Binary Tree
Generate IP Addresses
Check if subtree
Extreme nodes in alternate order
Kth smallest element in a Matrix
Is Binary Tree Heap
Clone a Binary Tree
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Interleaved Strings
Sum of permutations
Sorted subsequence of size 3
Sum of subset differences
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Maximum Difference
Count of distinct substrings
Palindrome Linked List
Strongly Connected
Print matrix in diagonal pattern
Rat in a Maze
Bipartite Graph
Max sum subarray by removing at most one element
Closest in BST
BST with Dead End
Merge two BST 's
Minimum four sum subsequence
Count distinct elements in every window
k-Anagram
Trie | (Delete)
Merge k Sorted Arrays
Root to leaf paths sum
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
Level order traversal
Peak element
Merge Sort for Linked List
Maximum Bipartite Matching
Union of Two Linked Lists
Binary Tree to CDLL
Pair Sum in BST
Populate Inorder Successor for all nodes
Counting elements in two arrays
K Sum Paths
Foldable Binary Tree
Construct Tree from Inorder & Preorder
Isomorphic Trees
Predecessor and Successor
Children Sum in a Binary Tree
Find length of Loop
Duplicate Subtrees
Sum of nodes on the longest path
ZigZag Tree Traversal
C++ Generic sort
Mother Vertex
Count set bits
Tower Of Hanoi
Reverse array in groups
Smallest Positive Missing
Maximum occured integer
Wave Array
Possible Words From Phone Digits
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Binary Array Sorting
Count Inversions
Two Repeated Elements
Unique BST's
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Count the number of possible triangles
Sort by Absolute Difference
Triplet Sum in Array
Merge Without Extra Space
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Distance of nearest cell having 1
Subarray with 0 sum
Subarray range with given sum
Subarrays with equal 1s and 0s
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Strings Rotations of Each Other
Case-specific Sorting of Strings
Postfix Evaluation
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
Largest number in K swaps
Target Sum Combinations
M-Coloring Problem
Minimum Jumps
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Sort according to an Array
Allocate Minimum Pages
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Nth number made of prime digits
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Top K Frequent in Array
Closest Three Sum
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Generate Parentheses
Word Boggle
Prerequisite Tasks
4 Sum - All Quadruples
Excel Sheet | Part - 1
Sort 0s, 1s and 2s
Taking 1 out of 3 consecutives
Complement
Longest sub-sequence such that difference between adjacents is one
Maximum Sub Array
Sum of Subarrays
Equal Sum
Large Factorial
Longest Span in two Binary Arrays
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Mr. Modulo and Arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count Occurences of Anagrams
Pythagorean Triplet
Painting the Fence
Pair Sum Closest to 0
Search in Rotated Sorted Array
Smallest number with at least n trailing zeroes in factorial
Maximize The Array
Max Score from Subarray Mins
Form the Largest Number
Efficiently sorting numbers in range from 0 to n^2 - 1
Water Collection
Add Binary Strings
Subarray Sum Divisible By K
Maximum Product Subarray
Longest subarray with sum divisible by K
Row with max 1s
Max value after m range operation
Swapping pairs make sum equal
Check if frequencies can be equal
Column name from a given column number
Design a tiny URL or URL shortener
Sort in specific order
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Transform String
Count the Reversals
Sum of two large numbers
Max Sum without Adjacents
Equal 0, 1 and 2
Factorials of large numbers
Maximum length Bitonic Subarray
Length of the longest substring
The Tiny Miny
k largest elements
Magnet Array Problem
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Longest Palindrome in a String
Look and Say Pattern
Minimum steps to get desired array
K-th element of two Arrays
Longest Arithmetic Subsequence
Triplets with Smaller Sum
Greater tower sum
Aditya and his building blocks
Subset with no pair sum divisible by K
Pick Values
Minimum swaps and K together
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
First negative in every window of size k
Find the number of subarrays having even sum
Maximum difference of zeros and ones in binary string
Minimum sum
Not a subset sum
Minimize the Heights II
Surpasser Count
First and Last Occurrences
Construct binary palindrome by repeated appending and trimming
Palindrome in Alphanumeric String
Minimum Deletions
Valid Substring
Minimum number of deletions
Minimum Swaps for Bracket Balancing
Permutations of a String
Missing Intervals
Friends Pairing Problem
Special Numbers
Count divisors of product of array elements
Unique Number II
Largest prime factor
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Mobile numeric keypad
Gold Mine Problem
Coin Change (Minimum Coins)
Perfect Sum Problem
Smallest number
Longest subsequence-1
Power Set
Knapsack with Duplicate Items
nCr
Geek and its Game of Coins
Maximum path sum in matrix
Special Keyboard
Partition Equal Subset Sum
Longest Bitonic subsequence
Array Pair Sum Divisibility Problem
Magic Triplets
Matchsticks game
Subset Sums
N Digit numbers with digits in increasing order
Number of paths
Number of paths in a matrix with k coins
Count Total Setbits
Squares in Rectangle
Sum of Query II
Find Prime numbers in a range
Game with String
Fraction to Repeating Decimal
Next Permutation
Rank The Permutations
Rotate matrix elements clockwise
Array Sum Excluding Subarrays
Longest Repeating Subsequence
Longest alternating subsequence
Stream First Non-repeating
Segregate even and odd nodes in a Linked List
Water Overflow
Kth Largest in a Stream
Snake and Ladder Problem
Geek and Strings
Eulerian Path in an Undirected Graph
Replace O's with X's
Check Mirror in N-ary tree
Traverse All Edges And Vertices
Find the string in grid
Floyd Warshall
Flood fill Algorithm
Array to BST
Image Multiplication
Recursively Remove Adjacent Duplicates
Triplets in Sorted Linked List
Escape the Forbidden Forest
Jump Game
Max Diff Elements and Indexes
Triplets with sum with given range
Preorder traversal (Iterative)
Subset Sum Problem
Bellman-Ford
Gray Code
Subarrays with sum K
Remove BST keys outside given range
Partition a Linked List around a given value
Minimum XOR value pair
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
Prefix match with other strings
Maximum sum leaf to root path
Division without using multiplication, division and mod operator
Minimize the Heights I
Flatten binary tree to linked list
Anti Diagonal Traversal of Matrix
Minimum times A has to be repeated such that B is a substring of it
Special Matrix
Fill the Matrix
Add Minimum Characters
IPL 2021 - Match Day 2
Maximum Intersecting Lines
Make array elements unique
Compute Before Matrix
Maximum Winning score
Distinct Coloring
Smallest distinct window
Robots
Unique Number III
Minimum times A has to be repeated such that B is a substring of it
Longest Competitive Subsequence
Programming Contest
Maximum Length
Overlapping Intervals
Walls Coloring
Reverse a Stack
Minimum Steps Required
Farthest number
Robots
Max Equal sum of 3 Stacks
Buy Maximum Stocks
Smallest sum contiguous subarray
Even Swap
Count number of substrings
Maximum Bipartite Matching
LCS
Rotten Oranges
Geeks And The String
Find the longest string
Optimal Array
Collect Maximum Oranges
Geek and New Job
3 - Numbers
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
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Split a Linked List into two halves
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Right View of Binary Tree
Mirror Tree
Two Mirror Trees
Maximum Width of 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
Transform to Sum Tree
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
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
Square Root
Nodes without a Sibling
Binary Search
Run Length Encoding
Largest subarray of 0's and 1's
Remove Duplicates Sorted Array
Level Order Line by Line
BST Keys in a Range
Minimum Depth of a Binary Tree
Remove Duplicates from an array
Odd even level difference
Binary Tree to BST
Equilibrium index of an array
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
Find Maximum value
Multiply two linked lists
Josephus problem
You and your books
Expression Tree
Max distance between same elements
Longest Consecutive Subsequence
Count Occurrence of digit k
Delete in a Singly Linked List
Kth largest element in BST
Minimum distance in an Array
Array Duplicates
Max Level Sum in Binary Tree
Special Stack
Three way partitioning
String Modification
Longest consecutive sequence in Binary tree
Inorder Successor in BST
Index of an Extra Element
Intersection of Two Linked Lists
Insert in a Sorted List
Play with an array
Level of a Node in Binary Tree
Minimum element in BST
Reverse Using Stack
Symmetric Tree
Delete Alternate Nodes
Construct BST from Postorder
Huffman Decoding-1
Count Pairs whose sum is equal to X
Maximum Pairwise Computed Value
Queue Reversal
Reverse first K of a Queue
Magical Number
Find Sum Pairs Across Two BSTs
Product of an Array
The New Line
Swap the array elements
Count the Specials
Predict the Column
Count Odd Even - Java
Need Some Change - Java
Count the Specials - Java
Matrix Interchange - Java
Predict the Column - Java
Learning Structs
Find the Frequency
Java ArrayList Operation
Reverse an Array
Operations on PriorityQueue
First Set Bit
Rightmost different bit
Check K-th Bit
Longest Consecutive 1's
Modular Inverse
Power of 2
Swap odd and even bits
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Minimum Number in a sorted rotated array
Roof Top
Anagram
String Rotated by 2 Places
Isomorphic Strings
Reverse Words
Minimum indexed character
Panagram Checking
Non Repeating Character
Parenthesis Checker
N meetings in one room
Reach a given score
Count ways to N'th Stair
Count number of hops
First Repeating Element
Union of Arrays with Duplicates
Common Elements
Check Equal Arrays
Numbers containing 1, 2 and 3
Pair with largest sum which is less than K in the array
Missing in Array
Product array puzzle
Roman Number to Integer
Intersection of Arrays with Distinct
Mean of range in array
Adding One
Max Value Permutation
Missing And Repeating
Cumulative frequency of count of each element in an unsorted array
Non-Repeating Element
Last seen array element
Pairs of equals Sum
Count the elements
Maximum Gap
Find Kth Rotation
Sort by Set Bit Count
Professor and Parties
k sorted array
Maximize sum after K negations
Adding Ones
Pairs with certain difference
Common in 3 Sorted Arrays
Sorted and Rotated Minimum
Maximum no of 1's row
Move All Zeroes to End
String Duplicates Removal
Equal Sum and Product
Minimize the sum of product
Missing number
Move all negative elements to end
Chocolate Distribution Problem
Count the triplets
Find Pair Given Difference
Permutations in array
Swap and Maximize
Bitonic Point
Find Duplicate Element
Smallest subarray with sum greater than x
Sort Array II
Alternate Positive Negative
Maximum Possible Sum of Products
Remove Consecutive Characters
Convert a sentence into its equivalent mobile numeric keypad sequence
Addition of submatrix
Form largest number from digits
Arya's Long String
Remove Duplicates
Nearest multiple of 10
Reorganize The Array
Facing the sun
Greater on right side
Jumping Caterpillars
Convert array into Zig-Zag fashion
Rotate Bits
Second most repeated string in a sequence
Check if array contains contiguous integers
Find all pairs with a given sum
Number of occurrence
Find the left over element
Rope Cutting
Modify the Array
Pair the minimum
Convert an array to reduced form
Find missing in second array
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
First Repeated Character
Min Number of Flips
Sum of distinct elements for a limited range
Counts Zeros Xor Pairs
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
Inverse Permutation
Play With OR
At Least K Occurrences
Max sum submatrix
Element with left side smaller and right side greater
Count the Zeros
Total distance travelled in an array
Merge two binary Max heaps
Palindrome String
Total count
Search array with adjacent diff at most k
Chocolate Station
Pair with given sum in a sorted array
Shop in Candy Store
Colorful Strings
Minimum Operations
Number of 1 Bits
Armstrong Numbers
Rearrange the array
Nth Fibonacci Number
Maximum size of consecutives
Star elements
Toggle bits in the given range
Completing tasks
Shortest path from 1 to n
Find maximum number
Minimum number of Coins
Number Of Open Doors
Number of Groups
Nth Pentagonal Number
Maximize Toys
Largest number possible
Page Faults in LRU
Tricky Sorting Cost
Trailing zeroes in factorial
Form a number divisible by 3 using array digits
Series GP
Total number of Strings
Subtraction and two numbers
Triangular Number
BBT counter
Is Square
Arithmetic Number
Row with Minimum 1s
Farthest number
Multiply two polynomials
Letters Collection
Kronecker Product
Overlapping rectangles
Break Numbers[Duplicate problem]
Earthquake and the Paint Shop
Sum of k smallest elements in BST
Print Diagonally
Largest value in each level
Find the X
Absolute difference divisible by K
Construction of a string
Minimum Swaps
Frogs and Jumps
Transform to Sum Tree
Make array elements equal
Silver and Gold
Negative Prefix
Geek and Co-Prime Numbers
Geek's House party
Zero
Remainder on dividing by 11
Mean BST
Count the Substrings
Shift squares
Geeks And Arithmetic Progression
Can Nobita meet Sizuka?
Will Dekisugi prove his intelligence?
Will Sizuka be impressed?
Last modified ball
Competitive String
Minimize the sum
The Ultimate Duel
The Final Task
Number of Subarrays of 0's
Increasing subarray
Geek's Invention
Binary Modulo
Finding Non Zero Digit
Split the binary string into substrings with equal number of 0s and 1s
Smallest Subset with Greater Sum
CBA Subsequence
Make Palindrome
Assign Tasks
Arithmetic Number
Even Sum
Count the Substrings
Minimum product
K divisible array
Distinct Subsequence
Same characters
Sorted array
Equal Left and Right Subarray Sum
Equal strings
Game Of Two
Balloon Everywhere
Maximum occurring digit
Assign Tasks
Maximum Frequency
Reverse both parts
Yet another query problem
Odd Series
Find the number of Matchsticks
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
Distinct occurrences
LRU Cache
Partition array to k subsets
Alien Dictionary
Smallest range in K lists
Max Path Sum 2 Special Nodes
Trapping Rain Water
Max Circular Subarray Sum
Smallest window containing all characters
Histogram Max Rectangular Area
Solve the Sudoku
Minimum Cost Path
Median of 2 Sorted Arrays of Different Sizes
Merge Without Extra Space
Next Smallest Palindrome
Count Pairs in an Array
The Painter's Partition Problem-II
Palindrome SubStrings
Distinct palindromic substrings
Search Pattern
Largest rectangle of 1s with swapping of columns allowed
Longest Prefix Suffix
Wildcard string matching
Edit Distance
Minimum sum partition
Number Formation
Palindromic Partitioning
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Very Tough Problem
Boolean Parenthesization
Longest valid Parentheses
Word Break - 2
N-Queen Problem
Geek collects the balls
Phone directory
Optimal binary search tree
Longest Path in a matrix
Word Wrap
Maximum sum Rectangle
Let's Play!!!
Huffman Encoding
Water Connection Problem
Smallest Positive Integer that can not be represented as Sum
Search Pattern (Rabin-Karp Algorithm)
Maximum XOR subarray
Sorted Linked List to BST
Palindrome Pairs
Reverse a sublist of a linked list
Shortest Unique prefix for every word
Fixing Two swapped nodes of a BST
IPL 2021 - Final
Maximum Number of coins
Minimum Number Of Sprinkler
Ways to color a board
Rotate Array
Print Linked List
Find Length of Linked List
Count Leaves in Binary Tree
Queue using Linked List
Queue Using Array
Add two fractions
Replace all 0's with 5
Replace all 0's with 5
Print number pattern
Largest product
Preorder Traversal
First Occurence
Sum Except First and Last
Palindromic Array
Linked List Insertion At End
Is Linked List Length Even?
Identical Linked Lists
Triplet Family
Insert in Middle of Linked List
Alternates in an Array
Count Odd and Even
Sum Array Puzzle
Sum of diagonals
Bit Difference
Number is sparse or not
Print 1 To N Without Loop
Array Search
Sorted Array Search
Remove common characters and concatenate
Reverse a String
Binary Array Sorting
Rearranging array
Sum of Array
Sum of Natural Numbers
Searching in an Array
Count pair sum
Print Elements of Array
Balanced Array
At least two greater elements
Check Arithmetic Progression
Sort a String
Anagram Palindrome
Alternative Sorting
Check if divisible by 4
Maximum product of two numbers
Value equal to index value
Convert a list of characters into a String
Encrypt the string - 1
Maximum triplet sum in array
Fighting the darkness
Reverse sub array
Sum of distinct elements
Uncommon characters
Swap kth elements
A guy with a mental problem
Repeated Character
First 1 in a Sorted Binary Array
Missing number in shuffled array
Max and Min Product from 2 Arrays
Display longest name
Find element at a given Index
Last index of One
Front-Back Transformation - copy
Merge two strings
Largest Element in Array
Rotate Array by One
Sum Triangle for given array
Game with nos
One odd Occuring
Ishaan Loves Chocolates
Array Subset
C++ Strings
Count of smaller elements
Min and Max in Array
Multiply left and right array sum
Extract Maximum
Smallest number repeating K times
Good or Bad string
Snake Case
Program to print reciprocal of letters
Magical String[Duplicate Problem]
Difference between highest and lowest occurrence
GCD of two numbers
XOR of all elements
Check for Power
Find position of set bit
Set kth bit
XOR Count Zero and One
Find the fine
Strong Numbers
Nth Even Fibonacci Number
set-bits and number
LCM And GCD
Longest Increasing Subarray
C++ Data Types
Binary Shift to Divide
Median of an Array
Sum of Digit is Palindrome or not
Reverse digits
Binary number to decimal number
Series AP
Java 1-d and 2-d Array
C++ 2-D Arrays | Set-1
Multiplication Table
Square Divisors
Count Squares
Middle of Three
Print the Kth Digit
Reading books
Finding Position
Squares in a Matrix
Addition of two square matrices
Sorted matrix
Student record
Preorder Traversal
Reverse an Array
Maximum and Minimum Of Array Elements
Search in a 2D Matrix
Arrays (Sum of array)
close
K
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri