Given an array arr[] consisting of N positive integers, the task is to minimize the number of operations required to minimize the absolute difference between… Read More

# Tag Archives: array-rearrange

Given an array arr[] consisting of N integers and a positive integer K, the task is to find the last element present in the array… Read More

Given an array arr[] consisting of N distinct integers, the task is to rearrange the array elements such that the count of elements that are… Read More

Given an array arr[] consisting of N pairs and a positive integer M, the task is to maximize the average of the ratio of the… Read More

Given an array arr[] consisting of N positive integers and an integer K, the task is to check if it is possible to reduce the… Read More

Given an array p[] of size N representing a permutation of first N natural numbers, where N is an even number, the task is to… Read More

Given two arrays A[] and B[] of sizes N, the task is to find the maximum sum of Bitwise AND of same-indexed elements in the… Read More

Given two arrays A[] and B[] consisting of N positive integers such that each array element A[i] is placed at the ith position on the… Read More

Given an array arr[] consisting of N positive integers, the task is to check whether the given array arr[] can be made strictly increasing such… Read More

Given an array arr[] consisting of N positive integers, the task is to rearrange the array such that the reversed binary representation of all the… Read More

Given an integer K and two arrays A[] and B[] consisting of N and M integers, the task is to maximize the number of elements… Read More

Given an array arr[] consisting of N positive integers and an integer K, the task is to minimize the maximum value of the array by… Read More