## Make the string in AP by changing a character

Given a string S that consists of letters such that their ASCII values follow an Arithmetic Progression. The task is to find the letter and… 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
- Convert Adjacency Matrix to Adjacency List representation of Graph
- Count of subarrays which start and end with the same element
- Real-time application of Data Structures
- Find the string formed by joining k consecutive nodes of linked list
- Kth most frequent Character in a given String
- Program to reverse words in a given string in C++
- 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
- Paranthesis Theorem
- Shortest path in a directed graph by Dijkstra’s algorithm
- 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 a string S that consists of letters such that their ASCII values follow an Arithmetic Progression. The task is to find the letter and… Read More »

Given an array prices[] which denotes the prices of the stocks on different days, the task is to find the maximum profit possible for buying… Read More »

Given a string str, the task is to convert the given string into the number without using any inbuilt function. Examples: Input: str = “985632”… Read More »

Given an array arr[] of positive integers, the task is to find the permutation of the array such that sum of adjacent elements is not… Read More »

Given an array arr[] and K subarrays in the form (Li, Ri), the task is to find the maximum possible value of . It is… Read More »

Given a sorted array arr[] and an integer K, the task is to check if there exists a ceil of number K divided by some… Read More »

Given a number N, the task is to count the number of unique digits in the given number. Examples: Input: N = 22342 Output: 2 Explanation:The digits… Read More »

Given an array arr[] of N positive integers, the task is to print the length of the longest subsequence of the array such that all… Read More »

Data Types Data-type in simple terms gives us information about the type of data. Example, integer, character, etc. Data-types in C language are declarations for the… Read More »

Array within a Structure A structure is a data type in C/C++ that allows a group of related variables to be treated as a single… Read More »

Given an array arr[], the task is to find the maximum score of deleting an element where each element of the array can be deleted… Read More »

Given a directed Graph G(V, E) with V vertices and E edges, the task is to check that for all vertices of the given graph,… Read More »

Given an undirected graph and two vertices X and Y, our task is to check whether the vertex X lies in the subgraph of the… Read More »

Given an integer N, the task is to count the numbers up to N having an absolute difference of at most K between any two… Read More »

Given an array arr[] of size N and an integer k, our task is to find the length of longest subarray whose sum of elements… Read More »