Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
911+ articles
DSA
20.4K+ posts
Recent Articles
Popular Articles
SPP - Range Querie
Last Updated: 15 December 2025
We are given queries array q[][], where each q[i] consists of two integers L and R (note that L may be greater than R). For every query, we need to determine how many numb...
read more
DSA
Minimum Operations to Reduce X to Zero
Last Updated: 15 December 2025
Given an array nums[] and an integer X. In one operation, you may remove either the first element (leftmost) or the last element (rightmost) of the current array, and subt...
read more
DSA
Maximum Length Duplicate Substring
Last Updated: 15 December 2025
Given a string s, we need to find the duplicate substring with the maximum possible length. A duplicate substring is any contiguous sequence of characters that appears at ...
read more
DSA
Two arrays
Last Updated: 15 December 2025
Given two arrays, A[] and B[] we can increase or decrease any element by 1 and each operation costs K.Our task is to ensure that the largest number in B is less than or eq...
read more
DSA
Maximum Points Covered
Last Updated: 13 December 2025
Given a 2D plane points[][] and a rectangle with fixed length x and breadth y. We need to find the maximum number of points that can fit inside or on the boundary of this ...
read more
DSA
K Empty Slots
Last Updated: 15 December 2025
Geek has placed n light bulbs on a wooden plank, and one bulb will be turned on each day. The array bulbs[] specifies the order in which the bulbs glow, where bulbs[i] = p...
read more
DSA
Geek and Hiring freeze
Last Updated: 13 December 2025
Due to recent layoffs and a hiring freeze in the tech industry, Geek is concerned about his placements and decides to strengthen his preparation over the next few days by ...
read more
DSA
Sum of Total Strength of Wizards
Last Updated: 13 December 2025
We are the ruler of a kingdom and command an army of wizards. We are given a 0-indexed integer array strength[], where strength[i] is the strength of the i-th wizard. For ...
read more
DSA
Geek's Candy
Last Updated: 13 December 2025
Geek has n different candy buckets, represented by an array bucket[], where bucket[i] denotes the number of candies in the i-th bucket (bucket[i] ≥ 1).One day, he wonders ...
read more
DSA
Shortest Range In BST
Last Updated: 13 December 2025
We are given a Binary Search Tree (BST), and our task is to determine the shortest possible range [x, y] such that every level of the BST contains at least one node whose ...
read more
DSA
Count Palindromic Concatenation Pairs
Last Updated: 12 December 2025
We are given a list S containing N lowercase words, and the task is to determine the number of ordered pairs (i, j) such that 1 ≤ i, j ≤ N, i ≠ j, and the concatenation of...
read more
DSA
Longest Common Starting Subarray Across Multiple Permutation Rows
Last Updated: 12 December 2025
We’re given an M * N matrix, and each row is a permutation of 1…N.Now, for every number j, we look at the position where j appears in each row, and from that position onwa...
read more
DSA
Remove Edge Queries on Tree
Last Updated: 12 December 2025
We are given a tree with N vertices and N–1 edges. We also receive Q queries, and each query provides two vertices u and v. For every query, we must remove the edge betwee...
read more
DSA
Best Pair Dance Competition
Last Updated: 12 December 2025
We are given two groups, each with N people, and our goal is to form pairs so that every person from the first group is matched with exactly one person from the second gro...
read more
DSA
Difference of Left Greater and Right Lesser Elements
Last Updated: 12 December 2025
Given an array arr[] of size n, the task is to build a result array where each element represents the absolute difference between the number of elements greater than it on...
read more
DSA
1
2
3
4
...
1359