Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Mantri
S
sachinupreti190
Current POTD Streak
STREAK
55
/1470
days
Longest streak/Global longest streak
Institution
Sant Longowal Institute of Engineering and Technology (SLIET) Sangrur
8 Rank
Institute Rank
Language Used
C++, Java, Python, C
Coding Score
2498
Problem Solved
902
Contest Rating
__
Apply for Campus Mantri
323 points
Contributor
323 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
July
August
SCHOOL (1)
BASIC (75)
EASY (408)
MEDIUM (372)
HARD (46)
Nearly Sorted Algorithm
Rotate a Linked List
Sort a linked list of 0s, 1s and 2s
Add Number Linked Lists
Detect Loop in linked list
Insert in Sorted Circular Linked List
Merge Sort
Quick Sort
Bottom View of Binary Tree
Delete without head pointer
Heap Sort
Merge two sorted linked lists
Tree Boundary Traversal
Absolute List Sorting
Two Stacks in an Array
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
Extreme nodes in alternate order
Kth smallest element in a Matrix
Additive sequence
Count Palindromic Subsequences
Multiply two strings
Minimum Swaps to Sort
Implement Atoi
Palindrome Linked List
Closest in BST
Pots of Gold Game
Count distinct elements in every window
k-Anagram
Merge k Sorted Arrays
Find triplets with zero sum
Sort a stack
Top View of Binary Tree
k-th Smallest in BST
Level order traversal
Peak element
Merge Sort for Linked List
Union of Two Linked Lists
Pair Sum in BST
Occurences of 2 as a digit
Counting elements in two arrays
Linked List that is Sorted Alternatingly
Foldable Binary Tree
Leftmost and rightmost nodes of binary tree
Arrange Consonants and Vowels
Count the nodes at distance K from leaf
Insert in Sorted way in a Sorted DLL
Predecessor and Successor
Children Sum in a Binary Tree
Deletion and Reverse in Circular Linked List
ZigZag Tree Traversal
C++ Generic sort
Swap Kth nodes from ends
Ceil in BST
Count set bits
Maximum AND Value
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
Count Inversions
Two Repeated Elements
Union of 2 Sorted Arrays
Indexes of Subarray Sum
Triplet Sum in Array
Merge Without Extra Space
Boolean Matrix
Spirally traversing a matrix
Search in a sorted Matrix
Rotate by 90 degree
Distance of nearest cell having 1
Unit Area of largest region of 1's
Subarray with 0 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
Stock span problem
Next Greater Element
K Sized Subarray Maximum
Nearly sorted
Fractional Knapsack
Minimum Platforms
Black and White
Combination Sum
Unique Subsets
Minimum Jumps
Ways to Reach the n'th Stair
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Sort according to an Array
Allocate Minimum Pages
Zero Sum Subarrays
Kth Smallest
Implement Trie
Shortest Common Supersequence
Nth Catalan Number
Most frequent word in an array of strings
Container With Most Water
Print Anagrams Together
Rotate by 90 degree
Top K Frequent in Array
Stock Buy and Sell – Multiple Transaction Allowed
Generate Parentheses
Word Search
4 Sum - All Quadruples
Sort 0s, 1s and 2s
Maximum Sub Array
Maximum Index
Number of subarrays with maximum values in given range
Sum of Subarrays
Equal Sum
Top k numbers in a stream
Maximize Number of 1's
Sum of Middle elements of two sorted arrays
Equivalent Sub-Arrays
Single Among Doubles in a Sorted
Count Occurences of Anagrams
Single Among Doubles
Happiest Triplet
Painting the Fence
Pair Sum Closest to 0
Search in Rotated Sorted Array
Smallest number with at least n trailing zeroes in factorial
Count pairs Sum in matrices
Sum of bit differences
Count Full Binary Trees
Maximize The Array
Form the Largest Number
Alternate Vowel and Consonant String
Add Binary Strings
Super Primes
Subarray Sum Divisible By K
Maximum Product Subarray
Longest subarray with sum divisible by K
Row with max 1s
Swapping pairs make sum equal
Check if frequencies can be equal
Form a palindrome
Maximum distinct elements after removing K elements
Longest Subarray with Sum K
Cutting Binary String
Sum of two large numbers
Reverse each word in a given string
Find the N-th character
Length of the longest substring
k largest elements
Longest Common Substring
Smallest distinct window
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
K-th element of two Arrays
Arranging the array
Triplets with Smaller Sum
Rod Cutting
Maximize the sum of selected numbers from a sorted array to make it empty
Smallest Absolute Difference
LCS of three strings
Longest Palindromic Subsequence
First negative in every window of size k
Minimum sum
Build the smallest
Minimize the Heights II
Transform to prime
First and Last Occurrences
Palindrome in Alphanumeric String
Smaller on Left
Maximum Product of Increasing Subsequence of Size 3
Nine Divisors
Valid Substring
Permutations of a String
CamelCase Pattern Matching
Subarrays Product Less than K
Unique Number II
Ways to sum to N
Largest prime factor
3 Divisors
Coin Change (Count Ways)
Sequence of Sequence
Santa Banta
Gold Mine Problem
Coin Change (Minimum Coins)
Power Of 2 and Subsequences
Kth Smallest Factor
Shreyansh and his bits
Power Set
Count ways to N'th Stair(Order does not matter)
Find distinct elements
nCr
Longest Bitonic subsequence
Min Coin
Count digit groupings of a number
Array Pair Sum Divisibility Problem
Magic Triplets
Matchsticks game
N trailing zeroes in factorials
Killing Spree
Unique partitions
Prime Pair with Target Sum
Count Numbers in Range
Yes XOR No
Nth Natural Number
Number of paths in a matrix with k coins
Choose and Swap
LCM Triplet
Return two prime numbers
Count Total Setbits
Find nth root of m
Find Prime numbers in a range
Power of Largest Prime
Game with String
Count even length
Find the Safe Position
Smith Number
Rotate a Matrix by 180 Counterclockwise
Next Permutation
Missing number in matrix
Rank The Permutations
Prime factorization and geek number
Smaller on Left
Filling Bucket
Longest Repeating Subsequence
Composite and Prime
Stream First Non-repeating
Count Divisors
Segregate even and odd nodes in a Linked List
Kth Largest in a Stream
Geek and Strings
Pairs of Non Coinciding Points
Satisfy the equation
7 Segment Display
Product of Primes
Two odd Occuring
Queries on Strings
Special Matrix
Biconnected Graph
Negative weight cycle
Base Equivalence
Height Using Parent Array
Reverse Spiral Form of Matrix
Save Your Life
Missing Point of a Parallelogram
Recursively Remove Adjacent Duplicates
Theft at World Bank
Spiral Matrix
Valid Pair Sum
Triplets in Sorted Linked List
Spidey Sense
Escape the Forbidden Forest
Iterative Inorder
Preorder traversal (Iterative)
Subset Sum Problem
Form a palindrome
Gray Code
Subarrays with sum K
Partition a Linked List around a given value
Searching an element in a sorted array (Ternary Search)
Coin Piles
Rearrange characters
Substrings of length k with k-1 distinct elements
Binary Searchable elements
Count pairs in array divisible by K
Prefix match with other strings
Find rectangle with corners as 1
Paths from root with a specified sum
Shortest Prime Path
Division without using multiplication, division and mod operator
Sort for Singly Linked List
Remove all occurences of duplicates in a linked list
Subsets
Rank The Permutations
Anti Diagonal Traversal of Matrix
IPL 2021 - Match Day 2
Unique Number III
All Unique Permutations of an array
Course Schedule
Minimum times A has to be repeated such that B is a substring of it
Bitwise AND of the Array
Overlapping Intervals
Remove and Reverse
Find k-th smallest element in given n ranges
Reverse a Stack
Farthest number
Maximum product subset of an array
Robots
K-th Largest Sum Contiguous Subarray
Hit most Balloons
Max Equal sum of 3 Stacks
Concatenate Equal to Target
Exactly one swap
Maximum Winning score
Compute Before Matrix
Smallest sum contiguous subarray
Stack Permutations
Graph is Tree or Not
Replace every element with the least greater element on its right
LCP
Next element with greater frequency
Minimum increment/decrement to make array non-Increasing
Check if all levels of two trees are anagrams or not
Number of Distinct Islands
Merging Details
Common String
Optimal Array
Aggressive Cows
Combination Sum II
Task Scheduler
Hands of Straights
Lemonade Change
Replace elements by its rank in the array
Floor in BST
Maximum Value
Make array elements unique
Next Greater Element in Circular Array
Carpet into Box
Minimum X (xor) A
Geeks And The String
Find the longest string
Minimum repeat to make substring
Prime List
Water the plants
Maximum Intersecting Lines
Count Special Numbers
Minimum Steps Required
Number of Pairs
Make Array Beautiful
Distribute Chocolates
Second smallest number
Distinct Difference
Character Exchange
Maximum Length
Remove the balls
Unequal Arrays
Bheem Wants Ladoos
Prefix Suffix String
Smaller Sum
Fest and Posters
Empty the String
Nearest smaller tower
Another Coin Change Problem
Geek's Village and Wells
Powerful Integer
Max Coins
Good Subtrees
Subtree In N-ary Tree
Easy Task
Add Minimum Characters
Maximum subset sum
Palindrome with minimum sum
Count Total Setbits
Construct a Full Binary Tree
Help Big Pig
Modify Linked List-1
Gathering Boulders
Find Kth permutation
Candy Shop II
Maximum Energy
Pairs violating the BST property
Winner of an election
Reverse squared sum
Geek and his Marks
Kth Frequency
K larger values
K larger values ||
Geek-onacci Number
Power of 3
Geek-onacci Number ||
Reverse a linked list
Frequency in 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
Inorder Traversal
Reverse a Doubly Linked List
Bubble Sort
Selection Sort
Insertion Sort
Check for BST
Right View of Binary Tree
Mirror Tree
Maximum Width of Tree
Height of Binary Tree
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
Intersection Sorted Linked Lists
Find Transition Point
Queue using two Stacks
Remove Duplicates from a Sorted Linked List
Level Order in spiral form
Reverse Level Order Traversal
Insert a node in a BST
BFS of graph
Identical Trees
Square Root
Lowest Common Ancestor in a BST
Binary Search
Run Length Encoding
Largest subarray of 0's and 1's
Remove Duplicates Sorted Array
Level Order Line by Line
Minimum Depth of a Binary Tree
Remove Duplicates from an array
Odd even level difference
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
Delete in a Singly Linked List
Kth largest element in BST
Array Duplicates
Max Level Sum in Binary Tree
Three way partitioning
Index of an Extra Element
Intersection of Two Linked Lists
Insert in a Sorted List
Level of a Node in Binary Tree
More than n/k Occurrences
Counting Sort
Reverse Using Stack
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
Find length of Loop
Queue Reversal
Reverse first K of a Queue
Magical Number
Nodes at Odd Levels
Move all zeros to the front of the linked list
Delete Mid of a Stack
Product of an Array
C++ Function overloading
The New Line
Data Types
Taking input
Learn to Comment
Learning to be precise
Bitwise Operators
For Loop- primeCheck
While loop- printTable
Learning Macros
Swap the array elements
Count the Specials
Consonants and Vowels check
Delete Array
Find the Frequency
Pair Sum in Vector
Frequency in Queue
Frequency Game
Duplicate Elements
First Set Bit
Rightmost different bit
Check K-th Bit
Longest Consecutive 1's
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
Print adjacency list
Transpose of Matrix
Check if a string is Isogram or not
Anagram
Winner of an election
String Rotated by 2 Places
Most Frequent Character
The Modified String
Reverse Words
Sum of numbers in string
Minimum indexed character
Panagram Checking
Non Repeating Character
Parenthesis Checker
K largest elements
Minimum Cost of ropes
Largest number with given sum
Reach a given score
Count ways to N'th Stair
Count number of hops
Pattern searching
First Repeating Element
Union of Arrays with Duplicates
Common Elements
Check Equal Arrays
Missing in Array
Product array puzzle
Search an element in sorted and rotated array
Intersection of Arrays with Distinct
Mean of range in array
Max Value Permutation
Missing And Repeating
Subarrays with given sum
Non-Repeating Element
Pairs of equals Sum
Find Kth Rotation
Find the closest number
Sort by Set Bit Count
k sorted array
Balance with respect to an array
Adding Ones
Common in 3 Sorted Arrays
Good Pairs
Number and the Digit Sum
Sorted and Rotated Minimum
Maximum no of 1's row
Sum of elements between k1'th and k2'th smallest elements
Next greater number set digits
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
Missing number
Move all negative elements to end
Chocolate Distribution Problem
Count the triplets
Find Pair Given Difference
Bitonic Point
Left most and right most index
Smallest subarray with sum greater than x
Partition Point in the Array
Alternate Positive Negative
Check if actual binary representation of a number is palindrome
Remaining String
Closing bracket index
Remove Consecutive Characters
Common Subsequence
Remove b and ac from a given string
Palindrome Sentence
Check if the number is balanced
Rearrange a string
Remove Duplicates
Reverse alternate words
Same characters in two strings
Convert the string
Twice Counter
Distinct Substrings
Word with maximum frequency
Second Largest
Convert array into Zig-Zag fashion
Two Sum - Pair with Given Sum
Second most repeated string in a sequence
Equal point in a string of brackets
Find all pairs with a given sum
Number of occurrence
K-Pangrams
Reversing the equation
Find the most frequent digit
Convert an array to reduced form
Check if array is sorted
Sum Pair closest to target
Find missing in second array
String's Count
Longest Common Prefix of Strings
First Repeated Character
Prime String
Numbers with prime frequencies greater than or equal to k
Special array reversal
Maximum difference Indexes
Counts Zeros Xor Pairs
Two sum -Pairs with 0 Sum
Segregate 0s and 1s
Hungry Pizza Lovers
At Least K Occurrences
Element with left side smaller and right side greater
Common Divisor
Maximum sum of increasing order elements from n arrays
Merging two unsorted arrays in sorted order
Count the Zeros
Length of longest subarray
Merge two binary Max heaps
Maximum sum of subarray less than or equal to x
Four Elements
Palindrome String
Maximum average subarray
Palindromic Series
Smallest greater elements in whole array
Fitting The Array
Pangram Strings
Pair with given sum in a sorted array
Pattern Searching
Divisible by 7
Shop in Candy Store
Minimum changes to make all substrings distinct
Tom and String
Lucas Number
Partition a number into two divisible parts
Is Binary Number Multiple of 3
Padovan Sequence
Extract the Number from the String
Minimum Operations
Divisibility by 8
Adding Array Elements
Number of 1 Bits
Find the Highest number
Check if a Integer is power of 8 or not
The Nth Fibonnaci
Compute sum of digits in all numbers from 1 to n
K Smallests in the Original Order
Reverse Bits
Max Sum Subarray of size K
Nth Fibonacci Number
Change Bits
Copy Set Bits in Range
Sum Of Digits
Prime Number
Powers game
Maximum Sum Problem
Count Odd Factors
Count numbers containing 4
Exponentiation (Set 2)
Find maximum number
The Bit Game
Swap bits
Reach the Nth point
Minimum number of Coins
Number Of Open Doors
Carol Numbers
Break a number
Find unit digit in a Product
Numbers with same first and last digit
Perfect Numbers
Nth item through sum
Palindrome numbers
Even Fibonacci Numbers Sum
Kth Prime Factor
Possible Pairs
Smallest number with sum of digits as N and divisible by 10^N
Fibonacci Expression
Maximize Toys
Raju and coins
Largest number possible
Largest sum of digits in all Divisors
Carry counter
Remainder of array multiplication
Squares in N*N Chessboard
Primorial of a number
Deficient Number
Trailing zeroes in factorial
Form a number divisible by 3 using array digits
Sum of all prime numbers between 1 and n
Least Prime Factor
Sum of First N Natural Numbers
Tom and Jerry
Summed Matrix
Maximum Diamonds
Arithmetic Number
Row with Minimum 1s
Geek and his Tricky Series
Count Primes In Range
Lexicographically Previous Permutation
Help Ishaan
Trace Path
Inorder Traversal and BST
Sequence Fun
Print Pattern
Primes sum
Crack the series
Chicks in a Zoo
Maximum Sum LCM
Earthquake and the Paint Shop
Count all possible paths from top left to bottom right
Ball coloring
Rearrange Geek and his Classmates
Modified Numbers and Queries
Print Diagonally
Sum of two numbers without using arithmetic operators
Search insert position of K in a sorted array
Largest value in each level
Maximum number of 2X2 squares
First and last occurrences of x
License Key Formatting
Count the Substrings
BitByBit
The Ultimate Duel
The Final Task
Smallest Subset with Greater Sum
Minimum Sum of Absolute Differences of Pairs
Minimum Coins To Pay
Smallest window containing 0, 1 and 2
Move Last Element to Front of a Linked List
Can Make Triangle
Matrix Operations
Find pairs with given sum in doubly linked list
Triangle and Square
Game Of Two
Array Game
Beautiful Number
Maximum Number
Complete the Staircase
Even subarray sum
Police Station
Smallest factorial number
Count the Substrings
Kth Mex
Bus Conductor
Yet another query problem
Minimum Number
Make sum even
Maximum Depth Of Binary Tree
Geek left with No Food
Find the String
Bots on social media
Array Operations
Split Employees
Minimize the sum
Last modified ball
Parent of Max GCD Siblings in a Binary Tree
Find the first node of loop in linked list
Type it!
Min operations
Is it Fibonacci
High Frequency
Balloon Everywhere
Reverse both parts
Make Array Elements Equal
Equal Left and Right Subarray Sum
Make the array beautiful
Remainder on dividing by 11
Geek's Excursion
Is it Fibonacci
Calculate The Work Done
Number of Subarrays of 0's
Maximum Identical Bowls
Bus Conductor
Guess the Number
Wifi Range
Minimum Number
Select Maximum number
String Mirror
Maximize Sum
Make Palindrome
Geekina loves order
Maximize The Number
Binary Modulo
Total Cuts
Bit Magic
Array Operations
Dominant Pairs
Total Traversal Time
Valuable String
Special Array
Count the Substrings
Wave Array
Antique Collections
How Many Meets
Binary Array
Ticket Counter
Happy Friends
Magic and toy shop
Unique Number of Occurrences
Balloon Everywhere
Organic Tree
Substrings with same value
Candy shop I
Find fun(x)
Maximum Battalions
Reorder List
Binary Tree to DLL
Min distance between two given nodes of a Binary Tree
Subtraction in Linked List
Merge Sort on Doubly Linked List
String Permutations
Trapping Rain Water
Median of 2 Sorted Arrays of Different Sizes
Merge Without Extra Space
Search Pattern
Count Smaller elements
Longest Prefix Suffix
Print kth character
Next Happy Number
Matrix Chain Multiplication
Median in a row-wise sorted Matrix
Boolean Parenthesization
Brackets in Matrix Chain Multiplication
Phone directory
Adventure in a Maze
Optimal binary search tree
Word Wrap
Maximum sum Rectangle
Find the Maximum Flow
Smallest Positive Integer that can not be represented as Sum
Corona Vaccine
Search Pattern (Z-algorithm)
Search Pattern (Rabin-Karp Algorithm)
Longest substring to form a Palindrome
Number of distinct words with K maximum contiguous vowels
Reverse a sublist of a linked list
Distribute candies in a binary tree
Split Array Largest Sum
Find number of closed islands
Shortest Path by Removing K walls
Min Chars to Add for Palindrome
Vertex Cover
Expression Add Operators
Partition the Array
Count Binary Strings With No Consecutive 1s
Minimum BST Sum Subtree
Special Digits
Cake Distribution Problem
Min Time
Game Of Subsets
Geekina Hate 1s
Rotate Array
Sort String
Weight of strings
Find Length of Linked List
Size of Binary Tree
Postorder Traversal
Count zeros in a sorted matrix
Preorder Traversal
Sum Except First and Last
Search a node in BST
Anagram of String
Is Linked List Length Even?
Identical Linked Lists
Insert in Middle of Linked List
longest substring containing '1'
Start Coding
The Size of
Count Odd and Even
Sort and Reverse Vector
Sum of diagonals
Number is sparse or not
Array Search
Sorted Array Search
Remove common characters and concatenate
Reverse a String
First n Fibonacci
C++ Hello World
Find second largest element
Searching in an Array
Count pair sum
Sort a String
Sort Array II
Change the string
Immediate Smaller Element
Count the characters
Uncommon characters
Fake Profile
String Reversal
Repeated Character
Merge two strings
String with numbers at its end
Largest Element in Array
Rotate Array by One
Game with nos
One odd Occuring
Array Subset
Rotating an Array
Min and Max in Array
Minimize string value
Remove character
Magical String[Duplicate Problem]
GCD of two numbers
Find unique element
Addition of Two Numbers
Find position of set bit
LCM And GCD
Strong Numbers
Find N-th term in the series
Factorial
Special Odd Series Sum
Difference series
Check if the door is open or closed
Sum of first n terms
Pattern Printing
Count Squares
Check if the number is Fibonacci
Middle of Three
Anshuman's Favourite Number
Make a Distinct Digit Array
Max Min
Alphanumeric String
Pattern 1
Pattern 11
Naughty Geek
Valid Strings
Search in a 2D Matrix
close
S
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 !