# Tag Archives: array-rearrange

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
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 the first N natural numbers, the task is to find the minimum number of subarrays required to be rearranged… 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 an array arr[] consisting of N positive integers and an integer K, the task is to make the sum of all K-length subarrays equal… 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 two equal-length arrays A[] and B[], consisting only of positive integers, the task is to reverse any subarray of the first array such that… 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