Count of Array elements to be divided by 2 to make at least K elements equal
Given an integer array arr[] of size N, the task is to find the minimum number of array elements required to be divided by 2,… Read More »
Given an integer array arr[] of size N, the task is to find the minimum number of array elements required to be divided by 2,… Read More »
Given two arrays A[] and B[], each of size N, and two integers X and Y denoting the maximum number of elements that can be… Read More »
Given a string str, the task is to check if that string is a Bitonic String or not. If string str is Bitonic String then… Read More »
Given an array arr[] consisting of N elements and an integer P, the task is to find the initial array from which given arr[] is… Read More »
Given two integer N and K, the task is to find the number of sequence of length K consisting of values from the range [1,… Read More »
Given string str, the task is to check if characters at the odd indexes of str form a palindrome string or not. If not then… Read More »
Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More »
Given an integer array arr[] and Q queries, the task is to find the sum of the array for each query of the following type: … Read More »
Given an array arr[] of N elements and Q queries of the form [X]. For each query, the task is to find the largest interval… Read More »
Given an array of integers arr[], the task is to count the minimum number of changes required to convert each array element to its nearest… Read More »
Given two integers L and R, the task is to find the count of total numbers of prime numbers in the range [L, R] whose… Read More »
Given a binary tree of N nodes, the task is to print level order traversal in a spiral form. In spiral form, nodes at the… Read More »
Given an integer N, the task is to find the total number of ways to distribute N among 3 people such that: Exactly one person… Read More »
Given two arrays arr1[] and arr2[]. The array arr1[] is sorted. The task is to print the change in the median after removing each element… Read More »
Given an array arr[] of N positive integers. The task is to find the number of pairs whose Bitwise AND value is a power of… Read More »