Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
person_outline
Profile
description
Contributions
school
Colleges
business
Companies
people_outline
Campus Ambassadors
vidhayak_chacha
Current POTD Streak
STREAK
00
/1426
days
Longest streak/Global longest streak
Institution
Netaji Subhas Institute of Technology, Delhi (NSIT)
56 Rank
Institute Rank
Language Used
C++, C, Python, Java
Coding Score
2016
Problem Solved
705
Contest Rating
__
Apply for Campus Ambassador
667 points
Contributor
667 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
2018
2017
2016
January
February
March
April
May
June
SCHOOL (0)
BASIC (54)
EASY (247)
MEDIUM (356)
HARD (48)
Longest Even Length Substring
Sorting Elements of an Array by Frequency
7 Segment Display
Rearrange characters
Nearly Sorted Algorithm
Find the Maximum sum
Last two digits of Fibonacci
Geek and the lockers
Reverse alternate nodes in Link List
Add Number Linked Lists
Merge 2 sorted linked list in reverse order
Detect Loop in linked list
Count BST nodes that lie in a given range
Merge Sort
Quick Sort
Binary Tree from Inorder and Postorder
Bottom View of Binary Tree
Intersection in Y Shaped Lists
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
Directed Graph Cycle
Undirected Graph Cycle
LCA in Binary Tree
Maximum difference between node and its ancestor
Binary Heap Operations
The Celebrity Problem
Largest subarray with 0 sum
Topological sort
Vertical Tree Traversal
Merge K sorted linked lists
Find the number of islands
Get Min from Stack
Gas Station
Wildcard Pattern Matching
Generate IP Addresses
Check if subtree
Extreme nodes in alternate order
Kth element in Matrix
Is Binary Tree Heap
Clone a Binary Tree
Remove loop in Linked List
Dijkstra Algorithm
Minimum Spanning Tree
Largest BST
Interleaved Strings
Count Palindromic Subsequences
Multiply two strings
Maximum Difference
Palindrome Linked List
Strongly Connected
Rat in a Maze Problem - I
Bipartite Graph
Closest in BST
BST with Dead End
Pots of Gold Game
Delete keys in a Linked list
Count distinct elements in every window
Merge k Sorted Arrays
Root to leaf paths sum
Longest Palindrome in Linked List
Bridge edge in a graph
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
Polynomial Addition
Delete nodes greater than k
Merge Sort for Linked List
Maximum Bipartite Matching
Union of Two Linked Lists
Euler Circuit in an Undirected Graph
Euler circuit and Path
Ancestors in Binary Tree
Pair Sum in BST
Root to Leaf Paths
Counting elements in two arrays
Linked List that is Sorted Alternatingly
Foldable Binary Tree
Pairs violating BST property
Isomorphic Trees
Predecessor and Successor
Leaves to DLL
Children Sum in a Binary Tree
Diagonal sum in binary tree
Normal BST to Balanced BST
Construct Tree from Preorder Traversal
Check if two Nodes are Cousins
Convert Level Order Traversal to BST
Count Number of SubTrees having given Sum
Vertical Width of a Binary Tree
Path Count in Directed Graph
Mother Vertex
Tower Of Hanoi
Smallest Positive Missing
Power Of Numbers
Possible Words From Phone Digits
Rotate and delete
Rearrange Array Alternately
Rearrange an array with O(1) extra space
Maximum Index
Stock buy and sell
Kadane's Algorithm
Majority Element
Count Inversions
Unique BST's
Indexes of Subarray Sum
Count the number of possible triangles
Triplet Sum in Array
Boolean Matrix
Spirally traversing a matrix
Unit Area of largest region of 1's
Subarrays with equal 1s and 0s
Sort Elements by Decreasing Frequency
Longest Consecutive Subsequence
Case-specific Sorting of Strings
Postfix Evaluation
Stock span problem
Next Greater Element
Infix to Postfix
K Sized Subarray Maximum
Kth smallest element
Job Sequencing Problem
Minimum Platforms
Largest number in K swaps
Black and White
Combination Sum
Unique Subsets
M-Coloring Problem
Stickler Thief
Ways to Reach the n'th Stair
Egg Dropping Puzzle
Optimal Strategy For A Game
Minimum number of jumps
Sum of all substrings of a number
Longest Increasing Subsequence
Longest Common Subsequence
0 - 1 Knapsack Problem
Number of Unique Paths
Equal Sum Partition
Sort according to an Array
Preorder to BST
X Total Shapes
Zero Sum Subarrays
Find whether path exist
Shortest Common Supersequence
Nth Catalan Number
Rotten Oranges
Steps by Knight
Most frequent word in an array of strings
Count subsequences of type a^i, b^j, c^k
Maximize The Cut Segments
Container With Most Water
Overlapping Intervals
Word Break
Sort 0s, 1s and 2s
Paths to reach origin
Taking 1 out of 3 consecutives
Complement
Maximum Sub Array
Maximum Index
Number of subarrays with maximum values in given range
Flip Bits
Equal Sum
Top k numbers in a stream
Count Increasing Subsequences
Sum of Middle elements of two sorted arrays
Single Among Doubles in a Sorted
Consecutive 1's not allowed
Count of Subarrays
Single Among Doubles
Pair Sum Closest to 0
Search in Rotated Sorted Array
Smallest factorial number
Sum of bit differences
Maximum Intervals Overlap
Minimums in Array
Maximize The Array
Max absolute difference
Max Score from Subarray Mins
Form the Largest Number
Marks of PCM
Alternate Vowel and Consonant String
Add Binary Strings
Super Primes
Longest subarray with sum divisible by K
Check if a string is repetition of its substring of k-length
Sort the given array after applying the given equation
Row with max 1s
Swapping pairs make sum equal
Column name from a given column number
Concatenation of Zig-Zag String in n Rows
Design a tiny URL or URL shortener
Palindrome SubStrings
Form a palindrome
Nuts and Bolts Problem
Rotate a Matrix
Longest Subarray with Sum K
Transform String
Count the Reversals
count special palindromic
Cutting Binary String
Factorials of large numbers
Find the N-th character
Length of the longest substring
Maximum Sum Path in Two Arrays
k largest elements
Sum of XOR of all pairs
Magnet Array Problem
Longest Common Substring
Smallest distinct window
Longest common substring value of two numbers
Longest substring with distinct characters
Longest Substring with K Uniques
Longest Palindrome in a String
Minimum steps to get desired array
Cut rope to maximise product
Tic Tac Toe
Integer to Words
String formation from substring
Possible groups
Longest Arithmetic Subsequence
Rod Cutting
Greater tower sum
Number of pairs
Fill array with 1's
Minimum swaps and K together
Longest Palindromic Subsequence
Longest substring with equal number of 0s and 1s
Largest Sum Subarray of Size at least K
First negative in every window of size k
Smallest Non-Zero Number
Roll the characters of a String
Minimize the Heights II
Large Factorials
Next higher number in one swap
Next higher palindromic number using the same set of digits
Minimum Deletions
A difference of values and indexes
Print N-bit binary numbers having more 1s than 0s
Valid Substring
Find patterns
Minimum number of deletions
Permutations of a String
Number following a pattern
Subsequence matching
Previous number in one swap
Find largest word in dictionary
Rotate String
Combination Sum - Part 2
Subarrays Product Less than K
Unique Number II
Bleak Numbers
Max possible amount
Maximum calorie
Modular Exponentiation for large numbers
Game of XOR
Largest prime factor
Max Sum Increasing Subsequence
Minimum cost to fill given weight in a bag
Distinct Transformations
Coin Change (Count Ways)
Sequence of Sequence
Count numbers with given sum
String Subsequence
Gold Mine Problem
Coin Change (Minimum Coins)
Palindromic Strings
Perfect Sum Problem
Fibonacci Sum
Trail of ones
Kth Smallest Factor
Longest subsequence-1
Count ways to N'th Stair(Order does not matter)
Minimum Cost To Make Two Strings Identical
Knapsack with Duplicate Items
nCr
Number of ways
Count of sum of consecutives
Subsets with XOR value
Maximum path sum in matrix
Special Keyboard
Longest Bitonic subsequence
Min Coin
Get Minimum Squares
Count possible ways to construct buildings
Count distinct pairs with difference k
Jumbled Strings
Dimensions of Rectangle
Probability of Knight
Array Pair Sum Divisibility Problem
Magic Triplets
Matchsticks game
Unique partitions
N Digit numbers with digits in increasing order
Fill the Tank
Last non-zero digit in factorial
Number of paths
Knight Walk
Permutation with Spaces
Number of paths in a matrix with k coins
Return two prime numbers
Sum of Query II
Prime Factors and their Powers
Jumping Numbers
Two water Jug problem
Fraction to Repeating Decimal
Numbers with alternative 1's
Find the Safe Position
Next Permutation
Smaller on Left
Divisibility
Exit Point in a Matrix
Longest Repeating Subsequence
Longest alternating subsequence
Finding Profession
Decode the string
Is Sudoku Valid
Preorder Traversal and BST
Total Decoding Messages
Stream First Non-repeating
Check If two Line segments Intersect
Villain Con
Possible paths
Print leaf nodes from preorder traversal of BST
Largest square formed in a matrix
Water Overflow
Kth Largest in a Stream
Snake and Ladder Problem
Satisfy the equation
Eulerian Path in an Undirected Graph
Transitive closure of a Graph
Replace O's with X's
Cost of Sweets
Express as sum of power of natural numbers
Find the string in grid
Shortest Uncommon Subsequence
Number of Palindromic paths in a Matrix
Biconnected Graph
Count the paths
Floyd Warshall
Negative weight cycle
Flood fill Algorithm
Form coils in a matrix
Largest subsquare surrounded by X
Shortest Source to Destination Path
Maximum sum Rectangle
Hamiltonian Path
Recursively Remove Adjacent Duplicates
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
Distinct occurrences
Box Stacking
Maximum subset XOR
Alien Dictionary
Smallest range in K lists
Fixing Two nodes of a BST
Max Path Sum 2 Special Nodes
Trapping Rain Water
Smallest window containing all characters of another string
Histogram Max Rectangular Area
Find median in a stream
Solve the Sudoku
Strongly connected component (Tarjans's Algo)
Minimum Cost Path
Merge Without Extra Space
The Painter's Partition Problem-II
Distinct palindromic substrings
Ugly Numbers
Search Pattern (KMP-Algorithm)
Longest Prefix Suffix
Circle of strings
Longest repeating and non-overlapping substring
Sum-string
Maximum XOR subset
Edit Distance
Min cut Square
Stock Buy and Sell – Max K Transactions Allowed
Matrix Chain Multiplication
Bit Difference
Boolean Parenthesization
Longest valid Parentheses
Longest Zig-Zag Sub Sequence
N-Queen Problem
Brackets in Matrix Chain Multiplication
Geek collects the balls
Convex Hull
Closest Palindrome
Travelling Salesman Problem
Word Wrap
Huffman Encoding
Water Connection Problem
Find the Maximum Flow
Minimum operations to convert array A to B
Replace by X
String Ignorance
Winner of an election
SP - Beautiful Pairs
Geeks and the test
Geek and the base
Reverse a linked list
Delete N nodes after M nodes of a linked list
Delete nodes having greater value on right
Split a Linked List into two halves
Inorder Traversal
Bubble Sort
Selection Sort
Insertion Sort
Check for BST
Right View of Binary Tree
K distance from root
Mirror Tree
Two Mirror Trees
Maximum Width of Tree
Delete without head pointer
Height of Binary Tree
Balanced Tree Check
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
Stack using two queues
Level Order in spiral form
Reverse Level Order Traversal
DFS of Graph
Stack using Linked List
BFS of graph
Identical Trees
Root to leaf path sum
Square Root
Nodes without a Sibling
Postorder from Inorder and Preorder
Lowest Common Ancestor in a BST
Binary Search
Largest subarray of 0's and 1's
BST Keys in a Range
Print all possible strings
Minimum Depth of a Binary Tree
Odd even level difference
Binary Tree to BST
K-Palindrome
Remove every k'th node
Leaves at Same Level or Not
Match specific pattern
Josephus problem
You and your books
Expression Tree
Generate Grey Code Sequences
Kth largest element in BST
Array Duplicates
Max Level Sum in Binary Tree
Three way partitioning
Longest consecutive sequence in Binary tree
Level order traversal
Inorder Successor in BST
Index of an Extra Element
Intersection of Two Linked Lists
Level of a Node in Binary Tree
Sum of leaf nodes in BST
Reverse Using Stack
Symmetric Tree
Construct BST from Postorder
Next Right Node
Count Pairs whose sum is equal to X
Find length of Loop
Queue Reversal
Reverse first K of a Queue
Sum of Leaf Nodes
Sum of Right Leaf Nodes
Sum of Left Leaf Nodes
Closest Neighbour in BST
Exchange the Leaf Nodes
Sum of Leaf Nodes at Min Level
Tilt of Binary Tree
Delete Mid of a Stack
Rotate doubly Linked List
Xoring and Clearing
Even Subsets
Predict the Column - Java
First Set Bit
Power of 2
Swap all odd and even bits
Wave Array
Frequencies in a Limited Array
Array Leaders
Floor in a Sorted Array
Roof Top
Print adjacency list
Transpose of Matrix
Rotate by 90 degree
Anagram
Winner of an election
Strings Rotations of Each Other
The Modified String
Reverse Words
Minimum indexed character
Non Repeating Character
Parenthesis Checker
Minimum indexed character
Generate Binary Numbers
Minimum Cost of ropes
Count ways to N'th Stair
Count number of hops
Reach a given score
Check Equal Arrays
Missing in Array
Product array puzzle
Roman Number to Integer
Missing And Repeating
Pairs of equals Sum
Find Kth Rotation
Maximum AND Value
Pairs with certain difference
Common in 3 Sorted Arrays
Number and the Digit Sum
Sorted and Rotated Minimum
Maximum no of 1's row
Next greater number set digits
Search in a Row-Column sorted matrix
String Duplicates Removal
Min Subsets with Consecutive Numbers
Chocolate Distribution Problem
Count pairs Sum in matrices
Count the triplets
Find Pair Given Difference
Maximum Sum Bitonic Subsequence
Next Greater Even Number
Bitonic Point
1[0]1 Pattern Count
Largest Even Number
Common Subsequence
Remove b and ac from a given string
Palindrome Sentence
Sort in specific order
Rearrange a string
Ordering of strings
Nearest multiple of 10
Toppers Of Class
Facing the sun
Count Substrings
Bitonic Generator Sort
Two Sum - Pair with Given Sum
Second most repeated string in a sequence
Check if array contains contiguous integers
Rearrange to Make arr[i] = i
Find all pairs with a given sum
Divisible by 8
Rope Cutting
The Non-repetitive String
Modify the Array
Convert an array to reduced form
Find missing in second array
String's Count
Longest Common Prefix of Strings
Largest Fibonacci Subsequence
Min Manipulations to make Strings Anagram
Min Number of Flips
Counts Zeros Xor Pairs
Segregate 0s and 1s
Play With OR
Element with left side smaller and right side greater
Maximum sum of increasing order elements from n arrays
Count the Zeros
Distinct absolute array elements
Four Elements
The Optimal Selection
Sorting all array elements except one
Delete Array Elements
Smallest greater elements in whole array
Fitting The Array
K-th missing element
Pattern Searching
Print Bracket Number
Easy string
Minimum changes to make all substrings distinct
Minimal moves to form a string
Lucas Number
Generate binary string
Partition a number into two divisible parts
Is Binary Number Multiple of 3
Extract the Number from the String
Swap bits in byte
Number of 1 Bits
Maximize XOR
Pairs with Positive Negative values
Set Bits
Reverse Bits
Nth Fibonacci Number
Copy Set Bits in Range
Maximum 0s between two immediate 1s
Element that appears once where every element occurs twice
Maximum Number of 1s
Maximum Sum Problem
Shortest path from 1 to n
Compute (a*b)%c
Find sum of divisors
Sieve of Eratosthenes
Magic Number
Count numbers containing 4
Reach the Nth point
Minimum number of Coins
Number Of Open Doors
Number of Groups
Perfect Numbers
Palindrome numbers
Maximum height of the staircase
Next in Series
Adjacents are not allowed
Page Faults in LRU
Maximum Volume of a Rectangular Box
Recamans sequence
Number that are not divisible
Rectangles in N*N Board
Squares in N*N Chessboard
Trailing zeroes in factorial
Number of ways to find two numbers
Total number of Strings
Least Prime Factor
Number of 1's in smallest repunits
Save Knights
Smallest number by rearranging digits of a given number
Find nth root of m
Recursive sequence
Connell Sequence
Tom and Jerry
Increasing Sub Sequence
Sum of average of all subsets
Maximum Diamonds
Rotate a Matrix by 180 Counterclockwise
Row with Minimum 1s
Primitive Typing
Largest zigzag sequence
Overlapping rectangles
Print Pattern
Sum of dependencies in a graph
Count all possible paths from top left to bottom right
Shortest distance in infinite tree
Geek and the equation
Size of Binary Tree
Count Leaves in Binary Tree
Postorder Traversal
Implement stack using array
Queue using Linked List
Queue Using Array
Replace all 0's with 5
Count zeros in a sorted matrix
Preorder Traversal
Sum Except First and Last
C++ STL | Set 5 (queue)
Palindromic Array
Peak element
Minimum element in BST
Sum of Binary Tree
Count Non-Leaf Nodes in Tree
Bit Difference
Binary Array Sorting
Check if a string is Isogram or not
First n Fibonacci
Remove repeated digits in a given number
Replace the Bit
Last index of One
Exceptionally odd
Array Subset
Extract Maximum
Betting game
GCD of Array
GCD of two numbers
Check set bits
Binary representation
Check for Power
Find position of set bit
Change all even bits in a number to 0
Find the fine
Check if a number can be expressed as x^y
LCM And GCD
House Robber
Check perfect square
Prime Number
Angle between hour and minute hand
Tidy Number
Count Squares
Check if the number is Fibonacci
Sum of Digits Divisibility
Print the Kth Digit
Find number of days between two given dates
Half N by M
Pairs of prime number
Pattern Jumping
Finding Position
Check if given four points form a square
Sorted 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 !