This category is for logical grouping only. It needn’t to be added directly. Instead, the sub-categories should be added.

## Find Kth number from sorted array formed by multiplying any two numbers in the array

Given an array arr[] of size N and an integer K, the task is to find the Kth number from the product array. Note: A… Read More »

## Longest palindromic String formed using concatenation of given strings in any order

Given an array of strings arr[] of the same length, the task is to find the longest palindromic string that can be made using the… Read More »

## Sum of Maximum and Minimum prime factor of every number in the Array

Given an array arr[], the task is to find the sum of the maximum and the minimum prime factor of every number in the given… Read More »

## Find K such that changing all elements of the Array greater than K to K will make array sum N

Given an array arr[] and an integer N, the task is to find a number K from the given array such that if all the… Read More »

## Minimum number of swaps required to sort an array of first N number

Given an array arr[] of distinct integers from 1 to N. The task is to find the minimum number of swaps required to sort the… Read More »

## Count pairs in an array whose absolute difference is divisible by K

Given an array arr[] and a positive integer K. The task is to count the total number of pairs in the array whose absolute difference… Read More »

## Count of lexicographically smaller characters on right

Given a string consisting of only lowercase English alphabets. The task is to count the total number of alphabetically smaller characters on the right side… Read More »

## Maximum number of overlapping Intervals

Given different intervals, the task is to print the maximum number of overlap among these intervals at any time. Examples: Input: v = {{1, 2},… Read More »

## Sum of all nodes at Kth level in a Binary Tree

Given a binary tree with N nodes and an integer K, the task is to find the sum of all the nodes present at the… Read More »

## Given an absolute sorted array and a number K, find the pair whose sum is K

Given an absolute sorted array arr[] and a number K, the task is to find a pair of elements in the given array that sum… Read More »

## Largest Divisor for each element in an array other than 1 and the number itself

Given an array arr[] of N integers, the task is to find the largest divisor for each element in an array other than 1 and… Read More »

## Shortest path in a graph from a source S to destination D with exactly K edges for multiple Queries

Given a graph with N nodes, a node S and Q queries each consisting of a node D and K, the task is to find… Read More »

## Subarray with difference between maximum and minimum element greater than or equal to its length

Given an array arr[], the task is to find a subarray with the difference between the maximum and the minimum element is greater than or… Read More »

## Frequency of an integer in the given array using Divide and Conquer

Given an unsorted array arr[] and an integer K, the task is to count the occurrences of K in the given array using Divide and… Read More »

## Program to build a DFA to accept strings that start and end with same character

Given a string consisting of characters a and b, check if the string starts and ends with the same character or not. If it does,… Read More »