## Largest subset having with sum less than equal to sum of respective indices

Given an array arr[], the task is to find the length of the largest subset with the sum of elements less than or equal to… Read More »

- Minimize the maximum difference between adjacent elements in an array
- Maximum sum path in a Matrix
- Stack of Pair in C++ STL with Examples
- Set of Vectors in C++ STL with Examples
- Queue of Pairs in C++ STL with Examples
- Find the K closest points to origin using Priority Queue
- Count of subarrays which start and end with the same element
- Convert Adjacency Matrix to Adjacency List representation of Graph
- Real-time application of Data Structures
- Find the string formed by joining k consecutive nodes of linked list
- Program to reverse words in a given string in C++
- Kth most frequent Character in a given String
- Implementing upper_bound() and lower_bound() for Ordered Set in C++
- Longest Mountain Subarray
- What is a Webcrawler and where is it used?
- Count the number of ways to construct the target string
- Reverse an array in groups of given size | Set 3 (Single traversal)
- Count triplets such that sum of any two number is equal to third | Set 2
- Why Prim’s and Kruskal's MST algorithm fails for Directed Graph?
- CamelCase Pattern Matching
- Program to find frequency of each element in a vector using map in C++
- Count ways to partition a string such that both parts have equal distinct characters
- Find if there is a path between two vertices in an undirected graph
- Design a Queue data structure to get minimum or maximum in O(1) time
- Shortest path in a directed graph by Dijkstra’s algorithm
- Paranthesis Theorem
- Duplicates Removal in Array using BST
- Dynamic Segment Trees : Online Queries for Range Sum with Point Updates
- XOR of elements in a given range with updates using Fenwick Tree
- Maximum Possible Rating of a Coding Contest

Given an array arr[], the task is to find the length of the largest subset with the sum of elements less than or equal to… Read More »

Given a string s and an integer X, our task is to find the number of distinct palindromic strings of length X from the given… Read More »

Given an array arr[] of size N and D index, the task is to rotate the array by the D index. Left Rotate: Array rotate… Read More »

Given array arr[] of positive integers, an integer Q, and arrays X[] and Y[] of size Q. For each element in arrays X[] and Y[],… Read More »

Apache Kafka is a publish-subscribe messaging queue used for real-time streams of data. A messaging queue lets you send messages between processes, applications, and servers.… Read More »

Given a Binary Tree, the task is to perform Specific Level Order Traversal of the tree such that at each level print 1st element then… Read More »

Given an array arr[] of size N and integer Y, the task is to find a minimum of all the differences between the maximum and… Read More »

Given a number N, the task is to create a square matrix of size N*N with values in range [1, N*N], such that the sum… Read More »

Given an array arr[] of N strings and an integer K, the task is to print K strings which occurred the most number of times… Read More »

Given an array arr[] of size N and a matrix Q consisting of queries of the following two types: 1 L R : Print the… Read More »

Prerequisites: Policy based data structure, Sliding window technique. Given an array of integer arr[] and an integer K, the task is to find the median… Read More »

Given an undirected graph defined by the number of vertex V and the edges E[ ], the task is to find Maximal Independent Vertex Set… Read More »

Given an array arr[] of length N and an integer K, the task is to find the longest subarray with difference between any two distict… Read More »

Given a squared matrix M[ ][ ] of N * N dimensions, the task is to find the Kth diagonal of the matrix, starting from… Read More »

Given an array arr[], the task is to maximize the sum of even-indexed elements by reversing a subarray and print the maximum sum obtained. Examples:… Read More »