## Queries to count integers in a range [L, R] such that their digit sum is prime and divisible by K

Given Q queries and an integer K where each query consists of a range [L, R] and the task is to find the count of… Read More »

- Count of triplets that satisfy the given equation
- Write a function to get the intersection point of two Linked Lists | Set 2
- Print nodes having maximum and minimum degrees
- Number of triplets in array having subarray xor equal
- Minimum distance to visit all the nodes of an undirected weighted tree
- Widest Path Problem | Practical application of Dijkstra's Algorithm
- Find maximum count of duplicate nodes in a Binary Search Tree
- Twisted Tower of Hanoi Problem
- Minimum characters that are to be inserted such that no three consecutive characters are same
- Minimum value to be assigned to the elements so that sum becomes greater than initial sum
- Implementation of Non-Preemptive Shortest Job First using Priority Queue
- Sorting Algorithms Visualization | Selection Sort
- Queries to find the left-most given type integer in a binary array
- Van Emde Boas Tree | Set 4 | Deletion
- Difference between Linear and Non-linear Data Structures
- Skewed Binary Tree
- Extended Binary Tree

Given Q queries and an integer K where each query consists of a range [L, R] and the task is to find the count of… Read More »

Given an array arr[] of N integers and two integers M and K. The task is to check if the product of the K largest… Read More »

The task is to generate a binary string of length N using branch and bound technique Examples: Input: N = 3 Output: 000 001 010… Read More »

Given a connected acyclic graph with N nodes and N-1 edges, find out the pair of nodes that are at even distance from each other.… Read More »

Given an array arr[] of N elements where each arr[i] is the cumulative sum of the subarray P[0…i] of another array P[] where P is… Read More »

Given an integer D, the task is to find the sum of all the prime numbers whose count of digits is less than or equal… Read More »

Given two integers N and K, the task is to find the count of set bits in the Kth number in the Odd-Even sequence made… Read More »

Given 2 arrays, the first one containing postorder traversal sequence and the second one containing the information whether the corresponding node in the first array… Read More »

Given N dependencies of the form X Y, where X & Y represents two different tasks. The dependency X Y denotes dependency of the form… Read More »

Given a tree with N vertices numbered from 0 to N – 1 and Q queries containing nodes in the tree, the task is to… Read More »

Given a tree with N vertices numbered from 0 to N – 1 and Q query containing nodes in the tree, the task is to… Read More »

Given two strings A and B of length N, the task is to check whether the two strings can be made equal by swapping any… Read More »

Given an array arr[] of N integers where arr[i] is the height of the ith chocolate and all the chocolated are 1 unit wide, the… Read More »

Given a matrix, the task is to convert the given Matrix into sorted Spiral Matrix. Examples: Input: y[][] = { { 2, 5, 12 },… Read More »

Given an array, the task is to form a spiral matrix Examples: Input: arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9,… Read More »