Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
amarsingh07
Current POTD Streak
STREAK
140
/1426
days
Longest streak/Global longest streak
Institution
Indian Institute of Technology Varanasi (IIT BHU)
51 Rank
Institute Rank
Language Used
C++, Java
Coding Score
2223
Problem Solved
646
Contest Rating
__
Apply for Campus Ambassador
142 points
Contributor
142 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
January
February
March
April
May
June
SCHOOL (2)
BASIC (39)
EASY (197)
MEDIUM (342)
HARD (66)
Sorting Elements of an Array by Frequency
Finding the Coolest
Sort a linked list of 0s, 1s and 2s
Quick Sort
Bottom View of Binary Tree
Heap Sort
Diagonal Tree Traversal
Delete a node from BST
Directed Graph Cycle
Undirected Graph Cycle
Absolute List Sorting
Two Stacks in an Array
Largest subarray with 0 sum
Topological sort
Find the number of islands
Find kth element of spiral matrix
Generate IP Addresses
Kth element in Matrix
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Interleaved Strings
Count Palindromic Subsequences
Multiply two strings
Implement Atoi
Palindrome Linked List
Rat in a Maze Problem - I
Bipartite Graph
Closest in BST
Find triplets with zero sum
Sort a stack
Top View of Binary Tree
k-th Smallest in BST
Union of Two Linked Lists
Populate Inorder Successor for all nodes
Counting elements in two arrays
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Isomorphic Trees
Predecessor and Successor
Largest Independent Set Problem
Kth Ancestor in a Tree
Count Number of SubTrees having given Sum
Mother Vertex
Count total set bits
Smallest Positive Missing
Power Of Numbers
Possible Words From Phone Digits
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Merge Without Extra Space
Make Matrix Beautiful
Distance of nearest cell having 1
Longest Consecutive Subsequence
Case-specific Sorting of Strings
K Sized Subarray Maximum
Activity Selection
Job Sequencing Problem
Largest number in K swaps
Black and White
Combination Sum
M-Coloring Problem
Minimum Jumps
Stickler Thief
Egg Dropping Puzzle
Optimal Strategy For A Game
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Allocate Minimum Pages
Zero Sum Subarrays
Kth Smallest
Implement Trie
Nth Catalan Number
Rotten Oranges
Steps by Knight
Maximize The Cut Segments
Container With Most Water
Word Break
Stock Buy and Sell – Multiple Transaction Allowed
Generate Parentheses
Word Search
Prerequisite Tasks
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Complement
Maximum Sub Array
Pascal Triangle
Maximum Index
Flip Bits
Maximize Number of 1's
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count of Subarrays
Single Among Doubles
Painting the Fence
Count Full Binary Trees
Max Score from Subarray Mins
Form the Largest Number
Alternate Vowel and Consonant String
Add Binary Strings
Maximum Product Subarray
Row with max 1s
Nuts and Bolts Problem
Longest Subarray with Sum K
Count the Reversals
Cutting Binary String
k largest elements
Longest Common Substring
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
Rod Cutting
Minimum swaps and K together
Maximize the sum of selected numbers from a sorted array to make it empty
LCS of three strings
Longest Palindromic Subsequence
Largest Sum Subarray of Size at least K
Maximum difference of zeros and ones in binary string
Minimum sum
Build the smallest
First and Last Occurrences
A difference of values and indexes
Find patterns
Permutations of a String
Friends Pairing Problem
CamelCase Pattern Matching
Lexicographically smallest string
Subarrays Product Less than K
Unique Number II
Largest prime factor
3 Divisors
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Coin Change (Count Ways)
Santa Banta
Sieve of Eratosthenes
Gold Mine Problem
Perfect Sum Problem
Power Of 2 and Subsequences
Shreyansh and his bits
Longest subsequence-1
Power Set
Knapsack with Duplicate Items
nCr
Subsets with XOR value
Geek and its Game of Coins
Maximum path sum in matrix
Minimum steps to destination
Partition Equal Subset Sum
Longest Bitonic subsequence
Array Pair Sum Divisibility Problem
Magic Triplets
Fill up buckets
Matchsticks game
Subset Sums
Unique partitions
Akku and Binary Numbers
Number of paths
Stepping Numbers
LCM Triplet
Jumping Numbers
A Game of LCM
Count even length
Grouping Of Numbers
Find the Safe Position
Next Permutation
Missing number in matrix
Smaller on Left
Filling Bucket
Longest Repeating Subsequence
Longest alternating subsequence
Composite and Prime
Decode the string
Is Sudoku Valid
Total Decoding Messages
Stream First Non-repeating
Maximum Sub-String after at most K changes
2D Hopscotch
Possible paths
Print leaf nodes from preorder traversal of BST
Largest square formed in a matrix
Longest Perfect Piece
Geek and Strings
The Smurfs
Satisfy the equation
Replace O's with X's
Two numbers with odd occurrences
Find all distinct subset (or subsequence) sums
Queries on a Matrix
Express as sum of power of natural numbers
Find the string in grid
Floyd Warshall
Shortest Source to Destination Path
Base Equivalence
Maximum sum Rectangle
Reverse Spiral Form of Matrix
Geek and Number String
Save Your Life
Hamiltonian Path
Spiral Matrix
Valentine Sum
Lucy's Neighbours
All Palindromic Partitions
3 Sum Closest
Capacity To Ship Packages Within D Days
Substrings of length k with k-1 distinct elements
Number of Provinces
Prefix match with other strings
Single valued subtree
BST to max heap
Division without using multiplication, division and mod operator
Flatten binary tree to linked list
IPL 2021 - Match Day 2
Course Schedule
Overlapping Intervals
Remove and Reverse
Longest Possible Route in a Matrix with Hurdles
Find k-th smallest element in given n ranges
Even Swap
Reverse a Stack
Enemy
Max Equal sum of 3 Stacks
Smallest sum contiguous subarray
Array Removals
Minimum Cost to cut a board into squares
Stack Permutations
Largest subtree sum in a tree
Assembly Line Scheduling
Wine Buying and Selling
Replace every element with the least greater element on its right
Minimum Swaps
Construct Binary Tree from String with bracket representation
Check if all levels of two trees are anagrams or not
Number of Distinct Islands
Shortest Distance in a Binary Maze
Minimum Multiplications to reach End
Alex Travelling
Number Of Islands
Merging Details
Geekland Colosseum
Number of Ways to Arrive at Destination
Pattern
Shortest path in Directed Acyclic Graph
Majority Element II
Sum of Beauty of All Substrings
Koko Eating Bananas
Search in Rotated Array 2
Asteroid Collision
Combination Sum III
Aggressive Cows
Smallest Divisor
Subset II
Combination Sum II
Minimum days to make M bouquets
Task Scheduler
Hands of Straights
Lemonade Change
GCD Array
Minimize number of Students to be removed
Maximum Value
Shortest Prime Path
Flattening a Linked List
Absolute difference divisible by K
Make array elements unique
Next Greater Element in Circular Array
Carpet into Box
Minimum X (xor) A
Find minimum number of Laptops required
Geeks And The String
Find the longest string
Maximum Profit By Choosing A Subset Of Intervals
Minimum repeat to make substring
Paint N House
Max Sum without Adjacents
Intersection Point in Y Shaped Linked Lists
BST Downward Traversal
Length of the longest subarray with positive product
Count number of free cell
Maximum Bipartite Matching
Minimum Days
Prime List
Walls Coloring
Geeks Island
Apple Sequences
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
Count Cyclic Paths
Maximum Triplet product
Second smallest number
Special Palindrome Substrings
Maximum Possible Value
Distinct Difference
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
Geek-onacci Number
Class Test
Nearest Zero
Reverse a linked list
Delete nodes having greater value on right
Remove duplicates from an unsorted linked list
Reverse a Doubly Linked List
Check for BST
Right View of Binary Tree
Mirror Tree
Height of Binary Tree
Kth from End of Linked List
Left View of Binary Tree
Intersection Sorted Linked Lists
Remove Duplicates from a Sorted Linked List
Level Order in spiral form
DFS of Graph
BFS of graph
Square Root
Lowest Common Ancestor in a BST
Binary Search
Remove Duplicates Sorted Array
Binary Tree to BST
Unique rows in boolean matrix
Delete in a Singly Linked List
Kth largest element in BST
Inorder Successor in BST
Next Right Node
Median of BST
Leaf under budget
Queue Reversal
Delete Mid of a Stack
Frequency in Queue
Frequency Game
Longest Consecutive 1's
Power of 2
Swap all odd and even bits
Wave Array
Frequencies in a Limited Array
Array Leaders
Floor in a Sorted Array
Print adjacency list
Transpose of Matrix
Rotate by 90 degree
Anagram
Strings Rotations of Each Other
Isomorphic Strings
Reverse Words
Non Repeating Character
Parenthesis Checker
Minimum Cost of ropes
Reach a given score
Check Equal Arrays
Product array puzzle
Roman Number to Integer
Max Value Permutation
Missing And Repeating
Find Kth Rotation
Adding Ones
Pairs with certain difference
Sorted and Rotated Minimum
Search in a Row-Column sorted matrix
Move All Zeroes to End
Missing number
Chocolate Distribution Problem
Find Pair Given Difference
Alternate Positive Negative
Second Largest
Find all pairs with a given sum
Number of occurrence
Reversing the equation
Does array represent Heap
Longest common prefix
Convert an array to reduced form
Check if array is sorted
Longest Common Prefix of Strings
First Repeated Character
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
At Least K Occurrences
Count the Zeros
Four Elements
Palindrome String
Fitting The Array
K-th missing element
Balanced string
Is Binary Number Multiple of 3
Number of 1 Bits
Armstrong Numbers
Reverse Bits
Nth Fibonacci Number
Ceil The Floor
Copy Set Bits in Range
Count Digits
Sum 1 to n Divisors
The Bit Game
Minimum number of Coins
Number Of Open Doors
Break a number
Smallest number with sum of digits as N and divisible by 10^N
Factorials Less than or Equal to n
Good Numbers
Form a number divisible by 3 using array digits
Least Prime Factor
Sum of First N Natural Numbers
BBT counter
Find nth root of m
Prime Factors
Circular Prime Number
Tom and Jerry
Maximum Diamonds
Arithmetic Number
Row with Minimum 1s
Surround the 1's
Help Ishaan
Trace Path
Sequence Fun
Primes sum
Print the pattern
Chicks in a Zoo
Maximum Sum LCM
Check if it is possible to convert one string into another with given constraints
Minimum Exchange
Earthquake and the Paint Shop
Array to BST
Count all possible paths from top left to bottom right
Ball coloring
Modified Numbers and Queries
Sum of k smallest elements in BST
Print Diagonally
Search insert position of K in a sorted array
Maximum number of 2X2 squares
License Key Formatting
Count the Substrings
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Move Last Element to Front of a Linked List
Find pairs with given sum in doubly linked list
Subsequence Mex
Again Permutation
Police Station
Pattern 2
Pattern 3
Pattern 4
Pattern 14
Pattern 15
Pattern 16
Pattern 17
Pattern 18
Pattern 20
Pattern 21
Print N to 1 without loop
Print GFG n times
Pattern 12
Pattern 22
Outermost Parentheses
Maximum Depth Of Binary Tree
Graph and Vertices
Minimize the sum
Last modified ball
Transform to Sum Tree
Parent of Max GCD Siblings in a Binary Tree
Find the first node of loop in linked list
Maximum Weight Node
Type it!
Min operations
Last cell in a Matrix
Balloon Everywhere
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
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
Linked List Group Reverse
Reorder List
Binary Tree to DLL
Partition array to k subsets
Alien Dictionary
AVL Tree Deletion
String Permutations
Trapping Rain Water
Max of min for every window size
Solve the Sudoku
Median of 2 Sorted Arrays of Different Sizes
Next Smallest Palindrome
Edit Distance
Minimum sum partition
Number Formation
Palindromic Partitioning
Next Happy Number
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Word Break - 2
N-Queen Problem
Phone directory
Word Wrap
Shortest Range In BST
Maximum XOR subarray
Count occurrences of a given word in a 2-d array
Word Ladder II
Shortest Unique prefix for every word
Split Array Largest Sum
Find number of closed islands
Scrambled String
Shortest Path by Removing K walls
Count the number of subarrays
Maximum Number of Toys
Articulation Point - I
Stock Buy and Sell – Max 2 Transactions Allowed
Min Chars to Add for Palindrome
Largest rectangular sub-matrix whose sum is 0
Minimum time to fulfil all orders
Expression Add Operators
MaxSkill
Minimize Max Distance to Gas Station
Count Reverse Pairs
Better String
Count Lucky Permutations
Count the Substring
Select Nodes
Largest Sum Cycle
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
Sort String
Count Linked List Nodes
C++ STL | Set 1 (vector)
Sum Except First and Last
Peak element
Linked List Insertion At End
Sort and Reverse Vector
Bit Difference
Print 1 To N Without Loop
Reverse array in groups
Sorted Array Search
Reverse a String
First n Fibonacci
Check if divisible by 11
Remove all characters other than alphabets
Value equal to index value
Immediate Smaller Element
Quick Left Rotation
Largest Element in Array
Game with nos
Array Subset
Rotating an Array
Min and Max in Array
Find position of set bit
LCM And GCD
House Robber
Prime Number
Sum of first n terms
Matching Pair
Repetitive Addition Of Digits
Sum of product of x and y with floor(n/x) = y
Max Min
Pattern 1
Pattern 5
Pattern 6
Pattern 8
Pattern 10
Pattern 11
Pattern 13
Reverse an Array
Search in a 2D Matrix
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 !