Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
bhargav_katabathuni
star
star
star
Current POTD Streak
STREAK
287
/1558
days
Longest streak/Global longest streak
Institution
Acharya Nagarjuna University (ANU) Guntur
2 Rank
Institute Rank
Organization
Antstack Technologies
Language Used
Python, Java, Javascript, C++
Coding Score
2159
Problem Solved
734
Contest Rating
1694
Apply for Campus Mantri
45 points
Contributor
45 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
35 submissions in current year
Current
2024
2023
2022
2021
January
February
March
April
May
June
July
August
September
October
November
SCHOOL (2)
BASIC (48)
EASY (277)
MEDIUM (358)
HARD (49)
Reverse a linked list
Frequency in a Linked List
Pairwise swap elements of a linked list
Node at a given index in linked list
Compare two linked lists
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Delete in a Doubly Linked List
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Right View of Binary Tree
K distance from root
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
Decimal Equivalent of Binary Linked List
Transform to Sum Tree
Intersection Sorted Linked Lists
Find Transition Point
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
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
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
Unique rows in boolean matrix
Remove every k'th node
Leaves at Same Level or Not
Multiply two linked lists
Search a node in BST
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
Inorder Successor in BST
Index of an Extra Element
Intersection of Two Linked Lists
Insert in a Sorted List
Minimum element in BST
Sum of leaf nodes in BST
More than n/k Occurrences
Max and min element in Binary Tree
Perfect Binary Tree
Reverse Using Stack
Symmetric Tree
Delete Alternate Nodes
Find the Sum of Last N nodes of the Linked List
Next Right Node
Count Pairs whose sum is equal to X
Maximum Node Level
Leaf under budget
Find n/k th node in Linked list
Queue Reversal
Reverse first K of a Queue
Remove Half Nodes
Sum of Leaf Nodes
Sum of Left Leaf Nodes
Nodes at Odd Levels
Closest Neighbour in BST
Find Sum Pairs Across Two BSTs
Sum of Leaf Nodes at Min Level
Tilt of Binary Tree
Delete Mid of a Stack
Swap the array elements
Predict the Column
Sum of Big Integers
Frequency in Queue
Get min at pop
Frequency Game
First Set Bit
Rightmost different bit
Check K-th Bit
Longest Consecutive 1's
Power of 2
Frequencies in a Limited Array
Equilibrium Point
Array Leaders
Floor in a Sorted Array
Print adjacency list
Sum of upper and lower triangles
Print Matrix in snake Pattern
Transpose of Matrix
Matrix Boundary Traversal
Anagram
Winner of an election
String Rotated by 2 Places
Isomorphic Strings
Reverse Words
Minimum indexed character
Panagram Checking
Non Repeating Character
Parenthesis Checker
Generate Binary Numbers
N meetings in one room
Reach a given score
Count number of hops
First Repeating Element
Union of Arrays with Duplicates
Check Equal Arrays
Missing in Array
Product array puzzle
Roman Number to Integer
Intersection of Arrays with Distinct
Max Value Permutation
Missing And Repeating
Non-Repeating Element
Find Kth Rotation
Sort by Set Bit Count
Adding Ones
Common in 3 Sorted Arrays
Maximum no of 1's row
Search in a Row-Column sorted matrix
Move All Zeroes to End
String Duplicates Removal
Min sum formed by digits
Minimize the sum of product
Move all negative elements to end
Chocolate Distribution Problem
Count the triplets
Swap and Maximize
Bitonic Point
Alternate Positive Negative
Check if a given string is a rotation of a palindrome
Convert a sentence into its equivalent mobile numeric keypad sequence
Rearrange a string
Remove Duplicates
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
Reversing the equation
Does array represent Heap
Convert an array to reduced form
Check if array is sorted
String's Count
First Repeated Character
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
Play With OR
At Least K Occurrences
Find the closest pair from two arrays
Count the Zeros
Palindrome String
Search array with adjacent diff at most k
Easy string
Is Binary Number Multiple of 3
Extract the Number from the String
Minimum Operations
Divisibility by 8
Number of 1 Bits
Find the Highest number
Midori and chocolates
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Change Bits
Ceil The Floor
Swap two nibbles in a byte
Copy Set Bits in Range
Count Digits
Prime Number
Maximum Sum Problem
Party of Couples
Shortest path from 1 to n
Sum 1 to n Divisors
The Bit Game
Reach the Nth point
Minimum number of Coins
Break a number
Perfect Numbers
Maximize Toys
Largest number possible
Recamans sequence
Form a number divisible by 3 using array digits
Least Prime Factor
Sum of First N Natural Numbers
Prime Factors
Recursive sequence
Juggler Sequence
Maximum Diamonds
Arithmetic Number
Surround the 1's
Inorder Traversal and BST
Sequence Fun
Letters Collection
Print Pattern
Primes sum
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Largest value in each level
Count the Substrings
Minimum Sum of Absolute Differences of Pairs
Smallest window containing 0, 1 and 2
Move Last Element to Front of a Linked List
Find XOR of numbers from L to R.
Stock Buy and Sell – Max one Transaction Allowed
Maximum Depth Of Binary Tree
Divisor Game
Bus Ticket Change
Bit Manipulation
Unique Binary Tree Requirements
Minimize the sum
Transform to Sum Tree
Parent of Max GCD Siblings in a Binary Tree
Type it!
Balloon Everywhere
Reverse both parts
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
Calculate The Work Done
Taxi Booking
Max Level Sum in Binary Tree
Binary matrix having maximum number of 1s
Number of Subarrays of 0's
Maximum Identical Bowls
Bus Conductor
Wifi Range
Minimum Number
Minimum Integer
Seating Arrangement
Maximize Sum
Make Palindrome
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Valuable String
Antique Collections
Cousins in Tree
Strong Students in School
Ticket Counter
Unique Number of Occurrences
Separate Stone
Balloon Everywhere
Beautiful Number
Strong Students in School
Silver and Gold
Mean BST
Antique Collections
Character Matrix Conundrum
Prefix Distinct
Eye's Contact
Implement Lower Bound
Implement Upper Bound
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
Merge 2 sorted linked list in reverse order
Detect Loop in linked list
Insert in Sorted Circular Linked List
Count BST nodes that lie in a given range
Check for BST
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
Connect Nodes of Levels
Flattening a Linked List
Diagonal Tree Traversal
Stack using Queue
Tree Boundary Traversal
Implement stack using array
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Absolute List Sorting
Lowest Common Ancestor in a BST
Two Stacks in an Array
The Celebrity Problem
Largest subarray with 0 sum
Topological Sort
Vertical Tree Traversal
Find the number of islands
Find kth element of spiral matrix
Get Min from Stack
Gas Station
Wildcard Pattern Matching
Validate an IP Address
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Multiply two strings
Implement Atoi
Palindrome Linked List
Bipartite Graph
Closest in BST
BST with Dead End
Count distinct elements in every window
Longest Palindrome in Linked List
Bridge edge in a graph
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
Union of Two Linked Lists
Euler circuit and Path
Ancestors in Binary Tree
Binary Tree to CDLL
Root to Leaf Paths
K Sum Paths
Leftmost and rightmost nodes of binary tree
Count the nodes at distance K from leaf
Vertical sum
Isomorphic Trees
Maximum path sum
Predecessor and Successor
Children Sum in a Binary Tree
Diagonal sum in binary tree
Find length of Loop
Median of BST
Normal BST to Balanced BST
Sum of nodes on the longest path
Kth Ancestor in a Tree
Check if two Nodes are Cousins
ZigZag Tree Traversal
Vertical Width of a Binary Tree
Swap Kth nodes from ends
Mother Vertex
Ceil in BST
Reverse array in groups
Smallest Positive Missing
Power Of Numbers
Wave Array
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Stock buy and sell
Rotate Array
Kadane's Algorithm
Majority Element
Binary Array Sorting
Indexes of Subarray Sum
Triplet Sum in Array
Merge Without Extra Space
Level of Nodes
Make Matrix Beautiful
Boolean Matrix
Spirally traversing a matrix
Rotate by 90 degree
Determinant of a Matrix
Distance of nearest cell having 1
Subarray with 0 sum
Strings Rotations of Each Other
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Find median in a stream
Fractional Knapsack
Minimum Platforms
Detect Cycle using DSU
Stickler Thief
Ways to Reach the n'th Stair
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Largest number
K nearest Points
Lucky Numbers
Sort according to an Array
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Kth Smallest
Implement Trie
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Top K Frequent in Array
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Word Search
Prerequisite Tasks
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Paths to reach origin
Maximum Sub Array
Pascal Triangle
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Top k numbers in a stream
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count of Subarrays
Pythagorean Triplet
Painting the Fence
Search in Rotated Sorted Array
Sum of bit differences
Form the Largest Number
Alternate Vowel and Consonant String
Add Binary Strings
Maximum Product Subarray
Longest subarray with sum divisible by K
Check if a string is repetition of its substring of k-length
Row with max 1s
Column name from a given column number
Substrings with K Distinct
Form a palindrome
Nuts and Bolts Problem
Longest Subarray with Sum K
Next Smaller Element
Sum of two large numbers
Max Sum without Adjacents
Shuffle integers
Reverse each word in a given string
k largest elements
Sum of XOR of all pairs
Longest Common Substring
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
String formation from substring
Rod Cutting
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
First negative in every window of size k
Build the smallest
Roll the characters of a String
Minimize the Heights II
Transform to prime
First and Last Occurrences
Minimum Deletions
A difference of values and indexes
Find patterns
Permutations of a String
Number following a pattern
CamelCase Pattern Matching
Subarrays Product Less than K
Unique Number II
Bleak Numbers
Modular Exponentiation
Game of XOR
Largest prime factor
3 Divisors
Modified Game of Nim
Max Sum Increasing Subsequence
Coin Change (Count Ways)
Sequence of Sequence
Santa Banta
Gold Mine Problem
Perfect Sum Problem
Power Set
Knapsack with Duplicate Items
nCr
Partition Equal Subset Sum
Longest Bitonic subsequence
Count possible ways to construct buildings
Count digit groupings of a number
Array Pair Sum Divisibility Problem
Magic Triplets
Matchsticks game
Prime Pair with Target Sum
Number of paths
Number of paths in a matrix with k coins
LCM Triplet
Return two prime numbers
Find nth root of m
Game with String
Smith Number
Next Permutation
Smaller on Left
Maximum sum of hour glass
How Many X's?
Exit Point in a Matrix
Longest Repeating Subsequence
Stream First Non-repeating
Segregate even and odd nodes in a Linked List
The Smurfs
Eulerian Path in an Undirected Graph
Transitive closure of a Graph
Replace O's with X's
Two odd Occuring
Express as sum of power of natural numbers
Traverse All Edges And Vertices
Find the string in grid
Count the paths
Floyd Warshall
Flood fill Algorithm
Array to BST
Techfest and the Queue
Shortest Source to Destination Path
Iterative Inorder
Preorder traversal (Iterative)
Iterative Postorder
Subset Sum Problem
Longest Palindromic Substring
Bellman-Ford
Subarrays with sum K
Remove K Digits
Number of Provinces
Prefix match with other strings
Find duplicate rows in a binary matrix
Paths from root with a specified sum
Shortest Prime Path
Sort for Singly Linked List
Anti Diagonal Traversal of Matrix
IPL 2021 - Match Day 2
Unique Number III
All Unique Permutations of an array
Course Schedule II
Clone an Undirected Graph
Remove and Reverse
Reverse a Stack
Maximum Meetings in One Room
Max Equal sum of 3 Stacks
Buy Maximum Stocks
Array Removals
Graph is Tree or Not
LCP
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Number Of Enclaves
Safe States
Path With Minimum Effort
Cheapest Flights Within K Stops
Shortest Path in Undirected Graph
Shortest path in Directed Acyclic Graph
Majority Element - More Than n/3
Sum of Beauty of All Substrings
Longest subarray with Atmost two distinct integers
Frog Jump
Minimal Cost
Stock Buy and Sell with Cooldown
Combination Sum III
Aggressive Cows
Shortest Path in Weighted undirected graph
Prime Factorization using Sieve
Task Scheduler
Hands of Straights
Buy Stock with Transaction Fee
Number of Longest Increasing Subsequence
Maximum Sum Combination
Count Number of Nodes in a Binary Tree
Longest String Chain
Print Longest Increasing Subsequence
Partitions with Given Difference
Floor in BST
Maximum Value
Next Greater Element in Circular Array
Find the first node of loop in linked list
Carpet into Box
Geeks And The String
Intersection Point in Y Shaped Linked Lists
Minimum Days
Prime List
Water the plants
Connect Nodes at Same Level
Unique Paths in a Grid
Valid Compressed String
Fill the Matrix
Number of Good Components
Optimal Array
Maximum Intersecting Lines
String rp or pr
Shy Geek
Minimum Steps Required
Maximum Triplet product
Second smallest number
Maximum Possible Value
Distinct Difference
Yet another query problem
Geek hates too many 1s
Maximum Length
Remove the balls
Bheem Wants Ladoos
Smaller Sum
Shortest XY distance in Grid
Nearest smaller tower
Powerful Integer
Add Minimum Characters
Maximum subset sum
Construct a Full Binary Tree
Modify Linked List-1
Find Kth permutation
Remove the balls
Fraction pairs with sum 1
New Year Resolution
Grinding Geek
Flatten BST to sorted list
Maximum Doublet XOR
Count Subarrays with given XOR
Print Linked List
Find Length of Linked List
Check for Binary String
Size of Binary Tree
Count Leaves in Binary Tree
Queue Using Array
Print number pattern
Preorder Traversal
First Occurence
Palindromic Array
Linked List Insertion At End
Anagram of String
Is Linked List Length Even?
Identical Linked Lists
Modular Node
Sum of Binary Tree
Insert in Middle of Linked List
Alternates in an Array
Number is sparse or not
Print 1 To N Without Loop
Array Search
Sorted Array Search
Reverse a String
First n Fibonacci
Rearranging array
Sum of Natural Numbers
Print Elements of Array
Value equal to index value
Uncommon characters
Repeated Character
Largest Element in Array
Rotate Array by One
Game with nos
One odd Occuring
Array Subset
Rotating an Array
Min and Max in Array
Print first letter of every word in the string
Odd or Even
Find position of set bit
Set kth bit
Set the rightmost unset bit
Reverse digits
Print 1 to n without using loops
Sum of product of x and y with floor(n/x) = y
Pattern 5
Naughty Geek
Maximize Expression
Linked List Group Reverse
Reorder List
Min distance between two given nodes of a Binary Tree
Serialize and deserialize a binary tree
Subtraction in Linked List
Distinct occurrences
LRU Cache
AVL Tree Insertion
Alien Dictionary
AVL Tree Deletion
Nodes at given distance in binary tree
String Permutations
Trapping Rain Water
Solve the Sudoku
Word Ladder I
Median of 2 Sorted Arrays of Different Sizes
Next Smallest Palindrome
Search Pattern
Number of distinct subsequences
Wildcard string matching
Sum-string
Edit Distance
Minimum sum partition
Palindromic Partitioning
Next Happy Number
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Brackets in Matrix Chain Multiplication
Phone directory
Find all Critical Connections in the Graph
Reverse a sublist of a linked list
Distribute Candies
Split Array Largest Sum
Find the String
Stock Buy and Sell – Max 2 Transactions Allowed
Largest rectangular sub-matrix whose sum is 0
Vertex Cover
Expression Add Operators
Candy
Better String
Fixing Two swapped nodes of a BST
Avoid Explosion
Partition the Array
Special Digits
Cake Distribution Problem
Min Time
Geekina Hate 1s
Making A Large Island
Search in a 2D Matrix
Arrays (Sum of array)
close
B
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri