## Longest subarray whose elements can be made equal by maximum K increments

Given an array arr[] of positive integers of size N and a positive integer K, the task is to find the maximum possible length of… Read More »

- Minimize the maximum difference between adjacent elements in an array
- Real-time application of Data Structures
- Priority queue of pairs in C++ with ordering by first and second element
- Priority Queue of Vectors in C++ STL with Examples
- Find the K closest points to origin using Priority Queue
- Queue of Pairs in C++ STL with Examples
- Design a Queue data structure to get minimum or maximum in O(1) time
- Important functions of STL Components in C++
- Implementing Water Supply Problem using Breadth First Search
- What is a Webcrawler and where is it used?
- Boundary Level order traversal of a Binary Tree
- Diamond Tree
- Minimum circular rotations to obtain a given numeric string by avoiding a set of given strings
- Longest subarray whose elements can be made equal by maximum K increments
- Length of Smallest Subsequence such that sum of elements is greater than equal to K
- Static and Dynamic data structures in Java with Examples
- Sum and product of K smallest and largest Fibonacci numbers in the array
- CPU Scheduling in Operating Systems using priority queue with gantt chart
- Print all Exponential Levels of a Binary Tree
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Minimum difference between maximum and minimum value of Array with given Operations
- Minimum possible modifications in the matrix to reach destination
- Append the elements of queue in mirror-inverse order
- Maximum absolute difference between any two level sum in a Binary Tree
- Clockwise Triangular traversal of a Binary Tree
- Array value by repeatedly replacing max 2 elements with their absolute difference
- Find integral points with minimum distance from given set of integers using BFS
- Minimum Cost using Dijkstra by reducing cost of an Edge
- Different Types of Queues and its Applications
- Nth positive number whose absolute difference of adjacent digits is at most 1

Given an array arr[] of positive integers of size N and a positive integer K, the task is to find the maximum possible length of… Read More »

Given a Binary Tree having positive and negative nodes, the task is to find the maximum absolute difference of level sum in it. Examples: Input:… Read More »

A data structure is a particular way of organizing data in a computer so that it can be used effectively. In this article, the real-time… Read More »

Given a tree with N nodes numbered from 1 to N and an permutation array of numbers from 1 to N. Check if it is… Read More »

Given an array of integers arr[], the task is to find the remaining element in the array after performing the following operations: In each turn,… Read More »

Given a list of n points on 2D plane, the task is to find the K (k < n) closest points to the origin O(0,… Read More »

Given a binary matrix mat[][] consisting of 1s and 0s of dimension M * N, the task is to find the number of operations to… Read More »

Given a numeric string target of length N and a set of numeric strings blocked, each of length N, the task is to find the… Read More »

Priority Queue: Priority queue is the extension of the queue in which elements associated with priority and elements having higher priority is popped first. Priority… Read More »

Given an array arr size N, the task is to print the final array value remaining in the array when the maximum and second maximum… Read More »

Given a tree, our task is to check whether its left view is sorted or not. If it is then return true else false. Examples:… Read More »

A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO).… Read More »

Given a complete binary tree with N levels numbered [0, (N – 1 )] from root to the lowest level in decreasing order and having… Read More »

Web Crawler is a bot that downloads the content from the internet and indexes it. The main purpose of this bot is to learn about… Read More »

Given a queue Q containing N strings, the task is to restructure the queue to double its size such that the second half represents the… Read More »