Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
Campus Mantri
harshitgupta0123
star
star
star
star
Current POTD Streak
STREAK
410
/1434
days
Longest streak/Global longest streak
Institution
Kamla Nehru Institute of Technology (KNIT) Sultanpur
47 Rank
Institute Rank
Language Used
C++, Javascript, Java, Python
Coding Score
1719
Problem Solved
538
Contest Rating
1820
Campus Mantri
harshitgupta0123
1 points
Contributor
1 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
150 submissions in current year
Current
2024
2023
2022
January
February
March
April
May
June
July
SCHOOL (0)
BASIC (21)
EASY (205)
MEDIUM (272)
HARD (40)
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Add 1 to a Linked List Number
Detect Loop in linked list
Quick Sort on Linked List
Insert in Sorted Circular Linked List
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
Sum Tree
Construct Binary Tree from Parent Array
Tree Boundary Traversal
Directed Graph Cycle
Undirected Graph Cycle
Max sum path in two arrays
The Celebrity Problem
Topological sort
Merge K sorted linked lists
Find the number of islands
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
Kth element in Matrix
Is Binary Tree Heap
Validate an IP Address
Remove loop in Linked List
Additive sequence
Largest BST
Sorted subsequence of size 3
Multiply two strings
Implement Atoi
Maximum Difference
Palindrome Linked List
Print matrix in diagonal pattern
Rat in a Maze Problem - I
Merge two BST 's
Count distinct elements in every window
Root to leaf paths sum
Bridge edge in a graph
k-th Smallest in BST
Euler Circuit in an Undirected Graph
Ancestors in Binary Tree
Pair Sum in BST
Root to Leaf Paths
Populate Inorder Successor for all nodes
XOR Linked List
Counting elements in two arrays
Linked List that is Sorted Alternatingly
K Sum Paths
Construct Tree from Inorder & Preorder
Arrange Consonants and Vowels
Vertical sum
Insert in Sorted way in a Sorted DLL
Maximum path sum from any node
Children Sum in a Binary Tree
Diagonal sum in binary tree
Deletion and Reverse in Circular Linked List
Duplicate Subtrees
Sum of nodes on the longest path
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Gray to Binary equivalent
Smallest Positive Missing
Maximum occured integer
Rotate and delete
Maximum Index
Rotate Array
Kadane's Algorithm
Majority Element
Count Inversions
Two Repeated Elements
Union of 2 Sorted with Duplicates
Indexes of Subarray Sum
Count the number of possible triangles
Number of pairs
Merge Without Extra Space
Spirally traversing a matrix
Search in a sorted Matrix
Determinant of a Matrix
Subarray range with given sum
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
Next Greater Element
K Sized Subarray Maximum
Nearly sorted
Activity Selection
Job Sequencing Problem
Minimum Platforms
Minimum Jumps
Stickler Thief
Ways to Reach the n'th Stair
Optimal Strategy For A Game
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Allocate Minimum Pages
Kth Smallest
Rotten Oranges
Maximize The Cut Segments
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Closest Three Sum
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Word Search
Sort 0s, 1s and 2s
Paths to reach origin
Pascal Triangle
Longest Span in two Binary Arrays
Sum of Middle elements of two sorted arrays
Split the Array
Pythagorean Triplet
Search in Rotated Sorted Array
Sum of bit differences
Max Score from Subarray Mins
Form the Largest Number
Add Binary Strings
Maximum Product Subarray
Sort the given array after applying the given equation
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Column name from a given column number
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Max Sum without Adjacents
Find the N-th character
k largest elements
Longest Common Substring
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
K closest elements
Missing element of AP
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Equalize the Towers
Minimum sum
Not a subset sum
Minimize the Heights II
First and Last Occurrences
Minimum Deletions
Print N-bit binary numbers having more 1s than 0s
Permutations of a String
Sum of Products
Unique Number II
Modular Exponentiation for large numbers
Game of XOR
Maximum Tip Calculator
Modified Game of Nim
Minimum number of deletions and insertions
Maximize dot product
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
String Subsequence
Mobile numeric keypad
Coin Change (Minimum Coins)
Smallest number
Trail of ones
K-Palindrome
Longest subsequence-1
Power Set
Count ways to N'th Stair(Order does not matter)
Minimum Cost To Make Two Strings Identical
nCr
Geek and its Game of Coins
Minimum steps to destination
Partition Equal Subset Sum
Count possible ways to construct buildings
Prime Pair with Target Sum
Nth Natural Number
Game with String
Next Permutation
Maximum sum of hour glass
How Many X's?
Exit Point in a Matrix
Longest alternating subsequence
Rotate Each Row of Matrix K Times
Decode the string
Total Decoding Messages
Check If two Line segments Intersect
Number of Rectangles in a Circle
Largest square formed in a matrix
Integral Points Inside Triangle
Rohan's Love for Matrix
Largest subsquare surrounded by X
Divisibility tree
Police and Thieves
Subset Sum Problem
Search Pattern (Rabin-Karp Algorithm)
Subarrays with sum K
Substrings of length k with k-1 distinct elements
Construct list using given q XOR queries
Find duplicate rows in a binary matrix
Remove all occurences of duplicates in a linked list
Minimize the Heights I
Anti Diagonal Traversal of Matrix
Unique Number III
All Unique Permutations of an array
Min Cost Climbing Stairs
Overlapping Intervals
Maximum product subset of an array
Buy Maximum Stocks
Exactly one swap
Find shortest safe route in a matrix
Sort a k sorted doubly linked list
City With the Smallest Number of Neighbors at a Threshold Distance
Path With Minimum Effort
Shortest Path in Undirected
Majority Element II
Koko Eating Bananas
Longest subarray with Atmost two distinct integers
Minimal Cost
Aggressive Cows
Smallest Divisor
Combination Sum II
Shortest Path in Weighted undirected graph
Minimum Absolute Difference In BST
Non-overlapping Intervals
Stickler Thief II
Insert Interval
Longest String Chain
Partitions with Given Difference
Make array elements unique
Minimum repeat to make substring
Prime List
Unique Paths in a Grid
Number of Good Components
Minimum Steps Required
Maximum Length
Remove the balls
Smaller Sum
Add Minimum Characters
Count Total Setbits
Last Fairy Standing
Minimize the Difference
Maximum Bridges
Pairs violating the BST property
Kth common ancestor in BST
Find Max Inversions
Exotic Subsequences
Kth Missing Positive Number in a Sorted Array
Count Subarrays with given XOR
Set Matrix Zeroes
Palindromic Substrings
Find All Triplets with Zero Sum
Split array in three equal sum subarrays
Search in an almost Sorted Array
Find H-Index
Count all triplets with given sum in sorted array
Implement Pow
Subarrays With At Most K Distinct Integers
K Closest Points to Origin
Longest Bounded-Difference Subarray
Lexicographically Largest String After Deleting K Characters
Group Balls by Sequence
Reverse a linked list
Frequency in a Linked List
Linked list of strings forms a palindrome
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Check for BST
K distance from root
Mirror Tree
Delete without head pointer
Height of Binary Tree
Middle of a Linked List
Left View of Binary Tree
Delete Middle of Linked List
Decimal Equivalent of Binary Linked List
Reverse Level Order Traversal
DFS of Graph
BFS of graph
Root to leaf path sum
Square Root
Nodes without a Sibling
Lowest Common Ancestor in a BST
Binary Search
Largest subarray of 0's and 1's
Remove duplicates in array
Toeplitz matrix
Remove every k'th node
Leaves at Same Level or Not
Multiply two linked lists
You and your books
Max distance between same elements
Array Duplicates
Three way partitioning
Level order traversal
Index of an Extra Element
Insert in a Sorted List
Split Linked List Alternatingly
Sum of leaf nodes in BST
More than n/k Occurrences
Symmetric Tree
Delete Alternate Nodes
Find the Sum of Last N nodes of the Linked List
Count Pairs whose sum is equal to X
Find length of Loop
Linked List Matrix
Remove Half Nodes
Closest Neighbour in BST
Swap the array elements
Predict the Column
Xoring and Clearing
Reverse an Array
First Set Bit
Rightmost different bit
K-th Bit is Set or Not
Power of 2
Wave Array
Equilibrium Point
Array Leaders
Roof Top
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Rotate by 90 degree
Anagram
Winner of an election
Strings Rotations of Each Other
Reverse Words
Panagram Checking
Non Repeating Character
Parenthesis Checker
Minimum Cost of ropes
N meetings in one room
Reach a given score
Count ways to N'th Stair
Count number of hops
Union of Arrays with Duplicates
Missing in Array
Product array puzzle
Roman Number to Integer
Max Value Permutation
Missing And Repeating
Count the elements
Find the closest number
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Count pairs Sum in matrices
Find Pair Given Difference
Pairs with difference k
Swap and Maximize
Bitonic Point
Single Number
Alternate Positive Negative
Remaining String
Kth distance
Remove Duplicates
Nearest multiple of 10
Reorganize The Array
Facing the sun
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Rotate Bits
Number of occurrence
K-Pangrams
Does array represent Heap
C++ Visible Numbers
Modify the Array
Sum Pair closest to target
Find missing in second array
Longest Common Prefix of Strings
Substrings with same first and last characters
Segregate 0s and 1s
Play With OR
At Least K Occurrences
Palindrome String
Total count
Pair with given sum in a sorted array
Print Bracket Number
Odd Even Problem
Binary representation of next number
Padovan Sequence
Extract the Number from the String
Minimum Operations
Divisibility by 8
Number of 1 Bits
Find the Highest number
Armstrong Numbers
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Swap two nibbles in a byte
Maximum Sum Problem
Party of Couples
Count numbers containing 4
Perfect Numbers
Recamans sequence
The Palindrome Pattern
Compare two fractions
Sum of First N Natural Numbers
Recursive sequence
Juggler Sequence
Summed Matrix
Row with Minimum 1s
Coverage of all Zeros in a Binary Matrix
Inorder Traversal and BST
Print Pattern
Array to BST
Find maximum volume of a cuboid
Smallest window containing 0, 1 and 2
Insert an Element at the Bottom of a Stack
Fibonacci series up to Nth term
Stock Buy and Sell – Max one Transaction Allowed
Divisor Game
Find the first node of loop in linked list
Equal Left and Right Subarray Sum
Remainder on dividing by 11
Minimum Number
Antique Collections
Check Anagram Existence
Beautiful Number
Complete the Staircase
Negative Prefix
Is it a Leap Year
Maximum Happiness
Minimum Distance
Array Game
Find fun(x)
Magic Array
Not a palindromic string
Chocolate Distribution
Equality
Minimum Number of Elements
Check for Consecutive
Frequency of every Element
Geek & Geekina Purchasing Ice Cream
Eye's Contact
Geek Count
And is Equal to OR
Reach Alice
Two Smallests in Every Subarray
Split an array into two equal Sum subarrays
Largest Pair Sum
Perfect Meeting
Validate distribution
Find Smallest
Winner Team
Maximum Sum
Geek String
Distribute Balls
Two Swaps
Maximize partitions in a String
Smallest Substring
Count pairs with given sum
Meeting Rooms
Count Pairs whose sum is less than target
Max Splits
Union of Two Sorted Arrays with Distinct Elements
Intersection of Two arrays with Duplicate Elements
Search in a row-wise sorted matrix
Count the Substrings
Find Only Repetitive Element from 1 to n-1
Can you sort the array
Unique Number I
Linked List Group Reverse
Binary Tree to DLL
Clone List with Next and Random
LRU Cache
Alien Dictionary
Merge Sort on Doubly Linked List
Fixing Two nodes of a BST
Trapping Rain Water
Max Circular Subarray Sum
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
Burning Tree
Count Pairs in an Array
The Painter's Partition Problem-II
Search Pattern (KMP-Algorithm)
Count Smaller elements
Longest Prefix Suffix
Circle of strings
Longest repeating and non-overlapping substring
Sub-arrays with equal number of occurences
Edit Distance
Minimum Points To Reach Destination
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Strictly Increasing Array
Generalised Fibonacci numbers
Boolean Parenthesization
Longest valid Parentheses
Possible Paths in a Tree
N-Queen Problem
Kth Smallest Number in Multiplication Table
Stock Buy and Sell – Max 2 Transactions Allowed
Min Chars to Add for Palindrome
Maximum Connected group
Minimize Max Distance to Gas Station
Account Merge
Count Linked List Nodes
Peak element
Minimum element in BST
Is Linked List Length Even?
Identical Linked Lists
Triplet Family
Reverse a String
First n Fibonacci
At least two greater elements
Alternative Sorting
Find element at a given Index
Jay's Apples
Java 1-d and 2-d Array
Friend of x
Naughty Geek
Valid Strings
Time Travel
Who has the majority?
Geekland Elections
Valid Triangle
Disk Placement
close
H
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 !